TSV to JSON Converter
Paste tab-separated values or upload a .tsv file to instantly convert to JSON with type detection
Paste tab-separated data or drop a .tsv file, and get structured JSON back instantly — with automatic number, boolean, and null detection built in. No reformatting columns by hand, no missing commas, no quoting headaches. 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 toggled the header option, the first row becomes the keys for every JSON object. With dynamic typing turned on, values like “42”, “true”, and “null” get converted to their actual types instead of staying as quoted strings.
Examples
Simple Contact List
You have a quick export from your address book with three columns.
name email phone
Alice [email protected] 555-0101
Bob [email protected] 555-0202
[
{"name":"Alice","email":"[email protected]","phone":"555-0101"},
{"name":"Bob","email":"[email protected]","phone":"555-0202"}
]
Product Inventory with Dynamic Typing
An e-commerce export where prices and stock counts should stay as numbers, not strings. Turn on dynamic typing for this one.
sku product price in_stock
WDG-441 Blue Widget 12.99 true
WDG-442 Red Widget 14.50 false
WDG-443 Green Widget 11.00 true
[
{"sku":"WDG-441","product":"Blue Widget","price":12.99,"in_stock":true},
{"sku":"WDG-442","product":"Red Widget","price":14.50,"in_stock":false},
{"sku":"WDG-443","product":"Green Widget","price":11.00,"in_stock":true}
]
No Header — Raw Array of Arrays
Sometimes your TSV dump doesn’t have a header row. Uncheck the header option and you get nested arrays instead of objects.
Tokyo 37400068 Japan
Delhi 32941000 India
Shanghai 29210808 China
[
["Tokyo","37400068","Japan"],
["Delhi","32941000","India"],
["Shanghai","29210808","China"]
]
Who Uses This
Turning database exports into JSON payloads for REST API testing or seed data scripts.
Converting spreadsheet tabs into structured data for Python notebooks or D3 visualizations.
Reformatting homework datasets from TSV exports into JSON for web dev assignments.
Migrating tracker data from Google Sheets TSV exports into tools that accept JSON imports.
Common Mistakes
If your columns are separated by commas, not tabs, the entire row becomes one field. Check your delimiter — if you see commas between values, you need a CSV-to-JSON converter instead.
If your first row contains column names but the header option is off, those names end up as data in the output. Flip the switch on, and suddenly your JSON has proper keys like “name” and “email” instead of generic indices.
Spreadsheet exports often sneak in an empty line at the bottom. That gives you an extra JSON object full of empty strings or nulls. Trim the whitespace at the end of your input before converting.
Technical Details
- Processing: 100% client-side — your data never leaves the browser
- Browser Support: Chrome, Firefox, Safari, Edge
- File Size: Handles files up to ~100 MB depending on device memory
- Encoding: UTF-8 (supports accented characters, CJK, emoji)
Frequently Asked Questions
How do I convert a TSV file to JSON?
Paste your tab-separated text into the input box or drag a .tsv file onto the upload area. Make sure the header toggle is on if your first row has column names, then hit Convert. The JSON output appears instantly — copy it or download the .json file.
What is the difference between TSV and CSV?
TSV uses tab characters to separate columns. CSV uses commas. TSV is generally cleaner when your data already contains commas (like addresses or descriptions) because you don’t need quoting rules. CSV is more common overall, but TSV avoids a lot of the escaping headaches.
Is my data safe when using this converter?
Yes. Everything runs in your browser. No data gets sent to any server. Once you close or refresh the page, it’s wiped from memory. There is no analytics tracking on the content you paste.
Can I convert TSV to JSON without headers?
Absolutely. Turn off the header toggle and you’ll get a JSON array of arrays instead of an array of objects. Each row becomes its own inner array. Good for raw data where column names don’t exist or don’t matter.
Why are my numbers showing up as strings in the JSON output?
You probably have dynamic typing turned off. By default, every value stays as a string. Toggle on the “Dynamic typing” option and the converter will turn numeric values into actual numbers, “true”/“false” into booleans, and “null” into null.