Convert CSV to JSON and JSON to CSV. Commas and line breaks inside quotes are handled correctly, and everything is processed in your browser.
Input
Result
JSON result2 rows
If Korean text gets garbled in Excel, open the downloaded CSV with ‘Data → From Text/CSV’. The downloaded CSV includes a BOM so that Korean text isn't garbled.
Related searches
CSV ↔ JSON Converter
CSV ↔ JSON Converter free
CSV ↔ JSON Converter online
What is CSV ↔ JSON Converter?
Converts CSV exported from Excel or spreadsheets into JSON, or JSON received from an API into CSV. It's handy when creating sample data or moving data around during development. Data isn't sent to a server and is processed only inside your browser.
How to use
1
Choose the conversion direction (CSV→JSON or JSON→CSV) at the top.
2
Paste your data in the left box and set the delimiter and header options.
3
Copy the result on the right or download it as a file.
Tips
If the first row is a header, keep ‘First row is a header’ on. It becomes the key names in JSON.
If Korean text gets garbled in Excel, open the downloaded CSV with ‘Import data’.
Frequently asked questions
QWhat happens to values that contain commas?
Commas and line breaks inside a value wrapped in quotes (") are read as a single cell value. When converting JSON to CSV, values containing commas are wrapped in quotes automatically.
QMy numbers come out as strings.
If ‘Convert numbers, true and false automatically’ is on, numbers and true/false come out without quotes. Turn it off if you need to keep leading zeros, such as in postal codes.
QIs my data sent to a server?
No. All conversion happens in your browser, and the data you enter isn't sent or stored anywhere.
Learn more
1The rules of CSV
CSV is a table format that separates cells with commas and rows with line breaks. If a value contains a comma or line break, wrap it in double quotes, and write a double quote inside a value twice (""). For example, if a line is "Kim, Soo","He said ""hello""", the first cell is Kim, Soo and the second is He said "hello".
If you simply split on commas, such cells break, but this tool handles commas and line breaks inside quotes correctly.
2When the first line is used as labels
If the first line is treated as the column names (header), the CSV becomes a JSON array of objects. If there is Soo,30 under name,age, it looks like [{"name":"Soo","age":"30"}]. Conversely, turning a JSON array into CSV makes the objects' keys the first line.
Nested JSON, where objects contain other objects or arrays, gives different results depending on how it is flattened into a table. Check the converted result and, if needed, tidy it into a flat structure first.
3When Korean text is garbled in Excel, and leading zeros
If Korean text is garbled when you open a CSV file in Excel, the encoding does not match. In most cases it is solved by opening it through Excel's data import feature and specifying UTF-8 as the file format.
Excel treats a value starting with 0, such as 010, as a number and may remove the 0. For phone numbers and postal codes, set the column format to text when importing. Files are processed only inside your browser and not sent to a server.
4What does CSV look like when converted to JSON?
If you use the first row as headers, each remaining row becomes an object with the headers as keys, and the whole thing becomes an array of those objects.
For example, if the first row is name,age,city and the next row is Hong Gildong,28,Seoul, the result is one object with name Hong Gildong, age 28 and city Seoul. With 3 rows you get an array containing 3 objects.
name,age,city
JSON object
(used as key names)
Hong Gildong,28,Seoul
JSON object
name: Hong Gildong, age: 28, city: Seoul
Kim Min,31,Busan
JSON object
name: Kim Min, age: 31, city: Busan
CSV row
JSON object
name,age,city
(used as key names)
Hong Gildong,28,Seoul
name: Hong Gildong, age: 28, city: Seoul
Kim Min,31,Busan
name: Kim Min, age: 31, city: Busan
5What if the first row is not a header?
If the first row is not a header, turn that option off. Then every row becomes an array of values, and the whole thing becomes an array of arrays.
For example, a single row Hong Gildong,28,Seoul becomes an array containing the three values Hong Gildong, 28, Seoul. This suits coordinate or table-like data that does not need key names.
Conversely, when converting JSON to CSV, turning off the first-row header option drops the key name row and outputs only values.
6How are numbers and true converted?
With automatic value conversion on, only number shapes and true, false, null become unquoted values, and everything else stays a string.
Numbers with a leading zero or values with a hyphen are not converted to numbers, so postal codes and phone numbers stay safe. Very large integers stay as strings to avoid losing precision.
28
Auto-conversion result
Number 28
Reason
Integer shape
-3.5
Auto-conversion result
Number -3.5
Reason
Negative and decimal shape
007
Auto-conversion result
String 007
Reason
Leading zero preserved
010-1234-5678
Auto-conversion result
String
Reason
Not a number shape
true
Auto-conversion result
Boolean true
Reason
Reserved word conversion
null
Auto-conversion result
null
Reason
Reserved word conversion
1e5
Auto-conversion result
String
Reason
Exponential notation not converted
(empty cell)
Auto-conversion result
Empty string
Reason
Not null
CSV value
Auto-conversion result
Reason
28
Number 28
Integer shape
-3.5
Number -3.5
Negative and decimal shape
007
String 007
Leading zero preserved
010-1234-5678
String
Not a number shape
true
Boolean true
Reserved word conversion
null
null
Reserved word conversion
1e5
String
Exponential notation not converted
(empty cell)
Empty string
Not null
Numbers wrapped in quotes follow the same rule and become numbers. If you want every value to stay a string, turn off auto-conversion.
7Can I paste a table from Excel or Google Sheets directly?
Yes. Copying cells from a spreadsheet separates columns with tabs, so switch the delimiter to tab and paste.
For a CSV file saved with commas, open it in an editor such as Notepad, copy the contents, and have it read with commas. Excel with European settings sometimes saves with semicolons instead of commas, so you may need the semicolon option.
Comma (,): typical CSV files
Semicolon (;): CSV saved by Excel in some regional settings
Tab: tables copied and pasted from a spreadsheet, TSV files
If a value contains the delimiter, wrap it in quotes so it is read as one cell.
8What happens if rows have different numbers of columns?
When there are headers, the header column count is the standard, so short rows are filled with empty strings and extra columns are discarded.
For example, if there are 3 headers but a row has only 2 values, the last key's value becomes an empty string. If a row has 4 values, the fourth is not included in the result.
If the data feels empty, first check whether a comma inside a value without quotes shifted the columns.
9What happens if headers are duplicated or empty?
If two columns have the same header, the later column's value overwrites the earlier one, and an empty header becomes a numbered name like column1, column2.
This happens because a JSON object cannot have the same key twice. For tables with duplicate columns, fix the headers to be different before converting.
If the second column name is empty, it appears as the key column2. After converting, check the key names and fix the CSV headers first if needed.
10What shapes of JSON can be converted to CSV?
An array of objects is the most common, and a single object or an array of arrays also converts. JSON that is just a number or a string cannot become a table.
Array of objects
CSV result
Keys as the header row, one row per object
Single object
CSV result
Treated as a one-row table
Array of arrays
CSV result
One row per inner array
Array with only values
CSV result
Notice that it cannot become a table
Invalid JSON
CSV result
Syntax error notice
JSON shape
CSV result
Array of objects
Keys as the header row, one row per object
Single object
Treated as a one-row table
Array of arrays
One row per inner array
Array with only values
Notice that it cannot become a table
Invalid JSON
Syntax error notice
11What if objects have different keys or nested values?
All keys across objects are merged in first-seen order and used as columns, and missing values are left empty. Nested objects or arrays go into a single cell as their JSON string.
For example, if only one object has a phone key, a phone column is created and other rows are empty. If tags is an array, that cell holds JSON text with brackets, and since it contains commas it is wrapped in quotes.
If you need a clean flattened table, process the JSON into a flat structure first, then convert.
12How are commas, quotes and line breaks stored inside values?
Values containing commas, double quotes or line breaks are wrapped in double quotes, and double quotes inside the value are written twice. The standard CSV rules define it this way.
Kim, Min
How it is stored in CSV
"Kim, Min"
He said "hello"
How it is stored in CSV
"He said ""hello"""
First line (line break) second line
How it is stored in CSV
Wrapped in quotes to stay one cell
Plain text
How it is stored in CSV
As is, without quotes
Original value
How it is stored in CSV
Kim, Min
"Kim, Min"
He said "hello"
"He said ""hello"""
First line (line break) second line
Wrapped in quotes to stay one cell
Plain text
As is, without quotes
When reading CSV the same rules apply, so commas and line breaks inside quoted cells are not treated as delimiters.
13Can I download the result as a file?
Yes. Press download next to the result and JSON saves as data.json and CSV as data.csv.
The CSV file has a marker at the very front so Excel reads Korean correctly. If Korean still breaks, open it with Excel's Get Data feature and set the file encoding to UTF-8.
Result indentation can be 0, 2 or 4. 0 keeps it on one line to reduce size, and 2 or 4 is easier for people to read.
14Is it safe for large files or sensitive data?
All conversion happens in your browser and the data you enter is not sent to a server. Very large files may still be slow depending on the device.
Data with hundreds of thousands of rows can freeze the browser, so split the conversion or use a command-line tool. For files with a lot of personal data, keeping only the needed columns before converting is safer.
Before posting the converted result to a messenger or document, check once more that columns like names and contact details are not left in. A file shared once is hard to take back. Also compare the row count in the result with the original; if even one row is missing, a cell may have an unclosed quote.
If you convert the same data often, making one source file with unified column names and formats saves you from checking every time.
15To view JSON from an API in Excel
Convert JSON to CSV, download it, and open it in Excel or Google Sheets to see it as a table.
Step 1: Choose the JSON → CSV direction above.
Step 2: Paste the array part of the API response on the left. If the response is inside a key like data, extract only that array.
Step 3: Check that the result columns match expectations and download as CSV.
Step 4: If Korean breaks when opened in Excel, use Get Data and specify UTF-8.
If the whole response is wrapped in a single object, you get a one-row table. Paste only the array part that contains the list.
16Common syntax mistakes when JSON does not convert
JSON is much stricter than JavaScript objects, so many things that look fine to the eye cause parser errors.
Trailing comma after the last item
Valid JSON
No comma after the last item
Using single quotes
Valid JSON
Only double quotes allowed
Keys without quotes {name: 1}
Valid JSON
Keys must also be wrapped in double quotes
Comments // note
Valid JSON
JSON has no comments
undefined, NaN
Valid JSON
Must become null or a number
Mistake
Valid JSON
Trailing comma after the last item
No comma after the last item
Using single quotes
Only double quotes allowed
Keys without quotes {name: 1}
Keys must also be wrapped in double quotes
Comments // note
JSON has no comments
undefined, NaN
Must become null or a number
17Tips for making CSV files that are easy to reuse later
Defining the format up front reduces problems when moving to other tools.
Use lowercase English and underscores for column names in the first row, and keep them unique.
Put one record per row and do not mix in blank rows or total rows.
Unify dates in year-month-day order, such as 2026-10-29.
Save with UTF-8 encoding.
For values where a leading zero matters (postal codes, phone numbers), check the conversion option so they are read as strings.
18When do I use CSV, TSV and JSON?
Table-shaped data suits CSV or TSV, and structured data suits JSON. Choose by the nature of the data.
CSV
Delimiter
Comma
Good fit
(reserved)
Weakness
Hard to express nested structures
TSV
Delimiter
Tab
Good fit
Tables copied and pasted
Weakness
Breaks if a value contains a tab
JSON
Delimiter
Braces and brackets
Good fit
API responses, settings, nested data
Weakness
Inconvenient to view as a table
Format
Delimiter
Good fit
Weakness
CSV
Comma
(reserved)
Hard to express nested structures
TSV
Tab
Tables copied and pasted
Breaks if a value contains a tab
JSON
Braces and brackets
API responses, settings, nested data
Inconvenient to view as a table
19What happens to column and row order after conversion?
When converting CSV to JSON, the original column and row order is preserved.
When converting JSON to CSV, column order follows the order keys first appear. The key order of the first object is the standard, and keys that appear later are appended on the right.
To change column order, write the keys of the first JSON object in the order you want, or move columns in the spreadsheet after converting.