How to use TSV to JSON Converter
- Paste your TSV into the "Input" box, or press "Open a file" and pick a .tsv or .tab file.
- Keep "First row is the header" ticked if row 1 holds column names, so they become the JSON keys.
- Leave "Detect numbers, true/false and null" on to get real JSON numbers and booleans, or untick it to keep every value as text.
- Choose the "Indentation" (2 spaces, 4 spaces or Tab), then press "Copy" or "Download" to get data.json.
Features
- Paste tab-separated text or open a .tsv or .tab file up to 10 MB
- First row as keys, or an array of arrays when the header option is off
- Optional detection of numbers, true, false and null
- Duplicate headers get a _2 suffix and empty headers become column1, column2 and so on
- Missing cells become empty strings
- Excel-style double-quote handling that you can turn off
- Indentation of 2 spaces, 4 spaces or a tab
- Shows the number of rows and columns, and downloads data.json
Supported formats and limits
- Maximum input: 10,000,000 characters
Examples
| Input | Result |
|---|---|
| id name active 1 Ana true 2 Luis false | [ { "id": 1, "name": "Ana", "active": true }, { "id": 2, "name": "Luis", "active": false } ] — With detection on, 1 and 2 become numbers and true and false become booleans. |
| sku qty 007 3 | [ { "sku": "007", "qty": 3 } ] — A value with a leading zero such as 007 stays text, so identifiers are not damaged. |
| x y 1 Ana | [ [ "x", "y" ], [ 1, "Ana" ] ] — With "First row is the header" turned off, the result is an array of arrays and the first row is kept as data. |
| id id 1 2 3 | [ { "id": 1, "id_2": 2, "column3": 3 } ] — The repeated header gets _2 and the empty third header becomes column3. |
Limitations
- Numbers are detected only when written in plain form, such as 42 or -3.5. Values like 007 or 1e3 stay text.
- Dates are not converted. They stay text strings.
- Missing cells become empty strings, and rows longer than the header may produce extra or unnamed values, so check irregular files.
- The input is limited to about 10 million characters, and very large files may be slow to process.
Learn more
TSV (tab-separated values) stores a table as plain text, one record per line, with a tab between fields. It is what you get when you copy cells from a spreadsheet and paste them into a text box. JSON stores the same information as arrays and objects, and it is the format most web APIs and JavaScript code expect.
With a header row, each record becomes an object whose keys come from the first line, which produces readable JSON such as {"name":"Ana"}. Without it, each record is a plain list of values. TSV carries no type information, so the converter can guess: numbers written in a plain form, the words true and false, and null are turned into JSON numbers, booleans and null. Anything else stays a string.
The detection is deliberately cautious. A value such as 007 could be an identifier, so it is kept as text instead of becoming 7. If you would rather keep every value as a string, switch detection off and convert types later in your own code.
Frequently asked questions
How do I convert TSV to JSON?
Paste your tab-separated text or open a .tsv file, choose the options and copy the JSON or download data.json.
How do I use the first row as keys?
Keep "First row is the header" ticked. The header cells become the keys of every object.
Why are some numbers still in quotes?
Only plain numbers are detected. A value like 007 keeps its leading zeros as text, and with detection off every value is text.
What happens if I turn the header option off?
The output becomes an array of arrays, one list of values per row, with no keys.
Can I paste cells straight from Excel or Google Sheets?
Yes. Copied spreadsheet cells are tab-separated, so you can paste them into the input box as they are.
Sources
- RFC 8259, The JavaScript Object Notation (JSON) Data Interchange Format
- IANA media type text/tab-separated-values
Last reviewed: September 30, 2026