JSON to CSV & CSV to JSON Converter
Flatten nested JSON objects into Excel-ready UTF-8 CSV (or parse CSV back to JSON) — 100% locally in your browser.
| id | customer.name | customer.email | customer.country | items | total_usd | paid |
|---|---|---|---|---|---|---|
| ord_1042 | Linh Nguyễn | [email protected] | VN | Pro Plan; Add-on | 49.5 | true |
| ord_1043 | Lukas Weber | [email protected] | DE | Starter Plan | 19 | true |
Convert nested JSON arrays into clean, Excel-ready UTF-8 CSV (or parse CSV back to typed JSON) with zero server uploads.
Exporting data from an API, Stripe webhook log, Firebase collection, or Postgres JSONB column into a spreadsheet sounds trivial — until nested objects turn into useless [object Object] cells and accented names turn into é mojibake in Microsoft Excel.
Pickrack's JSON ↔ CSV Converter handles both real-world headaches out of the box: it recursively flattens nested objects into clean dot-notation columns (customer.email, customer.country), properly quotes embedded commas and multi-line strings per RFC 4180, and prepends an optional UTF-8 BOM (`0xEF 0xBB 0xBF`) on download so Excel on Windows and macOS displays international characters cleanly.
Best of all, your JSON payload never leaves your browser tab — making it safe for production customer exports, financial logs, and internal analytics.
Key features
- Recursive nested-object flattening — Automatically expands nested objects into
parent.childcolumns instead of dumping[object Object], and joins primitive arrays cleanly. - Excel UTF-8 BOM support — Includes the 3-byte UTF-8 Byte Order Mark on CSV download so Excel opens Vietnamese, European, and CJK characters without garbled encoding.
- Bidirectional RFC 4180 parser — Switch to CSV → JSON mode to parse quoted fields, escaped double-quotes, multi-line cells, and auto-cast booleans and numbers.
- Custom delimiters & live table preview — Export comma CSV, European semicolon CSV (
;), or Tab-separated.tsvwhile inspecting the first 12 rows in an instant table preview.
How to use
- Paste your JSON array or CSV text — Paste an array of JSON objects (or an API response wrapping an array) into the left editor, or click Load nested sample to test.
- Choose delimiter and flattening options — Keep Comma
,for standard CSV (or;for European Excel locales), and keep Excel UTF-8 BOM enabled if opening in Microsoft Excel. - Inspect the live table preview — Verify column headers and flattened nested fields in the preview grid below the editors.
- Copy or download .csv / .tsv / .json — Copy to clipboard for Google Sheets / Notion or download the UTF-8
.csvfile directly.
When to use
- Converting Stripe, Shopify, or REST API JSON responses into Excel spreadsheets without uploading PII
- Flattening MongoDB or Firebase document exports for quick pivot-table analysis
- Converting CSV spreadsheet fixtures into typed JSON arrays for unit tests and seed scripts
- Exporting Tab-separated (
.tsv) data for direct paste into Google Sheets or SQL import tools
Frequently asked questions
Why does Excel show garbled characters on normal UTF-8 CSV files?
Microsoft Excel historically assumes legacy ANSI/Windows-1252 encoding when opening a .csv file by double-clicking unless the file begins with a 3-byte UTF-8 Byte Order Mark (EF BB BF). Keeping 'Excel UTF-8 BOM' checked adds those 3 bytes on download so Excel switches to UTF-8 automatically.
What if my JSON is an object like `{ "data": [...] }` instead of a root array?
The converter automatically detects the first top-level array property (such as data, items, or results) and converts its records, or treats a single flat object as a 1-row table.
Why use Semicolon (`;`) instead of Comma (`,`)?
In German, French, Spanish, and Vietnamese Windows regional settings where comma is the decimal separator (19,50), Excel expects semicolon (;) as the CSV column separator.
Is any of my pasted JSON logged or sent to an API?
Never. Parsing and CSV serialization run synchronously in your browser's JavaScript engine with zero network calls.
Related tools
JSON Formatter
Format, validate, and minify JSON. Detects errors with line numbers. Browser-side, your data never leaves your device.
YAML ↔ JSON Converter
Convert YAML to JSON or JSON to YAML with adjustable indent. Inline error reporting.
SQL Formatter
Pretty-print SQL across 11 dialects — MySQL, PostgreSQL, SQLite, BigQuery, Snowflake, more.
Text Diff Checker
Compare two text blocks line-by-line with LCS algorithm. Color-coded additions/removals, ignore whitespace or case.