Skip to content

JSON ↔ CSV Converter

JSON ↔ CSV Converter

JSON ↔ CSV Converter supports bidirectional conversion between CSV, TSV, and JSON, with delimiter detection, header mapping, and field cleanup for imports, exports, spreadsheets, and API payload prep.

Delimiter

JSON indent

Use header row

Trim fields

Skip empty lines

JSON Output

CSV Output

JSON ↔ CSV Converter

Quick Start

1
Paste or type CSV/TSV in the right-side editor; the left JSON pane updates automatically.
2
You can also edit JSON on the left, and the right CSV pane stays in sync.
3
Delimiter is set to "Auto" by default. The tool inspects the first row and detects comma, tab, semicolon, or vertical bar (|).
4
With "Use header row" enabled, the first CSV row becomes JSON object keys; when disabled, output is a 2D array.
5
Use "Trim fields" and "Skip empty lines" to clean up messy CSV data.
6
Download each side independently: download JSON as .json, and download CSV as .csv or .tsv based on the selected delimiter.

Common Scenarios

Excel to JSON

copy tab-separated cells from Excel into the CSV pane and convert to a JSON object array instantly.

API response to spreadsheet

convert JSON responses to CSV for analysis in Excel or Google Sheets.

Database import prep

convert CSV datasets to JSON for batch API imports.

Log analysis

convert CSV logs to JSON for structured querying with tools like jq.

Config migration

switch between CSV mapping tables and JSON config files.

Data cleanup

quickly clean exported data with field trimming and empty-line skipping.

Usage Advice

Data pasted from Excel is usually tab-delimited and is detected correctly. If detection is wrong, choose the delimiter manually.
When "Use header row" is on, the first row is treated as column names. Turn it off if your CSV has no header.
If duplicate header names exist, suffixes are added automatically (for example, name, name_2) to keep JSON keys unique.
JSON → CSV works best with flat object arrays. Nested objects/arrays are serialized as JSON strings in cells.
Fields containing delimiters, newlines, or double quotes are automatically quoted and escaped per CSV rules.

Limitations & Compatibility

CSV is a flat tabular format and cannot natively represent nested structures. Nested JSON objects/arrays are serialized as strings and cannot be fully restored on reverse conversion.
CSV stores values as text. After a JSON → CSV → JSON round trip, numbers and booleans may come back as strings.
UTF-8 BOM (\uFEFF) is removed automatically. Other encodings (for example, GBK or Shift-JIS) are not supported; convert to UTF-8 first.
Like JSON in JavaScript, this tool follows IEEE 754 limits. Integers beyond 53-bit safe range may lose precision.

Privacy & Security

All processing happens locally in your browser. You can replace, clear, and re-run the current content at any time.

FAQ

5

Continue with these related tools for the next step.