JSON to TSV converter

JSON to TSV conversion writes object properties as tab-separated columns, which paste directly into spreadsheet cells.

Features

  • Paste into cellsThe output drops straight into Excel or Google Sheets.
  • Escaped control charactersTabs and newlines inside values are written as \t and \n.
  • Runs on your deviceYour data is processed in the browser and is never uploaded.

How to use the JSON to TSV converter

  1. Paste an array of objects.
  2. Copy the result.
  3. Paste into the first cell of your sheet.

When TSV is better than CSV

TSV avoids quoting problems when values contain commas, such as addresses or sentences.

Convert JSON to TSV in JavaScript

const keys = Object.keys(rows[0]);
const tsv = [keys, ...rows.map((r) => keys.map((k) => r[k]))].map((r) => r.join('\t')).join('\n');

Frequently asked questions

Are headers included?

Yes, as the first line.

What about nested objects?

They become JSON text in one cell.

Is my data stored?

No.

Related tools