🚧 We’re making Tools Pasal better. Found a broken tool or have an idea? Tell us β†’
Tools Pasal

CSV ↔ JSON Converter

Convert CSV to JSON and JSON to CSV both ways β€” quote-safe, with header detection and delimiter options. Free, instant, in your browser.

JSON output

Handles quoted fields, commas and line breaks inside quotes. Values stay as text (so leading-zero IDs and phone numbers aren’t mangled). Runs in your browser; nothing is uploaded.

How to use it

Choose a direction, paste your data, and copy or download the result. For CSV β†’ JSON, keep β€œFirst row is header” on to get keyed objects. Pick a delimiter (comma, tab or semicolon) to match your file.

Common uses

  • Turn a spreadsheet export (CSV) into JSON for an app or API.
  • Flatten API/JSON data into a CSV you can open in Excel or Google Sheets.
  • Clean up and re-shape tabular data quickly.

More developer tools: JSON Formatter, Base64, Case Converter.

Frequently asked questions

How do I convert CSV to JSON?

Paste your CSV, keep 'First row is header' ticked, and the JSON appears instantly as an array of objects keyed by your column names. Untick the header option to get an array of arrays instead. Copy or download the result.

How do I convert JSON to CSV?

Switch to 'JSON β†’ CSV' and paste an array of objects (or a single object). The columns are the union of all keys, in first-seen order, and missing values are left blank. You can also paste an array of arrays.

Does it handle commas and quotes inside fields?

Yes. The parser follows the CSV standard β€” commas, line breaks and double-quotes inside quoted fields are handled correctly, and double-quotes are escaped as "".

Why are numbers kept as text?

To avoid corrupting values like leading-zero IDs, phone numbers and codes, fields are kept as strings. You can convert types afterwards in your code if needed.

Is my data uploaded?

No. The conversion runs entirely in your browser; your data never leaves your device.