Hack the Hydra

JSON to CSV converter

Paste a JSON array of objects and get a CSV you can open in Excel or Google Sheets. Nested objects are flattened into columns like address.city, and quotes or line breaks inside values are escaped correctly.

🔒 Private by design: the conversion runs in this browser tab. Nothing is uploaded.

JSON to CSV converter is a free online tool by Hack the Hydra. Convert a JSON array to CSV online. Nested objects become dotted columns, values are quoted correctly, choose comma, semicolon or tab. Runs in your browser.

100% freeNo upload: runs in your browserNo sign-up
JSON to CSV converter: the tool with a sample file converted

How the conversion works

The tool first collects every key found in any object, so rows with missing fields still line up under the right column. Nested objects are flattened with dots: {"address":{"city":"Lyon"}} becomes a column named address.city. Arrays inside a value are kept as JSON text in one cell, because there is no single correct way to spread a list over columns.

Opening the result in Excel

In many European locales Excel expects a semicolon instead of a comma. If your file opens as a single column, choose the semicolon separator and convert again. Values containing the separator, quotes or line breaks are wrapped in double quotes and inner quotes are doubled, as RFC 4180 describes.

What input is accepted

A JSON array of objects is the normal case. A single object becomes one row, and an object that wraps an array (such as {"data":[...]}) uses that array. For the opposite direction see the CSV to JSON tool.

Example

An array of JSON objects becomes a CSV with one column per key.

Input

[{"name":"Ada","city":"London"},{"name":"Linus","city":"Helsinki"}]

Output

name,city
Ada,London
Linus,Helsinki

How to use

  1. Type or paste your text in the box above.
  2. The result updates as you type; change the options to switch mode.
  3. Copy the result or download it.

FAQ

Is my JSON uploaded?

No. The conversion runs in JavaScript in your browser tab; nothing is sent to a server.

How are nested objects handled?

They are flattened into dotted column names, for example user.address.city. Arrays are written as JSON text in a single cell.

Why is everything in one column in Excel?

Excel uses your regional list separator. Pick the semicolon option if you are in France, Germany, Spain or another locale that uses decimal commas.

Can I convert back?

Yes, use the CSV to JSON tool on this site.

More free converters

PDF to Markdown converterOCR PDF: scanned PDF to textImage to text (OCR)Word (DOCX) to Markdown converterExcel & CSV to Markdown tablesHTML to Markdown converterPowerPoint (PPTX) to Markdown converterJSON to Markdown tablePDF to text converterExcel to JSON converterMarkdown to HTML converterMerge PDF filesSplit PDF: extract pagesRotate PDFJPG to PDF converterPDF to JPG converterImage converter: PNG, JPG, WebPCompress image: JPG and WebPQR code generatorWord counterCase converterJSON formatter and validatorBase64 encode and decodeURL encoder and decoderUUID v4 generatorStrong password generatorLorem ipsum generatorRemove duplicate linesUnix timestamp converterJSON to YAML converterText diff checkerImage resizerPercentage calculatorAge calculatorHash generator (SHA-256, SHA-1, SHA-512)Color converter: HEX, RGB, HSLDays between dates calculatorYAML to JSON converterUnit converterJWT decoderBinary, hex, decimal and octal converterRoman numeral converterRegex testerCron expression explainerPDF to Markdown for ChatGPTPDF to Markdown for ClaudePDF to Markdown for RAG pipelinesPDF to Markdown for ObsidianPDF to Notion (via Markdown)Screenshot to textFrench OCR: image to textCSV to Markdown tableGoogle Docs to MarkdownJPG / JPEG to text (OCR)PNG to text (OCR)CSV to JSON converterPNG to JPG converterJPG to PNG converterWebP to PNG converter