How to use the JSON to CSV Converter
- Choose the direction: JSON to CSV or CSV to JSON. A short sample is loaded so you can see the format.
- Paste your data into the input box. The output updates as you type.
- Set the delimiter if your file uses semicolons, tabs or pipes. For CSV input, Auto-detect looks at the first line.
- Copy the output. For JSON to CSV you can add Windows line breaks or guard against formulas; for CSV to JSON you can turn numbers and true/false into real JSON values.
How JSON becomes CSV
The input must be an array of objects (a single object counts as one row). The header row is the union of all keys, in the order they first appear, and an object that lacks a key gets an empty cell. Null becomes an empty cell. Nested objects and arrays do not fit in a flat table, so they are written as JSON text inside the cell.
A cell is wrapped in double quotes when it contains the delimiter, a double quote or a line break, and any double quote inside it is doubled. This follows RFC 4180, so {"note":"say \"hi\", ok"} becomes "say ""hi"", ok".
How CSV becomes JSON
The first row is the header and gives the keys. Every later row must have the same number of fields as the header, otherwise the tool reports the row number instead of guessing. Quoted fields may contain delimiters and line breaks, a doubled quote means one literal quote, and a byte order mark at the start is ignored. Blank lines are skipped, an empty header cell is named column_N, and repeated header names are rejected.
CSV has no types, so every value starts as text. With "Convert numbers and true/false" on, a value becomes a number only if writing the number back gives exactly the same text. That keeps 007, 1.50 and very long ids as strings, so no digits are lost.
Spreadsheet formula injection
A spreadsheet may treat a cell that starts with =, +, - or @ as a formula. If your JSON holds text from untrusted users, turn on the formula guard so such text gets a leading apostrophe before you open the CSV in a spreadsheet. It changes the data, so leave it off when you need an exact copy.
Frequently asked questions
Can I convert a JSON object with nested objects?
Yes, but nested objects and arrays are stored as JSON text in a single cell, because CSV is flat. Flatten the data first if you need one column per nested key.
Why do my numbers come back as text in CSV to JSON?
CSV has no types, so values are strings by default. Turn on "Convert numbers and true/false" to get real numbers and booleans. Values like 007 or 1.50 stay as text because converting them would change what they say.
Why does the tool reject a row with a different number of fields?
A row with too few or too many fields usually means an unquoted delimiter or a stray quote. Reporting the row is safer than shifting values into the wrong columns.
Is my data uploaded anywhere?
No. The conversion runs in your browser with no network request for your data.
Does it handle semicolon-separated files from European spreadsheets?
Yes. Pick Semicolon, or leave Auto-detect on for CSV input. For JSON to CSV, choose Semicolon so decimal commas stay readable.
Sources
Last reviewed