Convert TSV to JSON

Copy a range of cells from a spreadsheet, paste it here and get a JSON array with one object per row. Switch direction to turn JSON from an API back into rows you can paste into Excel.

  • Free
  • Runs in your browser
  • Works both ways
  • No sign-up
How it works

How It Works

Convert in three steps.

01

Paste rows

TSV text or spreadsheet cells. The first row becomes the keys.

02

Check the JSON

Numbers and true/false are converted unless you untick the option.

03

Copy or download

Save as data.json, or switch to JSON to TSV for the reverse.

About

TSV, spreadsheets and JSON

TSV (tab-separated values) is CSV with tabs instead of commas. It is what Excel, Google Sheets and Numbers put on the clipboard when you copy cells, so it is the quickest way to get spreadsheet data into code. Because commas are common in real data and tabs are not, TSV also avoids most quoting problems.

Values that contain a tab, a line break or a double quote are wrapped in double quotes in the TSV output, the same way Excel copies them, so they stay in one cell when pasted back.

Header row as keys

Each column's first cell names the key. An empty header becomes column1, column2 and so on.

Careful type conversion

42 becomes a number and true a boolean, but 007, long IDs over 15 digits and +44 stay text so nothing is lost.

All keys collected

JSON to TSV uses every key found in any object, in the order first seen, and leaves gaps empty.

Nested values

Objects and arrays inside a value are written as JSON text in the cell.

Features

Why Use This Converter

Spreadsheet to code and back.

Paste from Excel

Copied cells arrive as TSV, so no export step is needed.

Two directions

TSV to JSON and JSON to TSV, with the result moved across when you switch.

Safe numbers

Leading zeros and long IDs are kept as text.

Private

Converted in your browser.

✓ No Registration✓ Free✓ Browser-based✓ Text Stays Local
FAQ

Frequently Asked Questions

Questions people ask about the TSV to JSON converter.

Select the cells including the header row, copy them, paste them here and copy the JSON. Excel copies cells as tab-separated text.