JSON to CSV Converter — made simple
Paste your JSON, get a clean CSV file ready for Excel, Google Sheets, or any spreadsheet app. Handles nested data, custom delimiters, and large files — all in your browser.
What is a JSON to CSV converter?
A JSON to CSV converter transforms data from JSON (JavaScript Object Notation) into CSV (Comma-Separated Values). JSON is the format used by virtually every modern web API, mobile app, and JavaScript application. It is hierarchical, supports nested objects and arrays, and is optimised for machines to read and write. CSV is the format used by Microsoft Excel, Google Sheets, Apple Numbers, and every BI tool. It is flat, tabular, and optimised for humans to read and analyse.
Most real-world data is born JSON. Most real-world analysis happens in spreadsheets. A JSON to CSV converter is the bridge between the two. It takes an API response, a config export, a log dump, or a database snapshot and turns it into a rows-and-columns file that you can open, filter, pivot, and chart in seconds.
HopConvert handles the messy parts automatically: it detects whether your input is a top-level array of objects (the most common API shape), a single object, or a JSON Lines file. It flattens nested objects using a separator (so address.city becomes address__city in the column header). It detects arrays of primitive values and joins them with a delimiter (so ["SQL", "Python"] becomes SQL | Python). It escapes commas, quotes, and newlines so your CSV opens cleanly in Excel without mangled rows. And it does all of this in your browser — your file never leaves your machine.
For a deeper technical explanation of the JSON to CSV conversion, see the JSON to CSV guide. For the inverse direction, try the CSV to JSON converter.
How to convert JSON to CSV in 4 steps
Most conversions take less than a minute. No login, no upload to a server, no installation.
-
Paste or upload
Drop a
.jsonfile into the upload zone, paste JSON text into the box, or paste a URL that returns JSON. The converter auto-detects the structure as you type. -
Choose options
Open the settings cog to pick a delimiter (comma, tab, semicolon, pipe), the nested-data strategy, and whether to convert epoch timestamps to ISO dates.
-
Preview
The live preview table updates instantly. Verify the column layout, edit the output filename, and reset if anything looks off — nothing is committed until you click Download.
-
Download
Click Download CSV to save the file. Open it directly in Microsoft Excel, Google Sheets, Numbers, or any spreadsheet app. Most spreadsheets auto-detect the delimiter.
Built for the messy JSON you actually have
Real-world API responses are nested, inconsistent, and full of edge cases. HopConvert handles them so you don't have to.
Nested JSON support
Four nested-data strategies: header/detail, flattened with separator, concatenated, or matrix. Pick the one that matches your data.
Custom delimiters
Comma, tab, semicolon, or pipe. Tab is ideal for pasting straight into Excel. Semicolon is the default in many European locales.
Epoch timestamp conversion
Toggle one checkbox and any Unix timestamp values are automatically rendered as ISO-8601 dates (yyyy-mm-dd).
Browser-only privacy
Every byte is processed in your browser using JavaScript. Nothing is uploaded, logged, or stored on our servers — your data stays on your machine.
Live preview
The result table updates as you type. See the column layout, header names, and row count before downloading — no surprises.
Smart column ordering
Keep the original key order from your JSON, or let HopConvert reorder columns to group related fields together for easier reading.
JSON vs CSV: what's the difference?
Both formats store data, but they're designed for very different jobs.
| Aspect | JSON | CSV |
|---|---|---|
| Structure | Hierarchical (nested objects, arrays) | Flat tabular (rows and columns) |
| Best for | APIs, web apps, configuration, machine-to-machine | Spreadsheets, BI tools, human analysis, databases |
| File size | Larger (more syntax overhead) | Smaller (compact plain text) |
| Human readability | Moderate (requires understanding of syntax) | High (opens directly in Excel) |
| Schema enforcement | Implicit (keys in each object) | Implicit (header row) |
| Nested data | Native support | Requires flattening |
| Data types | String, number, boolean, null, object, array | All cells are text (types inferred by application) |
When teams reach for JSON to CSV
From quick ad-hoc analysis to production data pipelines — JSON to CSV is one of the most-used transforms in data work.
API response analysis
Pull a REST API response, paste it in, and get a spreadsheet you can sort, filter, and share with non-engineers.
App data export
Convert a database export or an application JSON dump into CSV for Excel reporting, audit, or backup.
Log file analysis
Modern logging frameworks emit JSON-per-line. Flatten logs to CSV to spot trends in Excel or feed them to a BI tool.
Spreadsheet dashboards
Connect a live API to Google Sheets via Apps Script. The script fetches JSON, converts to CSV-compatible rows, and refreshes on a schedule.
Database ingestion
Most databases and warehouses accept CSV natively. Convert a JSON payload to CSV to bulk-load into Postgres, MySQL, BigQuery, or Snowflake.
Migration projects
Migrating from one system to another? Convert legacy JSON exports to CSV to feed a one-time import into the new platform.
JSON to CSV: the complete guide
Everything you need to know about JSON, CSV, and the conversions between them — from the basics to advanced edge cases.
What is JSON?
JSON (JavaScript Object Notation) is a lightweight text-based format for structured data, derived from JavaScript object syntax. It was popularised by Douglas Crockford in the early 2000s and standardised as RFC 8259 in 2017. Today it is the lingua franca of web APIs, mobile apps, configuration files, and inter-service communication.
A JSON document is built from two structures: a collection of name/value pairs (an object, written with curly braces) and an ordered list of values (an array, written with square brackets). Every value is one of: string, number, boolean, null, object, or array. This minimalism is what makes JSON easy to parse in every programming language and human-readable enough to inspect with the naked eye.
Example JSON object:
{
"id": 42,
"name": "Alice Chen",
"email": "[email protected]",
"skills": ["SQL", "Python", "Go"],
"address": { "city": "New York", "country": "US" },
"active": true,
"joined": 1672531200
}
The hierarchical nature of JSON — objects inside objects, arrays of objects, arrays of primitives — is what makes it powerful for representing real-world data, but it is also the main challenge when you want to put that data into a flat spreadsheet.
What is CSV?
CSV (Comma-Separated Values) is the oldest and most widely supported tabular data format. It predates JSON by decades and is defined loosely — the closest thing to a formal spec is RFC 4180 from 2005. A CSV file is plain text: one record per line, with each field separated by a delimiter (usually a comma, but tab, semicolon, and pipe are common).
Example CSV:
id,name,email,active
42,Alice Chen,[email protected],true
43,Bob Singh,[email protected],false
CSV's strengths are its simplicity and its universal compatibility. Every spreadsheet program (Excel, Google Sheets, Numbers, LibreOffice Calc), every database (Postgres, MySQL, SQLite, BigQuery, Snowflake), and every data tool (Pandas, R, Tableau, Power BI) can read CSV without additional libraries. The downside is that CSV cannot represent nested data, and the lack of a single formal spec means dialects vary — especially around quoting, escaping, and which characters are valid delimiters.
The most common dialects you'll encounter:
- RFC 4180 (Excel default): Comma delimiter, double-quote quoting, CRLF line endings, header row.
- Tab-separated (TSV): Tab delimiter, used by database exports and Excel paste-buffer.
- European CSV: Semicolon delimiter, because comma is the decimal separator in many EU locales.
- Pipe-separated (PSV): Pipe delimiter, used by log files and tools that need a delimiter unlikely to appear in data.
When should you convert JSON to CSV?
JSON to CSV is the right tool whenever you need to take data from a system that emits JSON and put it somewhere that wants a table. The most common scenarios:
- API analysis: Pull a REST API response, paste it into the converter, and open the result in Excel for ad-hoc analysis.
- Database ingestion: Many warehouses and databases accept CSV more readily than JSON, especially for one-time bulk loads.
- Reporting: Stakeholders who live in spreadsheets need CSV, not JSON.
- Data archival: CSV is more compact than JSON and is supported by long-term archival tools.
- Configuration migration: Some legacy systems only accept CSV imports.
The reverse — CSV to JSON — is just as common, especially when you're piping a spreadsheet into an API or a NoSQL database like MongoDB.
Common edge cases (and how HopConvert handles them)
Real-world JSON is messy. Here are the most common conversion pitfalls and how this converter deals with each:
- Nested objects: Flattened with a separator.
{"address": {"city": "NYC"}}becomes the columnaddress__city. The separator is configurable. - Arrays of primitives: Joined with a delimiter.
["SQL", "Python"]becomesSQL | Python. Useful for tags, skills, and categories. - Arrays of objects (header/detail): One row per array element, with the parent fields duplicated. This is the default and works for most API responses with line-item data.
- Inconsistent keys across rows: The union of all keys is used for the column set; missing values become empty cells.
- Special characters in values: Commas, quotes, and newlines trigger automatic RFC-4180-style escaping. The cell is wrapped in double quotes and any embedded quote is doubled.
- Epoch timestamps: Optionally converted to ISO-8601 dates (
yyyy-mm-dd) for easier reading in Excel. - JSON Lines (one object per line): Detected and split into rows. Useful for log files.
- Top-level single object (not an array): Treated as a one-row CSV.
Best practices for JSON to CSV conversion
- Always use a header row. It documents your columns and makes downstream tools (Pandas, BigQuery, Excel) work correctly. HopConvert always emits a header row.
- Pick the right delimiter for your data. If your values contain commas, use tab or pipe. If your tool expects a specific delimiter (e.g., semicolon for EU Excel), use that.
- Be deliberate about nested data. There is no single "right" way to flatten a hierarchy into a table. The header/detail strategy works for most cases, but flattened or matrix modes may suit your analysis better.
- Convert dates to ISO-8601. Excel often mis-parses local date strings.
2024-12-31is safer than12/31/2024. - Spot-check the output. Open the first 5–10 rows in Excel and verify the structure before committing to a full download.
- Use UTF-8 encoding. HopConvert always emits UTF-8. If a downstream tool doesn't recognise it, open the CSV in a text editor and re-save with the right BOM.
HopConvert vs other JSON to CSV tools
There are dozens of JSON to CSV converters online. Here's how BunnyCompare compares on the dimensions that matter:
- Privacy: HopConvert runs entirely in your browser. Other tools often upload your data to a server — fine for public APIs, risky for sensitive data.
- Cost: HopConvert is free, with no sign-up, no limits, and no premium tier.
- Nested data: HopConvert offers four strategies. Many competitors offer only one (usually flattened), which produces ugly output for the common header/detail case.
- Live preview: HopConvert shows the result table as you type. Most other tools require you to click "Convert" first.
- Settings: Custom delimiters, epoch conversion, smart column ordering — all available without an account.
For quick, one-off conversions of non-sensitive data, any tool will do. For repeated use on real data — APIs, exports, logs — the privacy and depth of HopConvert make a real difference.
Frequently asked questions
Everything you need to know about converting JSON to CSV with HopConvert.
What is a JSON to CSV converter?
Is HopConvert free to use?
Do I need to create an account?
Is my data private and secure?
What is the maximum file size?
Can I convert nested JSON with arrays and objects?
address__city), concatenated (arrays joined with a delimiter like SQL | Python), and matrix (full Cartesian expansion). The default header/detail mode works for most API responses.Does the converter work offline?
How do I open the CSV in Excel or Google Sheets?
.csv file, double-click it to open in Excel, or drag it into an open Google Sheets tab. In Google Sheets, use File → Import → Upload → Replace spreadsheet. If you used a non-comma delimiter (tab, semicolon, pipe), Excel will usually auto-detect it; otherwise use Data → From Text/CSV in Excel and pick the right delimiter.What is the difference between JSON and CSV?
Can I convert large JSON files (over 10 MB)?
What delimiters are supported?
Can I use HopConvert from a URL or API response?
Convert your JSON now
Free, fast, and private. No sign-up. Your data never leaves your browser.