CSV to JSON converter
Convert CSV to JSON, or JSON back to CSV, with a live table preview. Files are converted in your browser and never uploaded.
How to convert CSV to JSON
- Paste your CSV or click Upload file. The separator (comma, semicolon, tab or pipe) is detected automatically.
- Check the preview to make sure your columns look right.
- Copy or download the JSON.
How to convert JSON to CSV
- Switch to JSON → CSV and paste a JSON array of objects.
- Nested objects are flattened into columns like
contact.email. Untick the option to keep them as JSON instead. - Download the CSV. It opens cleanly in Excel and Google Sheets.
Built to handle real-world files
- Quoted fields with commas, quotes and line breaks inside them
- Comma, semicolon, tab and pipe separated files
- Numbers and true/false values converted to proper types (or kept as text, your choice)
- Missing columns, duplicate headings and rows of different lengths
- Excel-friendly CSV downloads that keep special characters intact
Frequently asked questions
Is the CSV to JSON converter free?
Yes. It’s free with no signup and no row limit beyond what your browser can handle.
Are my files uploaded?
No. Files are read and converted in your browser and never leave your device, so it’s safe for customer lists and exports.
Can I convert an Excel file?
Save or export the sheet as CSV from Excel or Google Sheets first (File, then Save As or Download, then CSV), then upload it here.
What happens to nested JSON when converting to CSV?
Nested objects are flattened into dotted column names like contact.email. Arrays are kept as JSON text inside the cell.
Why are my postcodes losing their leading zero?
Postcodes like 0800 are numbers that start with zero. Untick “Detect numbers and true/false” to keep every value as text.
Related Tools
AaWord counterWords, characters, reading time and keyword density.aACase converterUPPER, lower, Title, Sentence, camelCase and more.{}JSON formatterFormat, validate and minify JSON..*Regex testerTest JavaScript and RE2 (GA4) patterns live.FoFocus reading toolBolds the start of each word to make text easier to read.LhLine height calculatorFind the right CSS line height, preview it with real fonts and build a type scale.