Convert CSV to JSON, and back
Convert CSV to JSON and JSON to CSV in your browser. Handles quoted fields, embedded commas and newlines, and detects the delimiter. Nothing is uploaded.
- Free, no account
- Nothing is uploaded
- Runs in your browser
How it works
- 1 What goes in A CSV, or JSON
- 2 It runs in your browser On your own device. Nothing is uploaded, there is no queue and no account, and it keeps working with the network switched off.
- 3 What comes back The other one
What it does
Paste a CSV and get an array of objects keyed by the header row, or paste an array and get a CSV back. The parser reads character by character rather than splitting on commas, so a quoted field containing a comma or a line break survives intact.
This page does the work itself. Your data is handled by the browser and never sent anywhere — there is no server here to send it to.
Questions
Why does splitting on commas not work?
Because a CSV field may be quoted, and a quoted field may contain commas, line breaks and escaped quotes. Splitting on commas turns a single address field into three columns and shifts every column after it — and it does so silently, which is the dangerous part.
Are numbers converted?
Values that are unambiguously numbers, booleans or null become those types. Anything that would change if it made the round trip stays a string — so a leading-zero product code like 007 and a phone number like +1 555 stay exactly as written, which is the spreadsheet bug this avoids.
What if my file uses semicolons or tabs?
Detection is on by default and votes on the first line, counting only separators outside quotes. You can also pick the delimiter yourself if the first row is unusual.
More data tools
-
Data
JSON formatter
Format, minify, sort and validate JSON in your browser.
-
Data
JSON → TypeScript
Paste JSON and get TypeScript interfaces back, with nested objects named, array element types unified and optional keys marked.
-
Data
Unit converter
Type once and see every unit at once — length, weight, temperature, volume, speed, area and data.
-
Data
Tip calculator
Work out the tip and what each person owes, with the awkward rounding done for you.
-
Data
JSON to CSV
Paste an array of objects and get a spreadsheet-ready CSV, with the quoting and the awkward characters handled.
-
Data
Open a ZIP
See what a ZIP holds before opening it — how many files, how large, which are encrypted or escape their folder — then save what you want.
-
Data
Make a ZIP
Put any files into one compressed ZIP that opens on every system, accented names and all — stored as is where compressing would not help.
-
Data
Excel to CSV
Every sheet of an .xlsx becomes a CSV — values as the cells show them, dates as real dates, comma, semicolon or tab.
-
Data
CSV to Excel
One CSV makes a workbook, several make one workbook with a sheet each.