JSON to CSV Converter Online
Convert JSON arrays and objects to CSV or TSV instantly. Keep exact numbers, flatten nested data and protect spreadsheet exports. Free, private, and browser-based.
Your text never leaves your browser.
CSV output
Paste JSON or open a local .json or .txt file to convert it to CSV.
Conversion options
How to convert JSON to CSV online
Paste JSON into the input, open a local .json or .txt file, or load the sample. The CSV output updates as you type or change an option. Copy it or download it as a .csv or .tsv file. API responses, database exports and log records are typical sources.
Supported JSON structures
An array of objects becomes one row per object, with columns taken from every key in first-seen order. A single object becomes one row. An array of arrays becomes one row per inner array, with Column 1, Column 2 headers. Missing keys and null become empty cells.
[{"name":"Ana","age":30},
{"name":"Jonas","city":"Vilnius"}]name,age,city Ana,30, Jonas,,Vilnius
Nested objects and flattening
Nested objects and arrays are kept as compact JSON text in a single cell by default. Turn on Flatten nested objects to turn nested properties into dot-notation columns. Arrays always stay JSON text, and a column-name collision such as a literal address.city key next to a nested address object stops the conversion instead of overwriting data.
[{"name":"Ana",
"address":{"city":"Vilnius"}}]name,address
Ana,"{""city"":""Vilnius""}"name,address.city Ana,Vilnius
Exact numbers, quoting and Unicode
Numbers are copied exactly as written, so 9007199254740993 and 1.00 are never rounded. Fields containing the delimiter, double quotes, line breaks or leading and trailing spaces are wrapped in quotes, with inner quotes doubled. Records are separated by CRLF, without an extra final newline. Accents, emoji and every other Unicode character are kept exactly.
Spreadsheet formula protection
Spreadsheets treat text starting with =, +, - or @ as a formula, which can run unwanted actions when untrusted data is opened. With protection on, those text cells and headers get a leading apostrophe, including when whitespace or control characters precede the formula marker. JSON numbers such as -12 are never changed. This reduces risk but cannot guarantee safety across spreadsheet applications or after saving and reopening a CSV. Import untrusted columns as text and review them before opening. Turn the option off only for trusted data.
Strict validation and limits
Input must be strict JSON: no comments, trailing commas, single quotes or duplicate keys. Errors show the line and column. Open UTF-8 files up to 1 MiB; conversion supports up to 1,000,000 UTF-16 code units of input, 50,000 records and 200 columns, with output up to 5,000,000 UTF-16 code units. Flattening supports paths up to 64 levels; deeper objects can stay as JSON text with flattening off. JSON nesting is limited to 512 levels. Unpaired Unicode surrogates and invalid UTF-8 files are rejected. Nothing is ever truncated.
Related tools
Go the other way with the CSV to JSON Converter, check or tidy your input with the JSON Formatter & Validator, and use the Unicode Inspector to find hidden characters in keys.
Frequently asked questions
How do I convert JSON to CSV online?
Paste JSON into the input, open a local .json or .txt file, or load the sample. The CSV output updates as you type or change an option. Copy it or download it as a .csv or .tsv file. Conversion runs entirely in your browser.
Which JSON structures are supported?
An array of objects becomes one row per object, a single object becomes one row, and an array of arrays becomes one row per inner array. Arrays that mix objects, arrays or plain values are rejected with the position of the first mismatch.
How are columns chosen when objects have different keys?
Columns are the union of all keys in the order they are first seen. When a record does not have a key, that cell is left empty.
What happens to nested objects and arrays?
By default they are written into the cell as compact JSON text. With Flatten nested objects on, nested properties become dot-notation columns such as address.city. Arrays always stay JSON text. If a literal key and a flattened path would create the same column name, conversion stops instead of overwriting data.
Are large numbers and decimals preserved?
Yes. Numbers are copied exactly as written in the source, so 9007199254740993 keeps every digit and 1.00 keeps its trailing zeros.
What is spreadsheet formula protection?
Text that starts with =, +, - or @, including after whitespace or control characters, can be interpreted as a spreadsheet formula. Protection is on by default and prefixes these text cells and headers with an apostrophe, preserving all original characters. JSON numbers are never changed. This reduces risk but is not a safety guarantee across spreadsheet applications or after saving and reopening a CSV. Import untrusted columns as text and review them before opening.
What does the UTF-8 BOM option do?
It adds an invisible byte order mark to the downloaded file so some versions of Excel open accented letters, emoji and other Unicode text correctly. Copied text and the visible output never include it.
Can CSV restore null values and JSON types?
No. CSV has no data types: null and missing values both become empty cells, and numbers, booleans and text all become plain text. Converting the CSV back may not reproduce the original JSON exactly.
Is my JSON uploaded anywhere?
No. Pasted text and opened files are processed locally in your browser and never sent to a server.