CSV to JSON
Convert CSV with headers into a JSON array.
Free
Runs in your browser
About this tool
CSV to JSON reads comma, semicolon, tab or pipe separated data and turns each row into a JSON object using the header row as keys. Quoted fields with commas or line breaks are handled correctly.
How to use CSV to JSON
- Paste your CSV.
- Check the delimiter and header options.
- Copy the JSON or download it.
Questions people ask
How is the delimiter detected?
The tool tries comma, semicolon, tab and pipe on the first rows and picks the one that gives the same number of columns on every row.
Are numbers converted?
With “Convert numbers” on, values like 42 or 3.5 become JSON numbers and true/false become booleans. Values with leading zeros, like 007, stay strings.
Can fields contain line breaks?
Yes, if the field is wrapped in double quotes, as spreadsheets do when they export.
Guides for CSV to JSON
More developer tools
See all 24 →
HTML Entity Encoder / DecoderEscape or unescape HTML entities like &.
User Agent ParserSee your browser, OS and device from a user agent.
Screen Resolution CheckerCheck your screen size, viewport and pixel ratio.
HTTP Status CodesSearchable list of HTTP status codes and meanings.
JSON FormatterBeautify, minify and validate JSON with error lines.
Base64 Encode / DecodeEncode text to Base64 or decode it back, with UTF-8.