Tools

Home
JSON FormatterSQL FormatterJS ValidatorMinify CSS
Merge PDFCompress PDFImage to PDF
JPG to PNGPNG to WebPCrop Image

TSV to JSON Converter

Paste tab-separated data and instantly convert it to JSON with auto-detected headers and type inference

Your files never leave your browser
TSV Input0 chars, 0 lines
JSON Output0 chars, 0 lines
Ready·

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

Paste TSV
→
Split Tabs & Rows
→
Output JSON

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.

INPUT
name email age Alice [email protected] 29 Bob [email protected] 34
OUTPUT
[ { "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.

INPUT
sku item qty inStock W-001 Widget 150 true W-002 Gadget 0 false W-003 Sprocket 42 true
OUTPUT
[ { "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.

INPUT
red 255 0 0 green 0 128 0 blue 0 0 255
OUTPUT
[ ["red", 255, 0, 0], ["green", 0, 128, 0], ["blue", 0, 0, 255] ]

Who Uses This

👨‍💻 Developers

Converting database exports or log dumps into JSON for API testing and config files.

📊 Data Analysts

Turning spreadsheet exports into JSON so they can feed them into Python scripts or visualization tools.

🎓 Students

Formatting homework datasets as JSON for programming assignments without writing a parser from scratch.

📋 Project Managers

Moving task lists or tracking sheets into JSON for import into project management APIs.

Common Mistakes

Pasting spaces instead of tabs

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.

Leaving "First row as headers" on when there's no header

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.

Expecting Auto-type to catch dates

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

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.

Share: