CSV to JSON Converter
Paste comma-delimited CSV with a header row to get a JSON array. Quoted commas, escaped quotes and multiline fields are preserved as strings.
πYour text stays on your device. This tool processes it in your browser.
How It Works
Paste comma-delimited CSV with a header row to get a JSON array. Quoted commas, escaped quotes and multiline fields are preserved as strings.
In JSON-to-CSV mode, paste an array of objects. Every key becomes a column, including keys that appear in later objects. Nested objects and arrays become JSON strings inside cells. Copy the result from the output field.
Features
- βCSV to JSON and JSON to CSV
- βQuoted and multiline CSV fields
- βAll object keys included as columns
- βNested JSON retained inside cells
- βClear errors for malformed CSV
- βLocal text conversion
How to Use This Tool
- Choose a conversion direction.
- Paste CSV with headers or a JSON array of objects.
- Convert, then copy the output.
Frequently Asked Questions
The first row supplies the object keys. Headers must be non-empty and unique, and every data row must have the same number of columns.
CSV values remain strings. For JSON input, numbers use JavaScript numeric precision; quote large integer IDs as strings to preserve their digits.
Each nested object or array is serialized as a JSON string in its cell. It is not flattened into dot-separated columns. Missing values and null become empty cells.
Commas. Semicolon- and tab-delimited data need conversion to comma-delimited CSV first.
No. Conversion runs in your browser.