CSV to JSON Converter

Convert CSV to JSON, or switch modes to convert JSON to CSV.

Converted JSON will appear here...

One Tool, Both Directions

CSV files are the most common way to export data from spreadsheets and databases, while JSON is what most APIs and scripts expect. Instead of using two separate converters, this single tool switches between CSV → JSON and JSON → CSV with one click, so you never have to hunt for the right page.

Everything runs locally in your browser. Your data is never uploaded anywhere, which matters when the file contains customer records, financial data, or anything else you'd rather not send to a server.

Built for Real-World, Messy Data

CSV to JSON correctly parses quoted fields that contain commas, quotes, or line breaks — a common issue with addresses or notes — and can auto-detect the delimiter your file actually uses. JSON to CSV automatically quotes and escapes any value that needs it, and can flatten nested objects into readable dot-notation columns instead of dumping raw JSON into a cell.

Frequently Asked Questions

Stay on the CSV → JSON tab, paste your CSV data or upload a .csv file, choose the delimiter (or leave it on Auto-detect), and click Convert to JSON. The first row is treated as column headers by default.

Switch to the JSON → CSV tab, paste a JSON array of objects or upload a .json file, and click Convert to CSV. You'll get a properly quoted CSV file ready to open in Excel or Google Sheets.

When converting CSV to JSON, Auto-detect looks at the first line of your file and figures out whether it's comma, semicolon, tab, or pipe separated, so you don't have to know the exact format in advance.

Instead of a plain JSON array, this produces an object where each row is keyed by the value in a column you choose — for example keyed by 'id' — which is convenient for quick lookups in code without looping through an array.

A nested object like { "address": { "city": "Delhi" } } normally has no direct CSV representation. Enabling Flatten turns it into a column named address.city instead of stuffing the whole object as JSON text into one cell.

Yes. Fields wrapped in double quotes can safely contain commas, line breaks, or escaped quotes, and the parser follows standard CSV formatting rules to keep them intact.

No. Both directions run entirely in your browser using JavaScript. Your CSV and JSON data never leave your device.