CSV to JSON Converter Online
Convert CSV and TSV data to JSON instantly. Handle headers, quoted fields, special characters, and different delimiters. Free, private, and browser-based.
Your text never leaves your browser.
JSON output
Paste CSV or open a local .csv, .tsv or .txt file to convert it to JSON.
Conversion options
How to convert CSV to JSON online
Paste CSV into the input, open a local .csv, .tsv or .txt file, or load the sample. The JSON output updates as you type or change an option. Copy it or download it as a .json file. Use as input replaces the CSV with JSON; this tool does not convert JSON back to CSV. Spreadsheet exports, database dumps and test fixtures are typical sources.
CSV headers: JSON objects vs arrays
With First row contains headers on, every data row becomes an object keyed by the header names, in column order. Turn it off to get an array of arrays where the first row is data too. Blank headers become Column N and repeated names get _2, _3 suffixes, so no value is ever overwritten.
name,age Ana,30 Jonas,25
[{"name":"Ana","age":"30"},
{"name":"Jonas","age":"25"}][["name","age"], ["Ana","30"], ["Jonas","25"]]
Quoted commas, double quotes and multiline fields
A field wrapped in double quotes can contain the delimiter, line breaks and quotes. A literal quote is written as two quotes, "". Line breaks inside quotes are kept exactly and appear as \n, \r or \r\n in the JSON string. Unterminated quotes, stray quotes and rows with the wrong number of columns are reported with the record number instead of producing partial output.
name,note Ana,"Hello, ""world""!"
[{"name":"Ana","note":"Hello, \"world\"!"}]File encoding and conversion limits
Open UTF-8 .csv, .tsv or .txt files up to 1 MiB. Invalid UTF-8 is rejected. Conversion supports up to 1,000,000 UTF-16 code units of input, 50,000 data rows and 200 columns. Generated JSON is limited to 5,000,000 UTF-16 code units. Limits never truncate your data. Summary character counts use Unicode code points.
CSV vs TSV and delimiter options
CSV usually separates fields with commas, but European spreadsheet exports often use semicolons, TSV uses tabs and some systems use pipes. Auto-detect looks at the first ten rows outside quoted fields and picks the delimiter with a consistent column count. If the guess is wrong, choose the delimiter yourself. The summary always shows which one was used.
Why numbers stay strings by default
CSV has no data types, so guessing can corrupt data: 007 loses its zeros, long IDs like 9007199254740993 lose precision and 12.00 becomes 12. Every cell is a string unless you enable Convert numbers, booleans and null. Even then, only exact true, false, null and numbers that round-trip unchanged are converted.
id,qty,active,price 007,12,true,12.00
[{"id":"007","qty":12,"active":true,"price":"12.00"}]Related tools
Validate or reformat the result with the JSON Formatter & Validator. Tidy messy exports first with the Text Cleaner, Remove Duplicate Lines or Find & Replace Text, and use the Unicode Inspector to find hidden characters in headers.
Frequently asked questions
How do I convert CSV to JSON online?
Paste CSV into the input or open a local .csv, .tsv or .txt file. The JSON appears instantly using the current options. Copy it or download it as a .json file. Use as input replaces CSV with JSON; this tool does not convert JSON back to CSV.
What happens to the header row?
With First row contains headers enabled, each data row becomes a JSON object keyed by the header names. Turn it off to get an array of arrays where every row, including the first, is data. Blank headers become Column N and duplicates get _2, _3 suffixes, with a warning in the summary.
Does it handle commas and quotes inside values?
Yes. Fields wrapped in double quotes can contain the delimiter, line breaks and doubled quotes, so "Hello, ""world""" becomes Hello, "world". Unterminated quotes or stray quote characters are reported as errors instead of being guessed.
Why are numbers output as strings?
By default every cell stays a string so leading zeros, long IDs, phone numbers and formatting like 12.00 are never changed. Enable Convert numbers, booleans and null to turn exact true, false, null and canonical numbers into JSON values. Ambiguous values such as 007, 1e3 or 12.00 remain strings.
Can I convert TSV or semicolon-separated files?
Yes. Auto-detect checks the first rows for commas, tabs, semicolons and pipes outside quoted fields. You can also pick the delimiter manually. The delimiter used is shown in the summary.
What happens if rows have different numbers of columns?
The conversion stops and the error names the record with the wrong column count. Columns are never dropped or filled in silently, so the JSON always matches the source data exactly.
Are opened files uploaded anywhere?
No. Files are read and decoded as UTF-8 in your browser, up to 1 MiB. A leading UTF-8 byte order mark is removed and invalid UTF-8 is reported instead of being replaced.
Is my CSV data private?
Yes. Conversion runs entirely in your browser. Your CSV and the generated JSON are not sent to a server, saved in storage or added to the URL. Only copy and download actions you start leave the page.