TSV to JSON Converter

Turn tab-separated data into clean, structured JSON in one click. Paste your TSV, and each row becomes a JSON object with header-defined keys — no coding required.

TSV data

Paste your tab-separated data below. The first row must be the header.

Everything runs locally in your browser — nothing is uploaded.

JSON outputPretty-printed JSON array of objects from your TSV input.

0 lines in0 lines outN/A runtime

Most TSV files convert in under 10ms on modern browsers.

How to convert TSV to JSON

Convert in 3 steps

Takes ~5 seconds
  1. 1
    Paste your TSV

    Copy tab-separated data from a spreadsheet, export, or text file and paste it into the input box.

  2. 2
    Click Convert

    Press "Convert to JSON" and the tool parses your headers and rows instantly.

  3. 3
    Copy the JSON

    Grab the pretty-printed JSON array and use it in your app, API, or data pipeline.

Tip: Export any spreadsheet as TSV and paste it here to get a JSON array ready for any API or database.

Who should use this tool?

  • Developers importing spreadsheet exports into JSON-based APIs or databases
  • Data analysts converting TSV reports into a format compatible with JavaScript tools
  • DevOps engineers transforming tab-delimited config or log data into structured JSON

Examples

Three-column TSV with two data rows converts to a JSON array of two objects.

Input
name	age	city
Alice	30	New York
Bob	25	Los Angeles
Output
[
  {
    "name": "Alice",
    "age": "30",
    "city": "New York"
  },
  {
    "name": "Bob",
    "age": "25",
    "city": "Los Angeles"
  }
]

A row with a missing field gets an empty string for the missing key.

Input
id	product	price
1	Widget
2	Gadget	9.99
Output
[
  {
    "id": "1",
    "product": "Widget",
    "price": ""
  },
  {
    "id": "2",
    "product": "Gadget",
    "price": "9.99"
  }
]

Header-only TSV with no data rows returns an empty JSON array.

Input
firstName	lastName	email
Output
[]

About the TSV to JSON converter

Tab-separated values (TSV) are a common export format from spreadsheets, databases, and analytics tools. This converter maps each row to a JSON object using the first row as property keys, making the data immediately usable in web apps and APIs.

This free TSV to JSON converter tool parses tab-separated value files and outputs a pretty-printed JSON array of objects. The first row of your TSV is treated as the header, with each cell becoming a key in the resulting JSON objects. Use it to transform spreadsheet exports, database dumps, or log files into structured JSON for JavaScript applications, REST APIs, or NoSQL databases. All processing runs locally in your browser for speed and privacy.

Header-aware parsing

The first row is automatically used as object keys for every record.

  • Headers become JSON keys
  • Each row becomes an object
  • Pretty-printed output
Handles edge cases

Missing fields, extra columns, and empty cells are all handled gracefully.

  • Empty cells as empty strings
  • Short rows padded with blanks
  • Extra fields safely ignored
Private by default

All conversion runs in your browser. Your data never leaves your device.

  • No data uploaded
  • Works offline
  • No signup needed
Privacy first: we never send your input to a server. Everything runs locally in your browser.

TSV to JSON conversion tips

Clean input produces cleaner output. A few habits make conversions more reliable.

  • Make sure your first row contains unique, descriptive header names — duplicate headers keep only the last column's value.
  • Trim any trailing blank lines before pasting to avoid empty objects at the end of the array.
  • If your data contains tab characters inside cell values, clean or quote them first since bare tabs are treated as field delimiters.

Frequently asked questions

What happens to empty cells in my TSV when converting to JSON?>
Empty cells become empty strings ("") in the JSON output — they are never converted to null. This keeps the output consistent and avoids unexpected null-handling bugs in downstream code.
What if my TSV rows have more columns than the header?>
Extra trailing fields beyond the number of headers are silently ignored. Only the fields that correspond to a header column are included in each JSON object.
Can I convert a TSV with duplicate column headers?>
Yes, but duplicate header names will cause each matching column to overwrite the previous one. The last column with that name wins, so the earlier columns' values are lost. Rename duplicate headers before converting for best results.
How do I convert a TSV file exported from Excel or Google Sheets to JSON?>
In Excel, use File → Save As and choose "Text (Tab delimited) (.txt)". In Google Sheets, go to File → Download → Tab Separated Values (.tsv). Open the file, select all, paste it into this tool, and click Convert to JSON.

Related Data tools