JSON - CSV Conerter

JSON ↔ CSV Converter

Convert JSON arrays to CSV and CSV back to JSON instantly.

JSON and CSV solve different problems. JSON holds hierarchical, nested data and suits APIs and config files; CSV is flat and tabular and suits spreadsheets. Moving data between them is not just reformatting, it is restructuring. This tool runs in your browser and converts a JSON array into CSV for Excel or Google Sheets, and CSV rows back into a JSON array.

How to Use the JSON ↔ CSV Converter

What Is JSON ↔ CSV Conversion?

How Nested JSON Is Handled

When You’d Use This

Worked Example

JSON to CSV: Input:

[
  { "name": "Alice", "age": 30, "city": "New York" },
  { "name": "Bob", "age": 25, "city": "London" }
]

Output:

name,age,city
Alice,30,New York
Bob,25,London

CSV to JSON: Input:

name,age,city
Alice,30,New York
Bob,25,London

Output:

[
  { "name": "Alice", "age": "30", "city": "New York" },
  { "name": "Bob", "age": "25", "city": "London" }
]

CSV has no notion of data types, so numbers come back from a CSV to JSON conversion as strings unless the receiving system converts them.

Nested input behaves differently again: [{“name”:”Ada”,”address”:{“city”:”NYC”}}] converts to the two columns name,address — with the whole address object sitting in one cell as JSON text, not as an address.city column.

Do’s and Don’ts

Do:

Don’t:

Common Mistakes

Good to Know

FAQ

What JSON structure works best in this converter?

A flat array of objects that share the same keys, for example [{“id”:1,”name”:”Alice”},{“id”:2,”name”:”Bob”}]. An object wrapping an array, such as {“users”: […]}, is not unwrapped — it converts to a single users column.

What happens to nested objects and arrays?

Both are serialised as JSON text inside one cell. A nested object does not become dot-notation columns here, and a nested array is not spread across rows or columns.

Does converting CSV to JSON preserve number and boolean types?

No. CSV is plain text, so numbers and booleans come back as strings. Convert them to their proper types afterwards if your application needs them.

Can I choose a different delimiter, such as a semicolon?

No. The converter reads and writes commas only. A semicolon-separated file pasted into CSV to JSON returns a single key holding the whole row, so convert it to commas first, or set the delimiter in your spreadsheet’s own import dialog.

Can I convert a single JSON object instead of an array?

Yes. One object becomes one row in the CSV table, with its top-level keys as the columns.

Is my data uploaded anywhere during conversion?

No. Nothing you paste is sent to a server — the whole conversion runs in your browser.

Related Tools

Base64 Encoder
Base64 Encoder

Encode or decode Base64 strings safely.

  • 100% Free
  • Customizable
  • Download
  • Unlimited
Hash Generator
Hash Generator

Generate MD5, SHA-1, SHA-256, and more hashes.

  • 100% Free
  • Customizable
  • Download
  • Unlimited
URL Encoder
URL Encoder

Escape and unescape URL components instantly.

  • 100% Free
  • Customizable
  • Download
  • Unlimited
HTML Encoder
HTML Encoder

Convert HTML entities to text and back.

  • 100% Free
  • Customizable
  • Download
  • Unlimited
UUID Generator
UUID Generator

Create unique UUIDs for apps and databases.

  • 100% Free
  • Customizable
  • Download
  • Unlimited
Timestamp Converter
Timestamp Converter

Convert Unix timestamps to dates and back.

  • 100% Free
  • Customizable
  • Download
  • Unlimited