JSON to CSV Converter

Paste a JSON array or upload a .json file and get clean CSV instantly. Each object becomes a row, each key becomes a column, and nested objects are flattened into dot-named columns like address.city. Choose a comma, semicolon or tab delimiter, check the live preview, then copy the CSV or download it as a file.

An array of objects works best. An array inside an object, such as {"data": [ … ]}, is found automatically.
Delimiter

Use semicolon if your spreadsheet app uses commas as the decimal separator. Tab downloads as a .tsv file.

Arrays inside items

One cell joins simple lists with commas (and keeps lists of objects as JSON text). Column per item creates tags.0, tags.1 and so on.

0rows
0columns
Ready.
CSV output

  
Table preview

    Runs entirely in your browser. Nothing you enter is uploaded or stored.

    Rate this tool

    Be the first to rate this tool

    How to use the JSON to CSV

    1. Paste your JSON into the box, or choose or drop a .json file.
    2. Pick a delimiter (comma, semicolon or tab) and how arrays inside items should be handled.
    3. Check the CSV output and the table preview: each object is a row and nested keys are joined with dots.
    4. Click Download CSV to save the file, or Copy CSV to paste it somewhere else.

    How JSON is turned into CSV

    JSON from an API, a database export or a log file is usually a list of records: an array where each item is an object with similar keys. CSV (comma-separated values) stores the same records as plain text, one line per record and one column per field. This converter makes every object a row and every key a column. Columns appear in the order keys are first seen, so if a later record has an extra field, a new column is added and earlier rows leave that field empty. If your JSON is an object that wraps the records, such as {"data": {"users": [ … ]}}, the tool searches inside it, finds the first array of objects and tells you which one it used.

    Flattening nested objects and arrays

    A CSV cell can only hold one value, so nested objects are flattened with dot notation. A record like {"address": {"city": "Austin", "zip": "78701"}} becomes two columns, address.city and address.zip, at any depth. Arrays have two options. “One cell” joins simple lists such as tags into a value like math, poetry, and keeps arrays of objects as compact JSON text so nothing is lost. “Column per item” spreads arrays into indexed columns such as tags.0 and tags.1, which works well when records hold short lists of similar length. Numbers and true or false are written exactly as they appear in the JSON, and null becomes an empty field.

    Correct quoting, delimiters and Excel support

    The output follows RFC 4180, the common standard for CSV. Any field that contains the delimiter, a double quote or a line break is wrapped in double quotes, and quotes inside it are doubled, so Said "hello" becomes "Said ""hello""". Fields with leading or trailing spaces are quoted too, so the spaces survive. Lines end with CRLF, as the standard specifies. Choose a semicolon if you open files in a spreadsheet set to a European locale, where the comma is the decimal separator, or a tab for tab-separated values that paste neatly into spreadsheets. The optional UTF-8 byte order mark at the start of the download helps Microsoft Excel display accented letters, symbols and emoji correctly; turn it off for scripts or databases that do not expect it. The header row can also be switched off when you are appending rows to an existing file.

    Private, fast and in your browser

    Parsing, flattening and building the CSV all happen on your device, so your data is never uploaded. Files up to 50 MB can be loaded, and the preview shows the first rows as a table on wide screens or as cards on phones while the copy and download include every row. If your JSON does not parse, the tool shows the browser’s explanation with a line and column when available; tidy it first with the JSON formatter. Need a real spreadsheet with numeric cells instead of plain text? Use the JSON to Excel converter to download an .xlsx file.

    Examples

    • [{"name":"Ada","age":36},{"name":"Alan","age":41}] → name,age / Ada,36 / Alan,41
    • {"name":"Ada","address":{"city":"London"}} → columns name and address.city
    • {"note":"a, b"} with comma delimiter → "a, b" (quoted because it contains a comma)
    • {"result":{"items":[{"id":1},{"id":2}]}} → the “result.items” array is used, giving 2 rows

    JSON to CSV FAQ

    Is my JSON uploaded to a server?

    No. The conversion runs entirely in your browser, so your data stays on your device.

    How are nested objects handled?

    They are flattened into columns joined with dots. For example, user.address.city is the city inside the address inside the user object.

    Why do accented letters look wrong when I open the CSV in Excel?

    Excel may not detect UTF-8 on its own. Keep “Add UTF-8 BOM” ticked when downloading and Excel will read the characters correctly.

    Should I choose comma, semicolon or tab?

    Comma is the standard. Choose semicolon if your spreadsheet uses a comma as the decimal separator, and tab if you want tab-separated values or plan to paste into a spreadsheet.

    What if my records have different keys?

    Every key found in any record gets a column. Records without that key leave the field empty.

    Can it find an array inside a JSON object?

    Yes. If the top level is an object, the tool looks for the first array of objects inside it, even several levels deep, and tells you which one it converted.

    Related tools

    All Developer Tools
    JSON Formatter & ValidatorBeautify, minify and validate JSON with clear error messages.Base64 Encode / DecodeEncode or decode Base64 for text and files, UTF-8 safe.Compare Two ListsFind differences, common items, and unique entries between two text lists.Cron Expression GeneratorBuild cron schedules with simple menus, or paste any cron expression to explain it in plain English and see the next 5 run times.Diff CheckerCompare two texts and see every added, removed and changed line, with word or character highlights, side by side or unified.HEX to RGB ConverterConvert HEX color codes to RGB, RGBA and HSL and back, with a live swatch, color picker, alpha control and copy-ready CSS.JSON to ExcelConvert a JSON array to a real Excel .xlsx spreadsheet or CSV, with nested objects flattened into dot-named columns and a live preview.PX to REM ConverterConvert pixels (px) to rem and rem to px with custom root font size and CSS table.Regex TesterTest JavaScript regular expressions live: highlighted matches, capture and named groups, indices, flags and a replace preview.Unix Timestamp ConverterSee the current Unix epoch time live, convert timestamps in seconds, milliseconds or microseconds to dates, and dates back to timestamps.URL Decode & EncodeDecode or encode URLs and query strings (percent-encoding), with + as space option and a query parameter table.Discount CalculatorFind the sale price and how much you save from a percent or dollar discount, including stacked extra % off deals.Tone GeneratorPlay a pure tone at any frequency from 1 Hz to 20,000 Hz with sine, square, sawtooth or triangle waves.