🔁

TSV to JSON

✓ Free & no signup 🔒 Runs 100% in your browser Updated 2026-11-25 Development Tools

The fastest data pipeline in the world is select, copy, paste — and when you copy rows from Excel or Google Sheets, what lands on your clipboard is tab-separated text: one tab between columns, one newline between rows. This converter turns that clipboard format into JSON directly, so the distance between a spreadsheet you can see and a data structure you can use is one paste. No export dialog, no intermediate file, no upload; the conversion happens in your browser tab and nothing leaves your device.

Why TSV instead of CSV? Because spreadsheets choose it for you. Excel and Google Sheets put tab-separated text on the clipboard automatically, which makes TSV the format of every ad-hoc transfer: a product manager copies ten rows of metrics into a bug report, an analyst pastes a query result into a ticket, an engineer grabs a range of cells to test against. All of it arrives tab-separated, and this tool is the straightest path from that text to objects your code can iterate.

The shape of the conversion is simple and predictable. The first row becomes the keys, every following row becomes one object, and the output array preserves row order. Paste a four-column range — say sku, warehouse, qty, updated_at — with five data rows, and you get a five-element array of objects with exactly those four keys.

How to Use It (Step by Step)

  1. Select the cells in Excel, Google Sheets, Numbers, or any spreadsheet app and copy them with your usual shortcut.
  2. Paste into the input area. The pasted text keeps its tab structure even though tabs are invisible on screen — the tool sees them even when you cannot.
  3. Leave the first-row-as-header setting on if your selection includes column titles; switch it off for raw ranges, and positional keys like column_1 and column_2 are generated instead.
  4. Review the JSON array: one object per row, keys from your header, values as they appeared in the cells.
  5. Copy the result into your code, API tester, or config, or download it as a .json file.

A concrete example. Copy this inventory snippet from a sheet:

  • sku    warehouse    qty    updated_at
  • AX-100    Newark    42    2026-11-18
  • AX-220    Reno    0    2026-11-21

and the output is an array of two objects: the first carrying sku: "AX-100", warehouse: "Newark", qty: "42", updated_at: "2026-11-18", the second following the same shape with Reno's zero count. Notice two things your eyes hid from you: the tabs between columns were invisible in the sheet, and 42 arrived as a string unless numeric conversion is applied — both handled the way the format actually works.

Why the Excel Paste Angle Matters

Much of the world's operational data lives in spreadsheets maintained by people who would call it "just the tracker" — inventory counts, bug triage lists, campaign budgets, on-call rotations, test matrices. When that data needs to move into software, the traditional route is exporting a file, renaming it, uploading it somewhere. The clipboard route skips all of it: copy the range, paste here, copy the JSON, paste into the script or API payload. For a ten-row import that takes thirty seconds instead of five minutes, and for a repeated weekly task, the saving compounds.

It is also the safest route for sensitive sheets. Because everything is local, payroll rows, customer lists, and unreleased product plans never touch a server. There is no signup, no file upload UI to misuse, and the page works on mobile when the person with the spreadsheet is not at their desk.

What Tabs Change Compared to CSV

TSV is the simpler cousin of CSV, and the difference is mostly good news. Tabs rarely appear inside cell values — spreadsheets strip or replace them — so TSV needs almost no quoting, and the pathological cases that plague CSV parsers, commas inside addresses and multi-line quoted fields, simply do not occur. A value containing a comma, like Springfield, IL, is unambiguous in TSV because the separator is a tab, not a comma. The one trade-off: tabs are invisible, so you cannot eyeball whether a paste is malformed the way you can scan CSV. If a row converts with an unexpected number of keys, the likeliest cause is that your selection was ragged — a header spanning fewer columns than the data rows beneath it.

Source cell contentTSV behaviorJSON result
Springfield, ILComma is data, not a separatorSingle intact string
(empty cell)Empty field between tabsEmpty value for that key
$1,234.50Copied as display textString, needs cleanup for math

Edge Cases Worth Knowing

