Category: Developer tools
JSON to CSV Converter
Flatten JSON records into CSV columns without uploading the payload
Paste a JSON object or array, flatten nested fields to dot-path columns, choose comma, semicolon or tab, and copy or download CSV locally.
Paste a JSON array or object to convert it to CSV.
The result will appear here.
Everything on this page is processed in your browser. Nothing is uploaded.
What this tool does
This JSON to CSV converter turns pasted JSON records into CSV text. A single object becomes one row; an array of objects becomes multiple rows. Nested objects are flattened into dot-path columns such as address.city, arrays of objects become indexed dot-path columns, and scalar arrays are joined into one cell with a semicolon and a space. The column list is built from the union of keys across every record, so records with different shapes still line up. Null, undefined, empty objects and empty arrays become empty cells. You can include or omit the header row and choose comma, semicolon or tab as the delimiter. Rows use CRLF, and fields containing the delimiter, quotes or line breaks are quoted with doubled inner quotes. Copy the result or download converted.csv. The tool does not accept JSON Lines, upload files, fetch URLs, choose or reorder columns, keep nested values as raw JSON in one cell, create .xlsx files, add a BOM, select encodings or stream huge payloads. JSON and CSV stay in the browser.
How to use it
- Paste a JSON object or array of objects into the input area.
- Choose comma, semicolon or tab, and decide whether to include a header row.
- Review the flattened columns, then copy the CSV or download converted.csv.
Privacy
This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.
Frequently asked questions
- How does the converter handle nested JSON objects?
- Nested objects are flattened into dot-path columns such as address.city. Arrays of objects become indexed dot-path columns, while scalar arrays are joined into one cell.
- What happens if JSON objects have different keys?
- The header is built from every key discovered across the records. Missing values in a particular row become empty cells.
- Can I convert a single JSON object?
- Yes. A single object is treated as one CSV row. A scalar or null value is invalid because there are no record fields to turn into columns.
- Is my JSON uploaded to a server?
- No. Parsing, flattening and CSV generation run in your browser, and the pasted JSON is not uploaded to LocalTools.
- Can it create Excel, JSON Lines or selected columns?
- No. The output is CSV text or converted.csv only, with no .xlsx, NDJSON input, column selection, custom ordering or raw nested JSON cell option.