Two formats, two jobs
CSV is flat and simple. Rows and columns, easy to open in a spreadsheet. JSON is nested and structured, and it's what most web APIs speak. Moving data between them is a daily chore for developers and analysts.
This converter goes both ways. Paste CSV and get JSON. Paste JSON and get CSV. It runs in your browser, so the data never leaves your device.
How the CSV side works
The first row is treated as headers, and each later row becomes an object with those headers as keys. The tool detects the delimiter on its own, so comma, semicolon and tab files all load without setup. If it guesses wrong, you can set it yourself.
Type inference turns numbers into real numbers and true or false into booleans, instead of leaving every value as text. That saves you a cleanup step. If you'd rather keep everything as strings, for ZIP codes with leading zeros say, switch inference off.
A 10-row preview shows the output before you copy or download it, so you can catch a bad header or a broken quote early.
How the JSON side works
Give it an array of objects and it builds a header row from the keys, then one line per object. Flat data converts cleanly. Deeply nested data doesn't fit a table, so flatten it first or expect the nested parts to come through as text.
NDJSON, in plain words
NDJSON puts one JSON object per line instead of wrapping everything in one big array. It's popular for logs and for loading large datasets, because a program can read it line by line without parsing the whole file at once. Pick it when the system receiving your data asks for it.
Common gotchas
Fields with commas inside them need quotes. A good CSV already has them, but hand-edited files often don't.
Encoding matters. UTF-8 is the safe choice. If accented letters turn into odd symbols, the source file probably used another encoding.
Column order in the JSON output follows the CSV header order.