Tools

Data tool

CSV to JSON converter

Paste CSV or choose one local CSV file to turn rows into JSON objects or arrays. Parsing happens locally in the browser, including quoted fields and escaped quotes.

Input

CSV source

Output

JSON result

Header rows

Keep the header option on when the first row contains column names. Headers are trimmed, lowercased, and changed to safe keys: `Customer Name` becomes `customer_name`, a blank header becomes `column_2`, and a repeated key receives a suffix such as `_2`. Check the normalized keys before using the JSON in an API or import job.

Array mode

Turn the header option off when the file has no header row or when column position matters more than names. A row such as `Ada,admin,true` becomes an array of three strings in the same order. Quoted commas, escaped double quotes, and line breaks inside quoted fields stay inside their field instead of creating extra columns or rows.

Limitations

CSV has no universal schema, so every cell remains a string: `42`, `true`, and `2026-07-16` are not guessed as a number, boolean, or date. Auto-detection compares comma, semicolon, and tab counts; choose the delimiter manually when free text contains many of those characters. Nested objects and spreadsheet formulas are not evaluated.

Privacy

CSV is parsed locally by JavaScript in this page, whether you paste text or choose one file. The tool does not upload the file, store its rows, or send its contents to a server. After conversion, review sensitive columns before copying the JSON into another service, because that destination has its own data-handling rules.