CSV to JSON and JSON to CSV converter
Turn a CSV export into JSON for an API or app, or turn JSON into a CSV you can open in Excel or Google Sheets. The converter follows the CSV standard (RFC 4180): quoted fields, commas and line breaks inside quotes and doubled quotes all work, and it detects comma, semicolon, tab and pipe delimiters automatically. CSV to JSON can turn numbers and true/false into real JSON types while keeping values like 00123 as text. JSON to CSV flattens nested objects into columns and protects the file against spreadsheet formula injection.
Convert
Delimiter
How to use the CSV to JSON Converter
- 1
Choose the direction
Pick CSV → JSON or JSON → CSV.
- 2
Paste or open your data
Paste the data or open a .csv, .tsv or .json file of up to 20 MB.
- 3
Adjust the options
Set the delimiter, header row and type options, or flattening and formula protection for CSV output.
- 4
Copy or download
Copy the result or download it as a .json or .csv file.
How the conversion works
With a header row, each CSV row becomes a JSON object whose keys are the column names; duplicate or blank headers get unique names. Without one, each row becomes an array. Values that look like numbers or true/false become JSON numbers and booleans when type detection is on, except numbers with leading zeros (ZIP codes, phone numbers), which stay text.
For JSON to CSV, columns are the union of all keys across the objects, in the order they first appear. Nested objects become dotted columns such as address.city; arrays are written as JSON text in one cell.
- [{"name":"Tea","price":2.5}] ⇄ name,price / Tea,2.5
When to use it
- Turn a spreadsheet export into JSON for a website, API or test fixture.
- Open an API response in Excel or Google Sheets.
- Change a semicolon-separated European CSV into JSON or back.
Limits
- Files up to 20 MB; very large files are faster to convert with a script.
- Only the first 200,000 characters are shown in the preview box; the download always contains everything.
- Excel files (.xlsx) must be saved as CSV first.
Privacy
Data is converted in your browser. Your files are never uploaded.
Frequently asked questions
How do I convert CSV to JSON?
Choose CSV → JSON, paste your CSV or open the file, and copy or download the JSON. The first row is used as the field names unless you untick 'First row is a header'.
My CSV uses semicolons. Does it work?
Yes. The delimiter is detected automatically (comma, semicolon, tab or pipe), or you can choose it yourself.
Why did my numbers stay as text?
Either type detection is off, or the value has a leading zero, thousands separators or more than 15 digits. Those are kept as text so nothing is lost or changed.
How are nested JSON objects converted?
With 'Flatten nested objects' on, {"address":{"city":"Kandy"}} becomes a column named address.city. Arrays are written as JSON text in a single cell.
What is formula injection protection?
A cell that starts with =, +, - or @ can run as a formula when the CSV is opened in a spreadsheet, which attackers abuse. With protection on, such text values get a leading apostrophe so they display as plain text.
Will Excel show Sinhala, Tamil or accented text correctly?
Yes. Downloaded CSV files include a UTF-8 byte-order mark so Excel opens them with the right encoding.
What JSON shapes can be turned into CSV?
An array of objects, an array of arrays, a single object, or an object with one array inside such as {"items": [...]}.
Related tools
People also use
- JWT Generator & SignerCreate and sign JSON Web Tokens with HMAC, RSA or ECDSA keys, entirely in your browser.
- Base64 Encoder & DecoderEncode and decode Base64 and Base64url, text or files.
- URL Encoder & DecoderPercent-encode or decode URLs and see their query parameters.
- UUID GeneratorBulk UUID v4 and v7 generator with a UUID inspector.
Last updated November 21, 2026 · How we build and test our tools