- All tools
- CSV ⇄ JSON
How do I convert CSV to JSON — or JSON to CSV?
Paste CSV or open a file and get a JSON array of objects, with the header row as keys and numbers and true/false converted to real JSON values. Switch direction to turn a JSON array into CSV: nested objects become columns like address.city, and the download opens correctly in Excel. Delimiters are detected for you, and quoted fields with commas or line breaks are handled properly.
- Choose CSV → JSON or JSON → CSV.
- Paste the data or open a file.
- Copy the result or download it.
What this page can do
- RFC 4180 CSV: quoted fields, escaped quotes, line breaks
- Detects comma, semicolon, tab and pipe delimiters
- Header row to object keys, with duplicate names fixed
- Optional number and true/false conversion
- Flattens nested JSON objects into dotted columns
- Excel-friendly UTF-8 CSV download
When to use this page
- Turning a spreadsheet export into JSON for an API, a script or test fixtures.
- Opening an API response in Excel or Google Sheets.
- Checking how a CSV file is really structured.
When to use something else
- The file is hundreds of megabytes — use a command-line tool such as csvkit, jq or Miller.
- You need XLSX files directly — save as CSV from your spreadsheet first.
- You need deep JSON reshaping or querying — use jq.
How it compares with other options
Spreadsheet apps import and export CSV, and tools like csvkit, Miller and jq convert large files and script the work. Many online converters upload your data to do the same. This page parses CSV with a standards-compliant parser written for the browser and keeps your data on your device, which matters for customer lists and exports.
Where your data goes
Nowhere. Everything is computed by your own browser. Nothing you paste is sent to a server, logged or stored — close the tab and it is gone. You can check it yourself: open your browser’s network panel — the page still loads its own code and any ads, but no request carries what you typed.
Questions about this tool
Why are some numbers kept as text?
Values with leading zeros such as 007 or ZIP codes, and integers too large for JavaScript to store exactly (over 9,007,199,254,740,991), stay as strings so no information is lost. Turn off number conversion to keep every value as text.
My CSV opens with garbled characters in Excel — why?
Excel assumes a legacy encoding unless the file starts with a UTF-8 byte-order mark. Keep “Excel-friendly download” on and accents, Chinese and other characters display correctly.
How are nested objects and arrays converted to CSV?
With flattening on, {"address": {"city": "Lisbon"}} becomes a column named address.city. Arrays are written into one cell as JSON text, because there is no single right way to spread a list across columns.
Which delimiter does my file use?
Files from Excel in many European locales use semicolons, database exports often use tabs, and most others use commas. The page tries each one and picks the delimiter that gives a consistent number of columns; you can choose it yourself too.