CSV ↔ JSON

Convert between CSV and JSON with type detection

Use the interactive tool with JavaScript enabled.

How to use it

  1. Choose CSV to JSON or JSON to CSV, then paste your data.
  2. Select the delimiter and whether the first row contains column names. Keep type conversion off to preserve text values.
  3. Review the output. Duplicate headers, malformed quotes, and mismatched column counts are reported instead of silently dropping values.

Example

Input

id,name
001,Ada
002,Grace

Output

[
  {"id":"001","name":"Ada"},
  {"id":"002","name":"Grace"}
]

Behavior and limits

CSV to JSON preserves text by default, including leading zeros. Optional type conversion keeps unsafe integers as strings. When converting JSON objects to CSV, nested objects and arrays become JSON text within their cells. Spreadsheet applications may interpret cell values as formulas; review files before opening them there.

About this tool

Convert spreadsheet exports and API data between CSV rows and JSON arrays. Text is preserved by default. Choose commas, tabs, pipes, or semicolons, with optional number and boolean conversion.

Related tools

  • JSON Formatter — Format, validate, minify and sort JSON with tree view
  • JSON → CSV — Flatten JSON arrays into CSV with configurable delimiters and headers
  • CSV Tools — Validate, reformat, and compare CSV files — delimiter, qualifier, sort, diff
  • JSON Lines Converter — Convert JSON arrays to JSON Lines (JSONL/NDJSON) and back with line-specific errors

Sources and specifications

Tool processing runs in your browser. Privacy policy and cookie preferences.

Read this guide as Markdown