TSV to JSON

Convert tab-separated values (TSV) into JSON

Convert tab-separated data - for example copied from Excel or Google Sheets - into JSON objects or arrays, with numbers and true/false detected and a preview table.
Try an example:

Output will appear here...

About TSV to JSON

How it works

  1. Each line is a row and each tab separates columns. With a header row, the first line gives the property names.
  2. Numbers and true/false become real JSON numbers and booleans when "Convert" is on; empty cells become null.
  3. Quoted cells may contain tabs and line breaks, following the same rules as CSV.

What you need

  • Tab-separated text. Copying cells from Excel, Google Sheets or Numbers gives you TSV automatically.

Tips

  • Select cells in a spreadsheet, copy, and paste here - spreadsheets copy as TSV.
  • Turn off number conversion to keep leading zeros (postcodes, IDs like 00123).

Limitations

  • Very large files (over 5 MB) may be slow.

Runs in your browser. Everything happens in your browser - your code and data are never uploaded.

Frequently asked questions

What is TSV?+

Tab-separated values: plain text where each line is a row and columns are separated by tab characters. It is what spreadsheets put on the clipboard when you copy cells.

TSV or CSV - which is better?+

TSV avoids problems with commas inside values (like "New York, NY"), which is why spreadsheets use it for copy and paste. CSV is more common for files.