TSV to JSON

Convert tab-separated data into JSON.

TSV to JSON converts tab-separated text into a JSON array of objects, using the first row as the header. It is handy when you copy cells straight out of a spreadsheet, because spreadsheet clipboard data is tab-separated. Paste text or open a .tsv or .tab file and get formatted JSON.

What is TSV?

TSV (Tab-Separated Values) is a plain-text table format where a tab character separates the columns and a newline separates the rows. Because tabs rarely appear inside real data, TSV usually needs less quoting than CSV, which makes it popular for clipboard transfers and bioinformatics or log data. Like CSV, it has no types, so every value is read as text. Converting TSV to JSON gives each row an object keyed by the header names, ready for use in code or APIs.

How to use TSV to JSON

  1. Paste TSV Paste into the TSV box, ideally straight from a spreadsheet, or use the file load button for .tsv or .tab files.
  2. Convert Convert to JSON runs automatically.
  3. Review Read the formatted JSON in the output pane.
  4. Export Copy it or download data.json.

Frequently asked questions

Why do I get a single column?

The text probably contains spaces instead of tabs. Copying from a spreadsheet preserves tabs; typing in a text box may replace them.

Are values converted to numbers?

No. Everything stays a string so that no data changes silently.

Can quotes be used?

Yes. Fields wrapped in double quotes may contain tabs or line breaks, and doubled quotes inside represent a literal quote.

What about duplicate headers?

Later columns overwrite earlier ones with the same name, so use unique header names.

Is there a size limit?

The tool does not set one; it is limited by what your browser can handle.