Skip to content

Free · Reliable output · No signup

Convert CSV to TSV

Convert CSV to tab-separated text, preserving quoted tabs and line breaks and protecting formula-like cells.

Add as many files as you need. Up to 1 GiB per file. Keep this tab open until your downloads finish.

Batch conversion uses the standard settings. Open Customize a file below to change them.

Conversion starts as soon as you choose files. Files download automatically when ready. Your browser may ask to allow multiple downloads.

Customize a file · settings, paste and edit

CSV → TSV

Free conversion in your browser. Your file stays on this device.

Local processing
8 fictional sales rows · CC0
  1. Choose your CSV

    Open a file, paste CSV text, or try the sample.

  2. Review the preview

    Adjust available settings and check the output. Edit CSV lets you change source values.

  3. Copy or download

    Save your .tsv file with the current settings.

Output preview

Example output
Project	Status
Website	Ready
Docs	In progress

Preview is limited to the first 20 rows and 16,000 characters. Download includes every row within the tool limits.

Three simple steps

How to convert CSV to TSV

  1. 1. Open your CSV

    Choose several CSV files and convert them together. For column settings, pasted text or editing, open Customize a file. The first row supplies column headers.

  2. 2. Review the output

    Follow each file’s progress. View opens a short preview without leaving the page; use Customize a file when you need different format settings.

  3. 3. Save your result

    Copy the complete output or download a .tsv file. Downloads start when files are ready, with a Download button for every result. No signup or payment is required.

Output contract

What the TSV converter writes

TSV uses tab characters between fields instead of commas. Fields containing tabs, quotes, or line breaks remain quoted, and formula-like values receive a leading apostrophe for safer spreadsheet opening.

The preview is bounded so larger files stay manageable. Downloads use the complete parsed document within the format limits, including changes made in the editor.

Parsing and conversion happen on your device. Your CSV is not uploaded to a conversion server. An error preserves the current input so you can adjust settings or edit the source and try again.

Other ways to convert CSV to TSV

Prefer a script or command line? These examples run on your computer. They create separate files; review their output rules because external tools can handle types and empty values differently from this page.

Convert CSV to TSV with Python

Run this on your own computer using Python 3. Save a UTF-8, comma-delimited input.csv in the same folder as the script. The first record must contain unique, nonempty headers; quoted commas and line breaks are parsed as fields.

Before you start

  • Python 3 installed. Package commands below use a local virtual environment on macOS/Linux; on Windows use .venv\Scripts\python.exe in place of .venv/bin/python.
  • Keep the original CSV. These examples read the complete table into memory and create separate output files.
  1. Save the Python code as convert_csv.py beside input.csv.
  2. Install the listed package when required, then run the script. Check the generated output before using it elsewhere.
Save as convert_csv.py
import csv
from pathlib import Path

with open("input.csv", encoding="utf-8-sig", newline="") as source:
    reader = csv.reader(source, strict=True)
    headers = next(reader)
    rows = list(reader)
if not headers or any(not h for h in headers) or len(set(headers)) != len(headers):
    raise ValueError("Use unique, nonempty column headers")
if any(len(row) != len(headers) for row in rows):
    raise ValueError("Every record must have the same number of fields as the header")

def protect(value):
    return "'" + value if value.startswith(("=", "+", "-", "@")) else value
with open("output.tsv", "w", encoding="utf-8", newline="") as output:
    writer = csv.writer(output, delimiter="\t", lineterminator="\r\n")
    writer.writerows([[protect(value) for value in row] for row in [headers, *rows]])

Run the conversion
python3 convert_csv.py

Limits and output

  • Writes real tab delimiters and quoted multiline fields. Matching the browser converter, it prefixes formula-looking fields with an apostrophe, including negative numbers and headers. This changes those literal values and is not a universal spreadsheet safety guarantee.

Documentation: Python CSV reader and writer

Convert CSV to TSV with DuckDB

Use DuckDB through Python to read local CSV data and write a separate output file. No database server or upload is required.

Before you start

  • Python 3 and the DuckDB Python package. Run beside input.csv with a header record.
Install DuckDB
python3 -m venv .venv
.venv/bin/python -m pip install duckdb

Save as convert_duckdb.py
import duckdb
from pathlib import Path
if "__CSV_NO_NULL__" in Path("input.csv").read_text(encoding="utf-8-sig"):
    raise ValueError("Choose a null marker absent from your input")
with duckdb.connect() as database:
    database.execute("CREATE TABLE source AS SELECT * FROM read_csv('input.csv', header=true, all_varchar=true, nullstr='__CSV_NO_NULL__', delim=',')")
    database.execute("COPY source TO 'output.tsv' (FORMAT CSV, HEADER true, DELIMITER '\t');")

Run DuckDB conversion
.venv/bin/python convert_duckdb.py

Limits and output

  • All columns are read as text and empty cells remain empty strings. The reserved null marker is checked before parsing. DuckDB can normalize duplicate or blank column names; review the resulting schema.
  • This writes literal text without the browser converter’s leading-apostrophe protection for formula-looking cells. Review the data before spreadsheet use.

Documentation: DuckDB CSV reading options; DuckDB COPY exports

Plain answers

TSV conversion questions

How can I try a CSV to TSV example?

Open Customize a file, choose Paste CSV and enter a header line id,amount,note followed by a new line 00123,-10,"Tray, small". Choose Use pasted CSV. The output keeps id as 00123, writes the amount as an apostrophe followed by -10, and keeps the comma in Tray, small as ordinary text. Copy TSV or Download .tsv creates the complete separate file. This local customization path accepts one CSV up to 50 MB, subject to browser memory and decoded-table limits. It does not overwrite your source file.

Does this TSV conversion preserve every value literally?

The converter creates spreadsheet-quoted TSV: actual tabs separate fields, CRLF separates records, fields containing tabs, quotes or line breaks are quoted, and literal quotes are doubled. Every field beginning with =, +, - or @ receives a leading apostrophe, including negative numbers and formula-like headers. For example, =1+1 becomes an apostrophe followed by =1+1. This changes those values; spreadsheet behavior varies and the prefix is not a universal safety guarantee. Keep your original CSV when exact unprefixed text matters. In Customize a file, Copy TSV and Download .tsv include every parsed source row, including edits returned with Return to converter, independently of editor filters and view sorting. The preview shows at most 20 records and 16,000 characters and may end inside a quoted field. Download includes the complete output within tool limits.

Is this a real TSV file?

Yes. The download is valid TSV text created from the parsed CSV table.

When is the download created?

The output preview appears after parsing. Copy and download generate the complete output with your current settings; the preview can show fewer rows than the exported file.

What happens to data types?

Cells stay as text by default, preserving identifiers and leading zeroes. SQL and SQLite allow explicit column types; invalid values are reported before download.