JSON to CSV Converter

Convert a JSON array of objects to CSV, or a CSV file back to JSON, in your browser.

Runs entirely in your browser — nothing is sent to our servers.

Input (JSON)

Output (CSV)

id,name,role
1,Ada Lovelace,Engineer
2,Grace Hopper,Engineer

What is JSON to CSV conversion?

JSON is the shape APIs return; CSV is the shape spreadsheets and data-import tools want. Converting a JSON array of objects to CSV means picking a column for every key that appears anywhere in the array, and lining every object's values up under the right column — even if some objects are missing a field. Converting back means treating the first CSV row as headers and reading every value as a typed field.

Why use this tool

Both directions happen locally: no file uploads to a third-party converter. JSON → CSV collects the union of every object's keys as columns, quotes fields containing commas, quotes or newlines per RFC 4180, and serializes nested objects/arrays as inline JSON strings rather than dropping them. CSV → JSON coerces numbers and true/false automatically, and everything else stays a string.

How to use it

  1. Choose a direction: JSON → CSV or CSV → JSON.
  2. Paste your data on the left — a small sample is preloaded to try it out.
  3. Read the converted result on the right, or the error if the input isn't valid.
  4. Copy the result with the button above the output panel.

JSON to CSV converter FAQ