UTILITIES NEWBIE

Digital tools

CSV to TSV converter

Change the table delimiter from commas to tabs while preserving text-valued cells and column order.

Input

Import a local text file

0 UTF-16 code units

Optional local draft

Saving stores a plaintext draft in this browser on this device. Do not save secrets or use this on a shared device. Nothing is saved or loaded automatically. Reset does not delete a saved draft; use Delete local draft.

No draft has been loaded.

Output

How to use this tool

  1. Enter CSV with a unique, nonempty header row and at least one data row. Quote fields that contain commas, quotes or line breaks.

  2. Select Convert CSV to TSV. The output uses tabs between fields and CRLF record separators.

Structured data converter

CSV quotes keep Lin, Mei in one cell; TSV then separates it from identifier 001 with a tab. Text version follows.
The comma remains data. The between-cell separator changes. Text version

Text version. The source header is id,name and the data row is 001,"Lin, Mei". Parsing produces two cells, 001 and Lin, Mei. Writing TSV places a real tab between those cells; the comma in the name remains ordinary text. The visual label [TAB] represents the control character and must not be pasted literally. The complete exact input and output appear in the article, with CRLF between records.

Convert a CSV table without changing what its cells mean

Start with a complete rectangular table

CSV and TSV both describe rows and columns in text, but they use different separators. This converter reads comma-separated fields and writes tab-separated fields. It is useful when an import screen asks for TSV even though your export is CSV. Changing a filename from .csv to .tsv does not perform that conversion. The content must be read with its quoting rules so that punctuation inside a value is not mistaken for another column.

This particular tool expects a unique, nonempty header row and at least one data row. Every data row must contain the same number of fields as the header. These are requirements of this converter, rather than rules that every application using CSV necessarily shares. Keep the original export available. If a file has introductory notes before the table, identify the real header instead of deleting lines until an unexplained result happens to appear.

Follow the comma inside a name

Paste the example below and choose Convert CSV to TSV. The header has two fields, id and name. The data row also has two fields: the identifier 001 and the name Lin, Mei. Quotes protect the comma in the source name. In the result, a tab separates the two fields, so that comma no longer needs to act as a delimiter. The identifier retains its leading zeros because cells remain text.

Input

id,name
001,"Lin, Mei"

Expected text output

id	name
001	Lin, Mei

Tabs can look like several spaces on screen. The spaces used to align an editor are not a reliable way to count fields. Copy the actual output or inspect the downloaded TSV with a compatible importer. The converter uses CRLF between records. A display may draw those two control characters as one line break, which is normal. Compare cell values and column order as well as the visible appearance of the result.

Quoting is part of the format

A value containing a tab, quotation mark or line break still needs careful representation in TSV. The writer can quote such a field and double a quotation mark inside it. A quoted line break belongs to the cell; it is not automatically a new record. Therefore a script that splits every line and then every tab may misread valid output. Check whether the destination understands this quoted tab-separated dialect before transferring a large table.

Do not replace all commas with tabs in a text editor as a shortcut. That would also replace the comma inside Lin, Mei and create the wrong column structure. Likewise, do not remove all quotation marks: some are syntax, while others are part of the value. Use a small representative row containing your difficult characters to check the destination, including accents, empty cells and any meaningful whitespace.

Look at cells before looking at separators

The teaching diagram follows the same two-cell example through three stages. First, the source quotes keep the comma inside the name. Next, the parser identifies two values: the identifier and the complete name. Finally, the writer places one tab between those values. The comma remains part of the name throughout. The diagram's TAB label is an annotation, not text to paste into the tool. Use the real input and expected output shown above when reproducing the example.

This cell-first view explains why a successful conversion can look deceptively similar to the original. Punctuation is sometimes data and sometimes syntax, depending on where it occurs. Quotes around a source field are a way of expressing the value; they need not remain visible if the destination format can express the same value without them. The goal is to preserve the decoded cells, not to keep every original character or produce a byte-identical file. Keep the source separately when exact original spelling is important.

