CSV to JSON converter
Paste a CSV and get JSON, or paste JSON and get a CSV back. Quoted fields with commas and line breaks inside them are handled per RFC 4180, and the preview table shows exactly how each row was split. Free, no signup, and your spreadsheet never leaves the browser.
Using the comma separator.
3 records converted.
Parsed preview
| name | course | note | score |
| Ada Lovelace | Computer Science | Strong on loops, weaker on recursion | 88 |
| Rosalind Franklin | Chemistry | Lab report says: crystallography is the strength | 92 |
| Alan Turing | Mathematics | Wants the "hard" problem set | 95 |
Runs on your device. The parsing runs in this tab. A file you open is read with the browser file reader, so a spreadsheet of customer or student records is never uploaded.
What RFC 4180 actually requires
RFC 4180 is the closest thing CSV has to a specification, and the three rules that matter are all about quotes. A field may be wrapped in double quotes. A quoted field may contain the delimiter, a carriage return or a line feed. A quote inside a quoted field is written twice.
That is why splitting a CSV on commas is wrong so often. The sample loaded above contains a note with a comma in it, a note with a line break in the middle, and a note containing doubled quotes. A naive split produces four broken rows from those three records. The parser here walks the text one character at a time and tracks whether it is inside quotes, so all three survive the trip.
Converting JSON back to CSV
Going the other way is lossy in a different direction, because JSON has nesting and CSV does not. Two decisions are worth knowing about.
The header is the union of every key. If the first record has no middle name and the second one does, the column still appears and the first record gets an empty cell, rather than every later value shifting one column left.
Nested values are written as JSON text in the cell. An address object becomes readable JSON inside one column instead of being dropped or exploded into columns that would not survive a round trip.
Why numbers stay strings by default
Typed output looks tidier, right up until a ZIP code of 02138 becomes 2138, a student ID of 0004 becomes 4, and a phone number in scientific notation becomes unusable. CSV has no types, so any conversion is a guess about intent.
The safe default is to keep every value a string and let you opt in. Turn on number and boolean detection when the data is genuinely numeric, such as scores, prices or counts.
Frequently asked questions
- Does this handle commas inside quoted fields?
- Yes. The parser follows RFC 4180, so a field wrapped in double quotes can contain commas, line breaks and doubled quotes without breaking the row. The preview table shows exactly how each row was split.
- Can it convert JSON back to CSV?
- Yes, in both directions. Give it an array of objects and it builds the header from the union of all keys, so a record missing a field still lines up under the right column instead of shifting the row.
- What happens to nested objects and arrays in my JSON?
- A nested value is written into the cell as JSON text rather than being dropped or flattened into extra columns. CSV has no nesting, so this keeps the data readable and reversible.
- Why are my numbers coming out as strings?
- By default every CSV value stays a string, because typing them would strip the leading zeros from ZIP codes, student IDs and phone numbers. Turn on number and boolean detection if you want typed values instead.
- Does it support semicolon or tab separated files?
- Yes. The delimiter is detected from your file, counting only separators outside quoted fields, and you can override it if the guess is wrong.
- Is my data uploaded to a server?
- No. Parsing runs in your browser, so spreadsheets with customer or student data never leave your device.
Cleaning the data is one job. Learning it is another.
FORKSAI turns your notes, slides and PDFs into flashcards and study sessions, so the material you are wrangling actually sticks.
The tool above stays free and needs no account.
More free tools
There are study calculators too, on the free student tools hub.
Plan your next review session
Use the free student study kit to plan a week of revision, check flashcard quality, and record mistakes from practice questions.
Need a deck first? Turn a lecture PDF into editable flashcards, then follow the active recall guide to practise answering before revealing the back of each card.
Working toward an exam? Build a daily target with the exam study planner, protect the session with the Pomodoro study timer, or check your current result with the weighted GPA calculator.