Part of JSON Tools

File ConvertersConvert

Free JSON to CSV & CSV to JSON Converter

Convert JSON to CSV and CSV to JSON in one tool. Flatten nested objects, auto-detect delimiters, infer data types, and export files. 100% client-side.

Zero Server Upload (100% Private)100% Free & UnlimitedNo Signup Required
TA
Tanbir Ahamed
Published June 2026

Interactive Tool Workspace

JSON CSV
47 lines · 697 chars

How to Use

  1. 1Choose the conversion direction using the swap button: JSON to CSV or CSV to JSON.
  2. 2Paste your data or upload a .json/.csv file from your computer.
  3. 3Configure options such as delimiter, headers, nested flattening, and type inference.
  4. 4Click Convert to generate the output and review the data preview table.
  5. 5Copy the result or download it as a properly formatted .json or .csv file.

Features

  • ✓Bidirectional JSON to CSV and CSV to JSON conversion in one tool
  • ✓Auto-detect delimiter from CSV content or choose comma, semicolon, tab, pipe, custom
  • ✓Flatten nested JSON objects into dot-notation CSV columns
  • ✓Choose whether the first CSV row is a header or supply custom headers
  • ✓Infer booleans, numbers, null, and nested JSON from CSV cells
  • ✓Wrap single JSON objects into arrays automatically
  • ✓UTF-8 BOM option for correct Excel international character display
  • ✓LF or CRLF line endings for cross-platform compatibility
  • ✓Paginated data preview table before exporting
  • ✓Upload files directly and process them in the browser
  • ✓Download outputs with correct MIME types and extensions
  • ✓100% client-side conversion with no server upload
Comprehensive Guide & Reference

JSON and CSV: A Bidirectional Converter Built for Data Engineers

Most converters handle only one direction. This tool converts JSON to CSV and CSV to JSON in the same interface, with advanced options for delimiters, nested objects, data types, headers and Excel compatibility.

1. Why Bidirectional Conversion Matters

Data pipelines rarely move one way. You export a JSON array from an API, hand it to a data analyst as CSV, receive edits back, then re-import it as JSON. A single tool that handles both directions keeps your workflow inside one tab.

2. Nested JSON to Flat CSV

JSON supports trees; CSV is flat. Flattening converts nested objects into dot-notation columns. Arrays become either JSON strings or comma-separated lists, preserving every value without inventing new rows.

3. Delimiters and Regional CSV

Comma-separated files break in locales that use commas as decimal separators. Switch to semicolon or tab delimiters, or define your own. Auto-detection reads the first lines to guess which character separates your columns.

4. Header Handling and Type Inference

Toggle whether the first row contains headers, supply custom keys, or let the tool generate column names. Type inference turns numeric and boolean strings back into native JSON values, which is critical for APIs that reject quoted numbers.

5. Privacy and Performance

The converter runs entirely in your browser. Files loaded through the upload button are read with FileReader, not sent to a server. You can safely process customer lists, API responses, and configuration files offline.

Round-Trip Your Data, Both Directions

Done right, the whole operation takes seconds, runs entirely in your browser, and never uploads a byte of your input. For jSON and CSV: A Bidirectional Converter Built for Data Engineers — or anywhere a precise, in-browser result beats a heavier install — this tool is the right one.

Real example

Worked example: a JSON array to CSV

Input
JSON: [ { "name": "Ada", "role": "admin" }, { "name": "Lin", "role": "editor" } ]
Output
→CSV: header "name,role", then rows "Ada,admin" and "Lin,editor" — the object keys become the header row.

Works cleanly for flat objects; nested objects get flattened into dotted column names like "user.email".

Worked example: CSV back to JSON

Input
CSV: header "sku,city" plus rows "A1,Berlin" and "B2,Oslo"
Output
→[ { "sku": "A1", "city": "Berlin" }, { "sku": "B2", "city": "Oslo" } ]

Every CSV cell becomes a string — a column of 1, 2, 3 stays "1", "2", "3" unless type inference is switched on.

Privacy & data handling

This tool runs entirely in your browser. What you enter is processed on your own device using JavaScript and WebAssembly — it is not uploaded to our servers, and there is no account, no signup and no per-use limit. Read our privacy policy.

Frequently Asked Questions

Does this tool work in both directions?
Yes. Use the swap button to switch between JSON to CSV and CSV to JSON. The same options adapt to the selected direction, so you can round-trip your data without leaving the page.
How are nested JSON objects converted to CSV?
Enable the Flatten nested objects option to turn nested keys into dot-notation columns such as department.name and department.floor. Arrays can be exported either as JSON strings or joined with commas.
Can I use a custom CSV delimiter?
Yes. Choose comma, semicolon, tab, pipe, or enter a custom delimiter. In CSV-to-JSON mode you can also let the tool auto-detect the delimiter from the first few lines.
What happens if my CSV has no header row?
Uncheck First row is header and optionally provide custom column names. If you leave the custom headers empty, the tool generates column1, column2, and so on.
Does CSV to JSON infer numbers and booleans?
By default the tool infers true, false, null, integers, floats, and JSON objects or arrays inside cells. Toggle Infer data types off to keep every value as a string.
How do I open the CSV in Excel correctly?
For European locales, select semicolon delimiter and optionally include a UTF-8 BOM so Excel treats special characters correctly. You can also switch line endings to CRLF for Windows compatibility.
How does the converter handle commas, quotes, and line breaks inside cell values?
Output strictly follows RFC 4180 quoting rules: any field containing the active delimiter, newlines, or double quotation marks is wrapped in quotes with inner quote characters doubled so spreadsheet importers keep columns aligned cleanly.
What happens if JSON objects across rows have different optional keys?
The serializer scans all records first to gather a unified superset header list, filling missing fields on sparse rows cleanly with empty spreadsheet cells instead of shifting column offsets.
Can I preview large JSON tables before exporting the CSV download?
Yes. Inspection happens entirely in local browser memory with instant text output and copy or single-click CSV download controls—zero row caps imposed by server timeouts or upload queues.

Related Tools

Topical Collection

Explore all tools in JSON Tools

View collection

Related Guides