Check an empty value deliberately

A small missing-looking value can reveal a column mistake. For a second practice table, use the header id,note and the row 002, with a comma after the identifier. This is a complete row containing an identifier and an empty note. This writer represents the result with a tab after 002 followed by two quotation marks for the empty field. Those quotes enclose an empty value; they are not two quote characters in the value. A row containing only 002 has one field, so it does not meet a two-column table's shape requirement. Empty is a value position; absent is a different structure.

Use an import preview when your receiving application provides one. Check the header names, the number of columns and the placement of the empty note before accepting the import. Then inspect a row with punctuation and an identifier containing zeros. Do not repair a shifted table by deleting a blank column until you understand why it appeared. The problem may be the chosen delimiter or quoting dialect rather than unwanted source data. A careful two-row trial is often easier to reason about than a long file displayed all at once.

Choose this operation for the right everyday job

This conversion is useful when a small collection, inventory or classroom table already has the correct columns but a documented importer asks for tabs. It is less useful when your real task is to combine several tables, remove duplicate records or interpret a date column. Those changes require decisions about the data itself. Keep a note of any edits made before conversion so that someone checking the result can distinguish a changed cell from a changed separator. The converter does not supply that change history for you.

When a row is rejected, compare its structure with the header and with a nearby valid row. Check whether a comma inside a name is quoted and whether a quoted value was closed. If a value genuinely contains a line break, keep its complete quoted field together. Do not automatically add a quote at the end of a damaged file or replace every newline with a space; either action can change the intended content. Obtain a complete source row or a fresh export when you cannot establish what the record was supposed to contain.

After checking the result, preserve the original CSV and the actual TSV as separate files. Give them clear names so that another attempt does not overwrite the only source. The extension helps identify an intended format, but the content and the recipient's import settings determine what is read. If a later application changes an identifier to a number, return to its import options and the preserved TSV. Changing the source identifier just to match an automatic display would conceal the very difference this example is designed to expose.

Understand rejection and limits

Duplicate or empty column names, header-only input, uneven rows and malformed quoting are rejected. Review the reported row or condition and correct the source deliberately. The tool does not infer missing fields or guess whether two repeated headings describe different things. Numbers, dates, boolean-looking words and identifiers stay strings. It does not turn a flat table into nested records, merge columns or determine the correct type for your downstream database.

The editor accepts at most 100,000 UTF-16 code units; importing a UTF-8 text file has a separate 100,000-byte limit. A parsed table also has a 10,000-value budget, including its structure, and output is bounded. These are different measures, so there is no universal permitted row count independent of column count. Split only at complete records while retaining a suitable header, and keep quoted multiline fields intact.

Verify the receiving application

Spreadsheet software may interpret a cell such as =1+1 as a formula even though this converter leaves it as text. Delimiter conversion does not neutralize formulas. Use the destination's explicit text-import settings for untrusted data, and review identifiers or date-like values that automatic typing could change. A correct TSV file does not prove that another application imported it without coercion. Compare a few known cells after import before relying on the whole table.

This workflow suits moving a small inventory, classroom dataset or software export between documented import formats. Record which delimiter the recipient expects and which columns must remain text. After requesting Download, check the actual saved file; after Copy, check what was pasted. Reset clears the current work, while a deliberately saved local draft has a separate deletion action. Use non-sensitive examples and consult the site's privacy information before placing personal records in a public editor.

Worked examples

Input and settings

id,name
001,"Lin, Mei"

Expected output

id	name
001	Lin, Mei

The comma inside the name is ordinary text in TSV, so that field no longer needs quotes. The identifier stays the string 001 rather than becoming the number 1.

Related tools

JSON records to CSV converter · YAML to JSON converter · JSON Formatter & Beautifier

Find a tool

Type a tool name, such as JSON or percentage.

Quick links

Browse by category

All tools