- All dev tools
- CSV to JSON
Convert CSV to JSON
Turn CSV exported from Excel, Google Sheets or a database into JSON. The header row becomes the keys, and numbers and true/false become real values.
How to use the convert CSV to JSON
- Paste CSV, or open a .csv file.
- Choose whether the first row is a header and whether to convert numbers and booleans.
- Copy the JSON or download it.
Questions
Does it handle commas and line breaks inside fields?
Yes. Quoted fields can contain commas, quotes (written as "") and line breaks, as in the CSV standard (RFC 4180). The delimiter (comma, semicolon, tab or pipe) is detected from the first line.
Why is "00123" still text?
Converting it to a number would lose the leading zeros, which usually matter in IDs, ZIP codes and phone numbers. Only values that survive the round trip are turned into numbers.
Is my data sent anywhere?
No. Everything runs in your browser with JavaScript. What you paste is never sent to a server, and the site's security policy stops the page from connecting to any other website. That matters for tokens, keys and customer data, which people paste into tools like this every day.
Related tools
- JSON to CSVTurn JSON arrays into a spreadsheet.
- JSON formatterFormat, validate and minify JSON.
- Diff checkerCompare two texts line by line.
More developer tools
- JWT decoderRead a JWT and check its signature.
- Base64 encode and decodeText and files to and from Base64.
- URL encode and decodePercent-encode text for URLs.
- Hash generatorMD5, SHA-1, SHA-256, SHA-512.
- Regex testerTest regular expressions live.
- Case convertercamelCase, snake_case, Title Case…
- Lorem ipsum generatorPlaceholder text on demand.
- Cron expression explainerCron schedules in plain English.
- Unix timestamp converterEpoch time to dates and back.
- UUID generatorRandom v4 and time-ordered v7 UUIDs.