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
- Paste an array of objects.
- Copy the result.
- 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.