CSV ↔ JSON converter. Both directions, on your device.
Files never leave your browser, nothing is uploaded.
Two-way conversion, no upload, no sign-up
Paste CSV or drop a file: it auto-detects the delimiter (comma, semicolon, tab or pipe), treats the first row as headers unless you toggle it off, and can infer types for numbers, booleans and nulls. Output as a JSON array or NDJSON, or flip the direction and turn a JSON array back into RFC 4180-compliant CSV, quoting, escaping and embedded newlines handled correctly. Everything happens locally on your device, so your files are never uploaded and it keeps working offline. Free forever, no limits.
How to use the CSV to JSON Converter
This converter turns CSV into a JSON array or NDJSON, and turns a JSON array back into CSV. It parses quoted fields the RFC 4180 way, so commas, quotes and line breaks inside a cell survive the trip. Use it for spreadsheet exports, API test data, database imports and quick data cleanups.
Step by step
-
Pick a direction
Use the two tabs at the top. CSV → JSON is selected when the page opens. Switch to JSON → CSV to go the other way. Only the options that apply to the chosen direction stay visible, and the text already in the input box is kept, so clear it or load new data after switching.
-
Add your data
Paste into the CSV input box, or press Load .csv to pick a file or drop one on that button. In the JSON → CSV direction the box becomes JSON input and the button reads Load .json. Files up to 15 MB are accepted. Press Load sample to try it with a ready made table first.
-
Check the delimiter
Leave Delimiter on Auto-detect and the tool counts commas, semicolons, tabs and pipes on the first non empty line and uses the most frequent one. If it guesses wrong, pick Comma, Semicolon, Tab or Pipe yourself. For JSON → CSV, Auto-detect writes commas.
-
Set the CSV to JSON options
First row is header (on by default) turns each row into an object keyed by the header names; turn it off to get an array of arrays. Infer types (on) turns 42 into a number, true and false into booleans and null into null. Pretty-print (on) indents the array by two spaces. NDJSON output writes one object per line instead of an array, and hides Pretty-print.
-
Read the output
The JSON output pane updates by itself a moment after you stop typing, and again whenever you change an option. You can also press Convert at any time. The status line above the panes reports what was converted.
-
Copy or download
Press Copy to put the result on your clipboard, or Download to save it as converted.json, data.ndjson or converted.csv, depending on the direction and format. Press Clear to empty the input and start again.
Reading the result
- The status line counts rows and columns and names the delimiter and format. With the sample loaded it reads 10 rows · 7 columns · delimiter "," · JSON array. Before any conversion it says No data yet.
- A warning about rows with a different column count than the header means some rows have missing or extra cells. Missing cells become empty strings and extra cells are dropped, so check the source file.
- If the output pane turns red and shows an error, the input could not be read. For JSON → CSV the input must be an array of objects or an array of arrays.
- In JSON → CSV, an array of objects gets a header row made of every key found across all objects, in the order first seen. An array of arrays gets no header row. Nested objects and arrays are written into the cell as JSON text, and lines end with CRLF.
Tips and common mistakes
- Turn off Infer types when a column holds phone numbers, ZIP codes or IDs that must stay text. Values with leading zeros such as 007 already stay strings either way.
- Files saved by European Excel often use semicolons. If every row lands in a single column, set Delimiter to Semicolon ; by hand.
- Use NDJSON output for tools that read one record per line, such as jq or bulk loaders. Use the JSON array when the consumer wants the whole list at once.
- Pressing Tab inside the input box adds two spaces instead of moving focus, and Shift+Tab does the same. Click outside the box to move on.
- An empty cell stays an empty string even with Infer types on. Only the exact text null becomes null.
Privacy and limits
Parsing and conversion run in your browser with plain JavaScript in this page. Nothing you paste or load is uploaded, and nothing is saved, so closing or reloading the tab clears it. Files larger than 15 MB are refused.
Everything a converter should do.
Frequently asked questions.
How does delimiter auto-detection work?
What is NDJSON output good for?
What does type inference do?
How are quoted strings handled?
Why does the conversion fail on my file?
Is the data I paste sent anywhere?
Published · Last updated .