Convert CSV to JSON and JSON to CSV
Sample output from the example data. Paste or upload your own to convert it.
CSV to JSON Converter
Switching between CSV and JSON formats is a common task for developers, data analysts, and anyone working with structured data. This free online converter handles both directions instantly: paste comma-separated values to get a JSON array of objects, or paste JSON data to produce a clean CSV table. Going from JSON to CSV, every key found in any object becomes a column, a nested object or array is written as JSON text in its cell, null becomes an empty cell, and a single object gives a one-row table. No software to install, no file uploads, and no data sent to a server.
What does the CSV to JSON converter do?
It converts CSV data to JSON and JSON data back to CSV. Choose CSV to JSON or JSON to CSV with the tabs above the boxes, then paste your data into the input box or upload a CSV, TSV, TXT or JSON file. A JSON file switches the tool to JSON to CSV. The converted result appears in the output box, where you can copy it or download it as a .json or .csv file. Switching tabs keeps your input and converts it the other way, and if the input cannot be read, the reason is shown above the result.
Comma, semicolon, tab and pipe separated data are all recognized. With Detect numbers and booleans on, values such as 42 and true become JSON numbers and booleans; turn it off to keep every value as a string. Codes with a leading zero, such as 02134, and integers too large to store exactly always stay strings.
What is the difference between CSV and JSON?
CSV (Comma-Separated Values) stores data in a flat, tabular format where each line represents a row and commas separate individual fields. It is compact and widely supported by spreadsheets and databases. JSON (JavaScript Object Notation) uses key-value pairs and supports nested structures, making it the standard format for web APIs and configuration files. Choose CSV when you need simple, flat data that opens easily in Excel or Google Sheets, and JSON when you need hierarchical data or are working with web services. Once you have your JSON output, you can clean it up with the JSON formatter.
Last reviewed: October 2026