CSV to JSON Converter
Paste CSV with a header row, get a JSON array.
Convert CSV exported from a spreadsheet or database into a JSON array of objects. The first row is used as the property names, and each following row becomes one object, ready to use as a fixture, a seed file or an API request body.
Values are typed automatically: numeric cells become numbers and true or false become booleans, so you do not have to post-process strings.
How to use it
- Paste CSV with a header row, or drop a .csv file onto the editor.
- Check the Table view to confirm the columns were detected correctly.
- Copy or download the JSON from the right pane.
Questions
Does my CSV need a header row?
Yes. The first line supplies the keys for every object. Add a header line if your export does not include one.
Are quoted fields with commas handled?
Yes. Quoted fields, escaped quotes and line breaks inside quotes are parsed according to RFC 4180.
Which delimiters are supported?
The delimiter is detected automatically, so comma, semicolon and tab separated files all work.
All tools
- JSON Formatter
- JSON Validator
- JSON Minifier
- JSON Repair
- JSON Diff
- JSON Schema Validator
- JSON to YAML
- YAML to JSON
- JSON to CSV
- CSV to JSON
- JSON to XML
- XML to JSON
- YAML Formatter
- XML Formatter
- JSONL Validator
- JSON to TOON
- LLM Token Counter
- LLM Token Optimizer
- JSON to TypeScript
- JSON Schema Generator
- LLM Tool Schema Generator