CSV to JSON and JSON to CSV
Convert CSV and JSON without uploading your data.
Spreadsheet apps may treat CSV values as formulas. Import untrusted CSV as text.
How it works, and what stays on your device
Choose a direction and delimiter, paste your input, then convert, copy or download the result.
CSV values stay as strings, including leading zeros and empty fields. Use a header row for JSON objects or no header row for arrays. Auto-detection looks for heading-like labels followed by different-looking data. Set the header option yourself when the result is ambiguous.
For JSON to CSV, use a nonempty array of flat objects with matching keys or arrays of the same width. Objects add a header row. Strings, numbers, booleans and null become CSV text. Number spelling is preserved, but CSV does not distinguish types.
Frequently asked questions
Can CSV fields contain quotes or line breaks?
Yes. Wrap such fields in double quotes and double any literal quote inside them. Pasting into the text field normalizes line endings to LF. The CSV copy and download use CRLF between records.
Which delimiters can I use?
Choose comma, semicolon, tab or pipe. Choose the delimiter used by your CSV input or the one you want in your CSV output.
Why was my CSV or JSON rejected?
Rows must have equal widths. CSV headers must be unique and nonempty. JSON objects must have matching keys without duplicates, and nested values cannot fit into flat CSV fields.
Is my data sent anywhere?
No. Conversion, clipboard text and file downloads are generated in your browser.