CSV to JSON converter
Convert CSV to a JSON array of objects, or JSON back to CSV.
How it works
Converts CSV into a JSON array of objects using the first row as keys, and converts JSON arrays back into CSV.
The parser handles quoted fields properly, which is the part naive splitting gets wrong. A field wrapped in double quotes may contain commas, line breaks and escaped quotes (written as two double quotes), and splitting on commas destroys all three. Any CSV containing addresses or free text will hit this.
The delimiter is configurable, since semicolon-separated files are the norm in locales where the comma is the decimal separator.
This tool runs entirely in your browser. Nothing you enter is sent to a server, logged or stored, and the page keeps working with the network disconnected.
Common questions
- Does it handle commas inside quoted fields?
- Yes. Quoted fields may contain commas, newlines and escaped quotes, and are parsed correctly rather than split naively.
- My file uses semicolons — will it work?
- Yes, set the delimiter to semicolon. That format is standard wherever the comma is used as the decimal separator.
Related pages
- Image format converter and compressor Convert between JPEG, PNG and WebP, and compress with a quality slider.
- Number base converter Convert between binary, octal, decimal, hexadecimal and any base from 2 to 36.
- Unix timestamp converter Convert between Unix timestamps and human dates, in seconds or milliseconds.
- SVG to PNG converter Rasterise an SVG at any size, with transparency preserved.
- Cron expression parser Explain a cron expression in plain English and show the next run times.
- Mouse sensitivity and FOV converter Convert sensitivity between games so your aim carries across, and convert field of view.
- Screen resolution and display info Your screen resolution, viewport size, pixel ratio, colour depth and refresh rate.
- Percentage calculator Work out a percentage of a number, what percent one number is of another, and percentage change.
- Loan and EMI calculator Monthly payment, total interest and total repaid for any loan amount, rate and term.
- BMI calculator Body mass index from height and weight, in metric or imperial, with what the number does and does not mean.