Browser tool
JSON to CSV Converter – Free Online Converter | FPSDEN
Convert JSON to CSV in your browser. Paste or open a local file, pick a delimiter, add a UTF-8 BOM for Excel, then copy or download the result.
—
JSON to CSV Converter
Paste JSON or CSV into the input box, pick the direction with the tab, and read the converted text in the result area. Everything runs in this browser tab.
Convert JSON to CSV without uploading a file. This free converter needs no account. Paste JSON or choose a local file; the conversion runs in this browser tab and does not send your data to a server.
Opening the CSV in Excel? Choose the delimiter your spreadsheet expects. If accented characters display incorrectly, enable Add a UTF-8 BOM before downloading a new copy.
JSON to CSV CSV to JSON
Converter workspace
Input text [ {"id":1,"name":"Ada Lovelace","city":"London","tags":["math","notes"]}, {"id":2,"name":"Grace Hopper","city":"New York","tags":["compiler"]}, {"id":3,"name":"Alan Turing","city":"Wilmslow","tags":[]} ]
Converted output
Type or paste into the input box, or drop a .json, .csv or .tsv file onto it. The output updates as you type; the Convert button re-runs the same conversion after a change.
CSV delimiter Detect automatically Comma (,) Semicolon (;) Tab
Conversion options Add a UTF-8 BOM to the CSV output (Excel compatibility) Flatten nested JSON objects to dot paths (address.city) Convert CSV text to JSON numbers, true/false and null when it round-trips exactly
Convert Download result Choose a file Clear input
Ready: the sample text is loaded. Replace it with your own data.
Drag a file here or onto the input box to load it. Nothing is uploaded: the file is read in this browser tab.
One block per column the converter found, in first-seen order; the label under the map reports how many records were read.
Copy result Rules used here: JSON must be an array of objects, one object, or an object whose first array-valued property holds the records; nested objects become dot paths while arrays stay JSON text; CSV follows RFC 4180 with CRLF rows, quoted fields and doubled inner quotes, and a leading BOM is ignored on read.
Accepted JSON record shapes
Start with an API payload or an exported collection of records. A top-level array provides one spreadsheet record per object; a standalone object becomes a single record. A wrapper such as {"data":[{"id":7}]} is also accepted: the first array-valued property supplies the collection. Other wrapper metadata is not merged into its members. Primitive payloads, empty collections and arrays containing non-object members cannot produce the required tabular structure. Inspect that envelope before export, especially if a service returns both a results collection and a separate pagination array.
Example: convert an API response to a CSV for Excel
Say your API returns {"data":[{"id":7,"customer":{"city":"Montréal"}}],"next":"page-2"}. Paste it into the converter and enable Flatten objects. The CSV header is id,customer.city, and the data row is 7,Montréal. The next field is not exported: it belongs to the wrapper, not the record.
If Excel puts both fields in one column, import the file via Data → From Text/CSV and choose the delimiter used at export. If Montréal appears garbled, enable Add a UTF-8 BOM and download the CSV again. A BOM helps Excel recognize the encoding; it does not split columns.
Flattening nested objects into columns
With Flatten objects enabled, nested property paths become headings. The payload {"customer":{"address":{"city":"Oslo"}}} contributes customer.address.city. The traversal descends through objects, whereas a nested array remains serialized in a single position. This is a projection for analysis rather than a reversible encoding of the original hierarchy. Literal dots in property names can collide with generated paths: avoid mixing a literal address.city property with an address object containing city. Keep the original payload whenever another program will later need its precise structure.
Keeping objects and arrays in one cell
Switch Flatten objects off when nested structures should remain bundled. An address object is then serialized into its parent's position instead of expanding into address.city and address.postcode headings. Arrays are serialized either way, so tags such as ["paid","priority"] occupy one position containing bracketed text. They do not fan out into extra records, and the exporter does not calculate every combination of nested array members. Choose the representation expected by your importer; an analyst expecting separate tag records must reshape that collection before using this workspace.
Column order and optional attributes
The column map is collected while visiting the records. Properties encountered in the earliest member establish the initial headings; previously unseen properties from later members extend that map. Every emitted record uses the completed map. For [{"id":1},{"id":2,"status":"open"}], the status heading therefore exists even though the first member lacks it. Spelling and capitalization remain significant: customerId and CustomerID are separate properties. Normalize inconsistent property names upstream if they describe the same attribute; this exporter does not merge them by guessing their meaning.
Missing values, null and numeric precision
Missing properties, explicit null and empty strings all become empty spreadsheet positions. Those distinctions cannot be recovered reliably from the exported table alone. Booleans become true or false, numbers use their string representations, and structured values use JSON serialization. A long numeric identifier already rounded by JSON parsing cannot regain its lost digits at export time; encode identifiers as strings at their source. Review the column map against representative members, including ones with optional attributes, before handing the output to a reporting system that assigns its own types.
Spreadsheet encoding and serialized values
Choose the output separator required by the receiving spreadsheet. The writer protects embedded separators, quotation marks and newlines by quoting the affected values and doubling internal quotation marks. Exported records use CRLF endings. The BOM switch prefixes the download with a UTF-8 marker, which helps Windows spreadsheet programs recognize accented names correctly. That marker concerns file decoding, not object structure or numeric precision. A nested array remains bracketed text after opening the file; spreadsheet software will not automatically turn it back into a native array.
Limits, privacy and files
The download is converted.csv, generated on the device from the current payload. At most 5000 record objects can be exported in one pass; partition a larger collection without changing its schema between parts. Parsing rejects invalid JSON, so comments, unquoted property names and trailing commas need attention in the source document. This workspace extracts and serializes existing members. It does not fetch subsequent API pages, join collections, resolve references or deduplicate records. Complete those preparation steps before exporting when your reporting workflow depends on them.
Counting words in the document you paste this data into? See how to check word count in Google Docs .
Frequently asked questions
Which API response envelope should I paste?
Use the record array itself, a standalone object, or a wrapper whose first array-valued property contains records. A wrapper's pagination metadata is not copied into those records. Ensure each selected member is an object.
Will nested arrays generate additional spreadsheet records?
No. Each selected object remains one record. Nested arrays are serialized into bracketed text inside their existing position, regardless of the Flatten objects setting.
What changes when Flatten objects is disabled?
Nested objects remain serialized values under their parent properties. Enabling it instead expands their leaves into dotted headings such as customer.address.city. Keep the untouched payload to preserve the hierarchy.
Why did an optional attribute become a heading?
The column map includes previously unseen properties found anywhere in the selected collection. Earlier members that lack an optional attribute leave its position empty; later members can populate it.
Can I distinguish missing, null and empty string after export?
Those three cases all yield empty spreadsheet positions. Add explicit status properties to the source records beforehand when a downstream report must distinguish them.
Does exporting repair an imprecise numeric identifier?
No. Precision lost while parsing a JSON number is already gone. Supply long identifiers as quoted strings in the original payload if every digit must survive.
Why enable the UTF-8 BOM switch?
The marker helps Windows spreadsheet software decode accented characters in the downloaded file. It does not change the property map, flattening choice, boolean values or number handling.
Will the workspace fetch the next page of an API?
No. It processes only the payload supplied to the editor. Gather additional pages separately, respect the 5000-record cap per export, and review the combined schema before producing a report.
On this page
Converter workspace
Accepted JSON record shapes
Flattening nested objects into columns
Keeping objects and arrays in one cell
Column order and optional attributes
Missing values, null and numeric precision
Spreadsheet encoding and serialized values
Limits, privacy and files
Frequently asked questions
Related tools
CSV to JSON Converter Turn a CSV table into JSON, with delimiter, quoting and type options.
Google Docs Word Count Guide How to open, show and read the word count in Google Docs, and what it leaves out.
Worksheet Generator Create fraction practice, handwriting sheets and a rubric to print.
Random Number Generator Choose an integer range, digit count, quantity and optional no repeats.