
CSV to JSON
Convert a CSV table to JSON, or a JSON table to CSV, keeping commas that sit inside quotes.
Nested JSON becomes a JSON string in the cell, with a warning. The parser handles doubled quotes.
- 1Paste CSV or JSON.
- 2Convert in the direction you need.
- 3Copy the result.
About this tool
Move a table between CSV and JSON without splitting on commas that sit inside quotes. Paste the table and press the direction you need.
- Nested JSON that isn't a list of rows won't become a clean CSV
- Commas inside quotes stay in the cell
- Use it when a tool wants JSON rows or a spreadsheet wants CSV
Questions
- Does a,b,"c, d" work?
- Yes. Quoted commas stay in one field.
- Are numbers kept as numbers in JSON?
- Cells that look like plain numbers become numbers.
- What about nested JSON?
- A nested object or array becomes a JSON string in the CSV cell, and the page warns you.
Ratings
No ratings yet. The average shows after 3 ratings.
Ratings come from people using this tool. Nobody is paid or rewarded for them, and written reviews are checked for spam before they appear, not for whether they are positive.
Related tools
JSON formatterPretty-print JSON with a two-space indent, and show the parse error when the text is invalid.
Base64Encode text or a file up to 8 MB into Base64, or decode Base64 text back into text.
URL encode and decodeEncode text as a URL query value, or decode percent-escapes back into text.
JWT decoderRead the header, payload, and expiration time of a JSON Web Token.
UUID v4 GeneratorGenerate one version-4 UUID from the browser's random source.
Regex testerTest a JavaScript regular expression against sample text and list the matches.
Cron explainerExplain a five-field cron expression and list the next five run times on this device.
Unix timestampTurn a Unix timestamp into the local date and time.