Skip to content
Simple Tools

Practical guide

How to convert JSON to CSV or TSV

A spreadsheet table and a JSON document do not retain the same type information. This guide explains how to prepare an export, retain Polish characters and identify where conversion deliberately cannot reconstruct the original structure.

Simple Tools editorial teamReviewed: 2 October 2026

Prepare an array of flat objects

Paste a nonempty array of objects, such as city and amount records, choose comma, semicolon or tab and select “Process”. A single object or an array of numbers is not supported here. Input is pasted text; the tool neither imports a file nor creates an Excel workbook.

Member values may be strings, numbers, booleans or null. An object or array inside a member causes an error rather than silent omission. Define flattening yourself—for example, separate address columns—and check whether doing so would lose relationships between records.

Check column order and empty cells

The header contains the union of member names in first-seen order. A member discovered later adds a column for earlier records too. Names must be nonempty; spaces in a valid name are not trimmed. Do not assume the first object defines the complete table.

In the example, null and a missing member produce empty cells, just like an empty string. Converting back through CSV to JSON cannot restore that distinction or the original types. Keep the source document when nulls, absent members or subsequent API exchange matter.

Comma delimiter and CRLF record endings
JSONCSV
[{"city":"Łódź","amount":1.00},{"city":"Gdańsk","note":null}]city,amount,note Łódź,1.00, Gdańsk,,
[{"note":"A, B \"OK\""}]note "A, B ""OK"""

A delimiter does not change data or numeric types

Choose the destination’s delimiter rather than guessing it from the country. Semicolons can be useful in Polish spreadsheets, but do not replace a JSON decimal point with a comma. Tab selects this implementation’s TSV variant with the same quoting rules; verify destination support.

Number tokens such as 9007199254740993 and 1.00 retain their exact text spelling. A spreadsheet may subsequently round a number, remove zeros or infer a date. Copy output into a suitably encoded text file, such as UTF-8, and inspect text import before saving the table.

Formulas: quoting is not a security boundary

The default option rejects formula-like strings and headers, including =, +, -, @ and selected whitespace or control prefixes. The JSON number -2 is allowed, while the string "-2" is blocked. This is a conservative implementation filter, not a complete spreadsheet security audit.

Raw-text preservation requires an explicit choice and adds no apostrophes or altered values. Use it only with an established safe import workflow. OWASP describes spreadsheet formula risks; CSV quotes alone do not guarantee safety. Do not automatically open an unknown export in a spreadsheet.

Recognize export errors and limits

Input is capped at 50,000 UTF-16 units, JSON at 64 container levels and 10,000 values, and output at 500,000 units. Tables allow at most 1,000 data records, 100 columns and 10,000 data cells. All limits apply together: 1,000 × 100 exceeds the cell cap.

A limit breach does not produce partial output. Check syntax with the JSON formatter; duplicate decoded names and unpaired Unicode surrogates are rejected. Reduce the sample to complete records while retaining all required columns, rather than cutting through the middle of the document.

Privacy, copying and reset

Use a short anonymized sample instead of a complete production export. The tool processes input and output in the browser, without sending them to analytics or saving history in localStorage or sessionStorage. Loading the page still connects your device to hosting. Browser extensions and clipboard access remain outside this protection.

Editing a field clears the old result: select “Process” again to produce the current version. Copying is a separate action. Reset restores initial settings but cannot remove earlier clipboard copies, files or printouts. Report issues using a short synthetic example and expected result rather than confidential data.

Frequently asked questions

Can I export nested JSON?

Not without preparation. Flatten deliberately; the tool rejects containers inside members.

Does CSV preserve null and types?

No. Null, an absent member and an empty string yield an empty cell. Converting back makes all values strings.

Does semicolon change the decimal separator?

No. It changes column boundaries, not JSON value spelling. Configure parsing in the destination.

Does reset remove copied output?

No. It resets the form; earlier clipboard copies, files or printouts need separate removal.

Sources and scope

Examples are synthetic and limits describe this implementation, not universal format requirements. Verify output in its destination system. This guide does not establish API, schema or business-rule compliance and is not a substitute for a security review.

Tools covered by this guide

Generator

JSON to CSV converter

Convert a flat JSON object array to CSV or TSV, with explicit rules for empty cells and formula-like text.

Generator

CSV to JSON converter

Convert CSV or TSV with a header to a JSON object array without guessing cell types.

Calculator

Unix timestamp converter

Convert Unix seconds or milliseconds to UTC and Warsaw time, or an explicitly offset date to a timestamp.