Convert CSV and TSV to JSON
- Free
- No sign-up
- No upload
- Works offline
Tool facts
- Opens
CSVTSVTXT- Saves as
JSONJSONL- Price
- Free, no sign-up, no watermark
- Are files uploaded?
- No. Everything is processed in this browser, on your device.
- Batch processing
- One file at a time
- Offline use
- Works without a connection once this page has loaded
- Built with
- Papa Parse
- Browser
- A recent Chrome, Edge, Firefox or Safari, on computer or phone.
- Limits
- No fixed file size limit; very large files depend on your device's memory and may fail on phones.
Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.
About CSV to JSON
CSV to JSON converts comma-separated or tab-separated data into JSON as you type. It detects whether the file uses commas, semicolons, tabs or pipes, follows the RFC 4180 rules for quoted fields (so commas, line breaks and doubled quotes inside quotes are handled), and uses the first row as property names. The result can be an array of objects, an array of arrays, an object keyed by the first column, or JSON Lines.
With Detect types on, numbers become JSON numbers and true, false and null become real JSON values, while values such as 01000 keep their leading zero as text, so postal codes and IDs are not damaged. Headers like address.street can be turned into nested objects. The conversion runs in your browser with the Papa Parse library, so files with tens of thousands of rows convert quickly and never leave your computer.
CSV to JSON runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.
How to use CSV to JSON
- Paste CSV into the Input box, or drop a .csv or .tsv file onto the page.
- Leave Delimiter on Auto-detect or pick comma, semicolon, tab or pipe, and set whether the first row is a header.
- Choose the Output shape and options such as Detect types or Nest dotted headers.
- Click Copy or Download to get the JSON file.
Frequently asked questions
How are numbers and booleans handled?
With Detect types on, values that are plain decimal numbers (like 42, -3.5 or 1e6) become JSON numbers and true or false become booleans. Numbers with leading zeros, thousands separators or currency symbols stay strings, and integers too large to represent exactly are kept as strings. Turn Detect types off to keep every value as a string.
My CSV uses semicolons. Will it work?
Yes. Auto-detect checks commas, semicolons, tabs, pipes and other common delimiters and picks the one that splits the rows most consistently. Spreadsheets in many European locales save CSV with semicolons, and that is detected automatically. You can also choose the delimiter yourself.
What if a column name appears twice or is empty?
JSON objects cannot have two properties with the same name, so duplicates get a suffix (name, name_2) and empty headers become column_1, column_2 and so on, based on their position.
What is JSON Lines?
JSON Lines (.jsonl) puts one JSON object per line instead of one big array. It is the usual format for log files, BigQuery and other bulk imports, and for machine-learning datasets, because it can be read and written one record at a time.
How large a CSV file can I convert?
Files of several megabytes and around 100,000 rows convert in a second or two on a typical computer. The limit is your browser's memory, since both the CSV and the JSON are held in the page.