Ragged rows are the main one. If your data rows have more cells than the header, the surplus lands under indexed keys rather than vanishing; fewer cells leave later keys empty. Formulas convert as their current displayed values, not the formulas themselves — copy from a sheet with =SUM(B2:B9) showing 184 and you get 184, which is almost always what you want. Dates arrive formatted exactly as the cell displays them, so a column shown as 11/18/26 produces that string; if your consuming code needs ISO dates, format the column in the sheet before copying, which costs one menu click and saves a parsing bug. Numbers with currency symbols or thousands separators arrive as display text and stay strings — raw values parse cleanly, display values need stripping.

Tips and Best Practices

  • Include the header row in your selection — it is the cheapest way to get meaningful keys instead of positional placeholders.
  • Fix column titles before copying: short, unique, lowercase names become clean JSON keys, while duplicated headers collide.
  • Format date and number columns as raw values in the sheet first, so the JSON is immediately machine-friendly.
  • Count objects in the output against rows selected; clipboard truncation on huge ranges is a real thing browsers do at surprising sizes.
  • For recurring transfers, standardize the sheet's layout once, then the same paste-convert workflow works unchanged every week.

Frequently Asked Questions

How do I convert Excel data to JSON?
Select the cells, copy them, and paste directly into the converter. The clipboard content from Excel and Google Sheets is tab-separated text, which is exactly what this tool parses: first row as keys, each following row as one JSON object. Copy the resulting array into your code or download it as a .json file. There is no need to export a file first — the clipboard route is faster, and because conversion runs entirely in your browser, sensitive spreadsheets never leave your machine.
What is TSV and how is it different from CSV?
TSV stands for tab-separated values: columns are divided by tab characters instead of commas, and rows by newlines. The practical difference is robustness. Because tabs almost never appear inside cell values, TSV needs no quoting rules, so the classic CSV failure — a comma inside an address splitting one field into two — cannot happen. The trade-off is that tabs are invisible, so you cannot visually verify the separators; count keys in the converted objects instead to confirm each row parsed with the expected number of fields.
Can I paste directly from Google Sheets?
Yes. Copying any cell range from Google Sheets places tab-separated text on the clipboard, with the selected rows separated by newlines, and this converter reads it as-is. Include the header row in your selection so the output keys match your column names. Formulas paste as their current displayed values, not the formulas themselves. Everything runs locally in the browser, so the conversion works wherever the sheet does — office laptop, personal device, or phone — with no upload and no account.
Why does my converted JSON have empty or missing values?
Usually a ragged paste. If the header row spans fewer columns than the data rows, surplus cells land under indexed keys; if data rows are shorter, the trailing keys appear empty. The second common cause is merged cells: a merged header contributes one value while the data beneath has several columns. Check that the number of keys per object matches your expected column count. Empty cells in the source convert faithfully as empty values, which is correct behavior — decide downstream whether they mean null, zero, or genuinely missing.
Do numbers and dates convert correctly from a spreadsheet paste?
They convert exactly as the cells display. Numbers arrive as text unless numeric conversion is applied, so 42 becomes the number 42 but $1,234.50 stays a string because of the symbols. Dates arrive in the cell's display format — 11/18/26 produces that string, not an ISO date. The clean fix happens in the sheet before copying: format date columns as YYYY-MM-DD and store raw numeric values without currency formatting. One minute of formatting makes the JSON immediately usable by date libraries and arithmetic without any post-conversion cleanup.
Is there a size limit for pasting spreadsheet data?
No hard limit — the practical ceiling is your browser's memory and clipboard behavior. Ranges of a few thousand rows convert almost instantly on a typical laptop, since TSV parsing is lightweight. Very large selections can hit a different bottleneck: some browsers truncate or slow down enormous clipboard payloads, so for a 100,000-row export, use the spreadsheet's native CSV export and a CSV converter instead. For the day-to-day case — a table of dozens to a few thousand rows — the paste-convert-copy loop completes in seconds with everything staying on your device.

Related Tools