TSV to JSON
Paste rows from Excel or Google Sheets and get JSON with one object for each row.
Add TSV data and click Convert to see the JSON here.
How TSV to JSON works
Converts tab-separated data (TSV) into JSON array with one object for each row. When you copy cells from Excel or Google Sheets, you get TSV, so you can paste them right in.
Two options change the result. Change one after converting and the output updates right away.
Input to TSV to JSON
- Paste TSV into the input box, or upload a .tsv, .tab or .txt file. Then click Convert.
- First row is the header: when on, the first row gives the keys. When off, keys are Column 1, Column 2 and so on.
- Read numbers and true/false: when on, 42 becomes a number, true becomes a boolean and empty cells become null. When off, every value stays text.
Output from TSV to JSON
- JSON array indented with 4 spaces. A message shows how many rows were read.
- Numbers with leading zeros, like 007, stay text so they do not change.
- Repeated header names get a number added, like name_2. A row with fewer cells gets null for the missing ones.
- Copy it, download it as output.json or open it in full screen.