Skip to main content
ToolNara
Local browser utilityPopular

JSON to CSV Converter

Convert JSON to CSV or CSV to JSON instantly in your browser. Supports nested objects, custom delimiters, Excel TSV export, and drag-and-drop file upload. 100% free, no upload, no limits.

JSON Input0 chars
CSV Output0 chars
PapaParse In-Browser Engine
RFC 4180 CSV Standard

Local processing: ToolNara processing code keeps the working value in browser memory. It does not intentionally send the value to an application server.

No input telemetry

Engineering guide

JSON to CSV Conversion: Nested Objects, Flattening, and Escaping

Learn how JSON arrays become CSV rows, how nested objects are flattened, and where RFC 4180 escaping changes the result.

Read guide

How to use JSON to CSV Converter

Step 1

Paste or Upload Your File

Paste your JSON or CSV text into the input panel, or drag-and-drop a .json / .csv file directly.

Step 2

Choose Options

Select your delimiter (Comma, Tab for Excel, Semicolon, or Pipe), toggle the header row, and enable nested object flattening for complex API responses.

Step 3

Copy or Download

The converted output updates instantly. Click "Copy" to copy to clipboard, or "Download" to save the file directly to your device.

Capabilities and standards

100% In-Browser: your files never leave your device (100% private)
Dual-mode: JSON to CSV and CSV to JSON with 1-click swap
Automatic nested object flattening (e.g. user.address.city)
Custom delimiter: Comma, Semicolon, Tab (Excel TSV), or Pipe
Drag-and-drop file upload: .json, .csv, .tsv files up to 15MB
One-click Copy to Clipboard and direct .csv / .json file download
Advertisement
Advertisement placement reserved for editorial content

Developer reference

Programmatic implementation

Use these examples as implementation references. Check the runtime and test vectors before using them in production.

PythonConvert JSON to CSV with Python Pandas
import pandas as pd

# Load JSON file or string
df = pd.read_json('input.json')

# Export to CSV without index column
df.to_csv('output.csv', index=False)
print("Successfully converted JSON to CSV!")
Node.jsConvert JSON Array to CSV in Node.js
import fs from 'fs';

const rawData = JSON.parse(fs.readFileSync('input.json', 'utf8'));
if (rawData.length > 0) {
  const headers = Object.keys(rawData[0]).join(',');
  const rows = rawData.map(item =>
    Object.values(item).map(val => `"${String(val).replace(/"/g, '""')}"`).join(',')
  );
  const csv = [headers, ...rows].join('\n');
  fs.writeFileSync('output.csv', csv);
}
BashConvert JSON to CSV using jq CLI
# Using jq to export keys and values to CSV
jq -r '(.[0] | keys_unsorted) as $keys | $keys, map([.[ $keys[] ]])[] | @csv' input.json > output.csv

Frequently asked questions

Is my data safe? Does it get uploaded to a server?

ToolNara conversion code does not intentionally upload or transmit the working value. JSON-to-CSV and CSV-to-JSON processing run inside your browser using JavaScript. Third-party page resources may load according to the current consent choice.

Can this tool handle nested JSON objects?

Yes! Enable the "Flatten Nested" option and deeply nested objects like { "user": { "address": { "city": "Lahore" } } } will be automatically flattened to a single "user.address.city" column in the CSV output.

How do I convert JSON to Excel?

Select "Tab (TSV / Excel)" as the delimiter and click Download. Open the downloaded file in Microsoft Excel or Google Sheets: tab-separated values are natively recognized as spreadsheet columns.

What is the maximum file size supported?

Files up to 15 MB can be processed in the browser without an application-server upload. For very large datasets, processing may take longer and is handled by browser memory.

Does this work without an internet connection?

Once the page and required assets are loaded, conversion processing runs locally in the browser. Third-party page resources may still depend on the current consent choice.

Related utilities