CSV to JSON and JSON to CSV Converter
Convert between CSV and JSON in either direction. Quoted fields, embedded commas and line breaks are handled correctly.
Loading tool…
How to use the CSV to JSON Converter
- Choose CSV to JSON or JSON to CSV.
- Paste data or upload a file; leave the delimiter on auto-detect or choose one.
- Set header, number detection, trimming, flattening or JSON Lines options.
- Check the table preview, then copy or download the result.
About this tool
CSV stores a table as plain text, one row per line. A field can be wrapped in double quotes to contain commas or line breaks, and a quote inside a quoted field is written as two quotes. This converter follows those rules (RFC 4180), so values like "Sharma, Amit" stay in one column. The delimiter can be auto-detected (comma, semicolon, tab or pipe).
CSV to JSON gives an array of objects when the first row is a header, or an array of arrays when it is not, or one object per line (JSON Lines) if you choose that. Number and boolean detection turns 5000 into a number and true into a boolean; values with leading zeros and numbers with more than 15 digits stay text so PIN codes and account numbers are never damaged. Trim removes spaces around values.
JSON to CSV accepts an array of objects or arrays, or JSON Lines. Columns are all keys found in any object. Nested objects and arrays can be flattened into dot-named columns (address.city, tags.0), or written as JSON text if you turn flattening off. A table preview shows the first 50 rows. Files up to 10 MB can be uploaded or dropped; everything stays in your browser.
Frequently asked questions
Does it handle commas inside values?
Yes. Fields in double quotes can contain commas, line breaks and quotes.
What delimiters are supported?
Comma, semicolon, tab and pipe, with auto-detection.
Why did my PIN code lose its leading zero?
Number detection would convert it, but values with leading zeros are kept as text. Turn off Detect numbers and booleans to keep everything as text.
How are nested objects handled?
With Flatten on, address.city style columns are created. With it off, nested values are written as JSON text.
Can I open the CSV in Excel?
Yes. Download it and open it in Excel or Google Sheets. Choose semicolon if your region expects it.
Need a custom tool or website?
IDM Valley builds web apps, calculators, AI chatbots and automation for businesses. Fixed prices, code in your name.









