TSV to JSON Converter
Paste tab-separated data and instantly convert it to JSON with auto-detected headers and type inference
Paste tab-separated data from a spreadsheet or .tsv file and get valid, formatted JSON back — with headers mapped to keys and numbers and booleans auto-typed so you don't have to fix them yourself. And everything runs in your browser. Nothing gets uploaded.
How It Works
The parser splits your input on newlines first, then on tab characters within each line. If you've turned on "First row as headers," the first row's values become object keys and every following row maps to those keys. Auto-type checks each cell — if it looks like a number or boolean, the converter writes it without quotes. The result is valid, pretty-printed JSON ready to copy or download.
Examples
Simple contact list
Exported a few contacts from a spreadsheet and need them as JSON for an address book app.
name email age
Alice [email protected] 29
Bob [email protected] 34
[
{
"name": "Alice",
"email": "[email protected]",
"age": 29
},
{
"name": "Bob",
"email": "[email protected]",
"age": 34
}
]
Product inventory with booleans
Warehouse data pasted from a tab-delimited export. Auto-type catches the numbers and true/false values.
sku item qty inStock
W-001 Widget 150 true
W-002 Gadget 0 false
W-003 Sprocket 42 true
[
{
"sku": "W-001",
"item": "Widget",
"qty": 150,
"inStock": true
},
{
"sku": "W-002",
"item": "Gadget",
"qty": 0,
"inStock": false
},
...
]
No headers — raw array output
Sometimes your TSV doesn't have a header row. Turn off "First row as headers" and you get a nested array instead of objects.
red 255 0 0
green 0 128 0
blue 0 0 255
[
["red", 255, 0, 0],
["green", 0, 128, 0],
["blue", 0, 0, 255]
]
Who Uses This
Converting database exports or log dumps into JSON for API testing and config files.
Turning spreadsheet exports into JSON so they can feed them into Python scripts or visualization tools.
Formatting homework datasets as JSON for programming assignments without writing a parser from scratch.
Moving task lists or tracking sheets into JSON for import into project management APIs.
Common Mistakes
If you type spaces between columns, the converter treats each line as one long value. Make sure your data actually uses tab characters — copy directly from a spreadsheet or use a proper TSV file.
Your first data row gets eaten as keys. The output looks right structurally, but your actual first record is missing. Turn the toggle off if row one is data, not labels.
Auto-type converts numbers and booleans, but dates like "2024-03-15" stay as strings. JSON has no native date type, so this is actually correct — you'll parse them in your code.
Technical Details
- Processing: 100% client-side — JavaScript in your browser, no server calls
- Browser Support: Chrome, Firefox, Safari, Edge
- Max Input Size: Limited only by your browser's memory (tested with 100k+ rows)
- Output Format: Valid JSON per RFC 8259
- Type Detection: Integers, floats, booleans, null (empty cells)
Frequently Asked Questions
What is the difference between TSV and CSV?
TSV uses tab characters to separate columns. CSV uses commas. The practical difference? TSV almost never needs quoting because tabs rarely show up in actual data, while CSV constantly trips over commas inside text fields. Both carry the same kind of tabular data.
Can I convert TSV to JSON without installing anything?
Yes. This tool runs entirely in your browser — no downloads, no installs, no account. Paste your data, click convert, done. It even works offline once the page has loaded.
How do I get TSV data from Excel or Google Sheets?
Select your cells and copy them (Ctrl+C). When you paste into a text field, spreadsheets automatically use tabs between columns. That's already valid TSV. You can also do File → Download → Tab-separated values in Google Sheets.
What happens if some rows have more or fewer columns?
Short rows get null for the missing fields. Extra columns in longer rows still show up — they won't be silently dropped. The converter handles messy, inconsistent data without crashing.
Is my data safe when using this tool?
Your data stays on your machine. Nothing gets sent to a server — the conversion is pure JavaScript running locally. You can verify by opening dev tools and watching the Network tab. Zero requests.