Ir al contenido principal
Develop Tools
← Volver a la guía de uso

Cómo convertir CSV y TSV en TXT legible

Additional information for this feature.

Process of loading CSV or TSV, selecting delimiters and output format, and converting to TXT
Process of loading CSV or TSV, selecting delimiters and output format, and converting to TXT

When this guide is useful

We will explain how to prevent quotation marks and column misalignment when searching for "convert CSV to TXT," "format TSV to text," and "save tabular data with delimiters."

  • I want to convert CSV/TSV to easy-to-read text with fixed delimiters.
  • Additional information for this feature.
  • I want to save TXT by correctly handling commas, tabs, quotation marks, and line breaks within cells.

Convert

  • comma separated or tab separated
  • Should the first line be treated as a header?
  • Are there commas or line breaks within the quotation marks?
  • Original file character code such as UTF-8, Shift_JIS

Pasos de conversión

  1. Select a CSV/TSV file or enter data.
  2. Check the delimiter and character code from the automatic judgment results.
  3. Additional information for this feature.
  4. Check the preview to make sure there are no misaligned columns or garbled characters, then save.

Additional information for this feature.

Commas, tabs, line breaks, and quotation marks within cells cannot be handled correctly by simple string splitting. If you find a row with an unnatural number of columns, check that the quotation marks in the source data are closed.

When converting to TXT, the spreadsheet software's type information and display format are not retained. Please also leave the original CSV/TSV.

Specific example: Converting CSV to tab-delimited TXT

In a CSV file that contains a comma in the product name and a new line in the notes, the columns will be disrupted if a simple character replacement is performed. Analyze as CSV and re-output in tab-delimited format in cell units.

The required format changes depending on whether the output destination is spreadsheet software, logs, or fixed-width documents. Check the results with representative lines that include blank spaces, quotes, and line breaks.

  1. Check the character code and delimiter of the original file.
  2. Select the delimiter, quotation marks, and newline code to output.
  3. Check the preview for headers, blank spaces, cells with commas, and cells with line breaks.
  4. Save the TXT and check if the columns are interpreted correctly in your actual usage.

Simply changing the extension from .csv to .txt does not change the rules for delimiters and quotation marks. Please parse and convert the contents.

Frequently asked questions

What is the difference between CSV and TSV?
The difference is whether the main delimiter is a comma or a tab. However, it is also necessary to check the handling of quotation marks, line breaks, character codes, etc. for each data.
Convert
Delimiters or line breaks within cells may not be quoted correctly. Check the quotes and output settings on the problem line.

Probar en el navegador

Los datos introducidos se procesan en el navegador. Conserve los datos originales y revise el resultado antes de guardarlo o compartirlo.

Open the tool to convert CSV/TSV to TXT