🔀

JSON to CSV Converter

Convert JSON arrays to CSV and CSV back to JSON. Bidirectional, supports custom delimiters, 100% browser-based.

Delimiter: Quote strings:
JSON Input
CSV Output
Delimiter: Output:
CSV Input
JSON Output

About the JSON to CSV Converter

JSON arrays are the standard output format for REST APIs and modern applications, while CSV is the standard for spreadsheets, database imports and data pipeline tools. Converting between them is a routine task in IT and data work. This tool handles both directions: JSON arrays to CSV with configurable delimiters and quote styles, and CSV back to JSON with automatic numeric type detection.

The quote style option controls how string values are quoted in CSV output. Auto mode only adds quotes when a value contains the delimiter, quotes or newlines. Always mode quotes every value, which is safer for import into strict parsers. The CSV to JSON converter automatically detects integers and floats and outputs them as JSON numbers rather than strings, which matters for applications that perform arithmetic or comparisons on the data.

Common Use Cases

  • 📊
    Export API data to Excel. Convert a JSON API response array to CSV so it can be opened directly in Excel or Google Sheets for analysis or reporting.
  • 🗄️
    Database imports. Many database tools and SaaS platforms accept CSV for bulk imports. Convert your JSON data export to CSV before uploading.
  • 🔄
    Data pipeline conversion. Convert between formats when connecting tools in a workflow that use different data formats at each stage.
  • 🔐
    Private data stays local. Unlike online converters that upload your data, this tool processes everything in the browser. Safe to use with sensitive records, credentials or PII.

Frequently Asked Questions

What JSON structure does this tool support?
The JSON input must be an array of objects where each object represents a row and the object keys become column headers. Nested objects are not flattened. For example: [{"name":"Alice","age":30},{"name":"Bob","age":25}].
How does the tool handle different delimiters?
You can choose comma, semicolon, tab or pipe as the delimiter. Semicolon is the default in many European locales where the comma is used as a decimal separator. Tab-delimited files (TSV) are useful when values may contain commas.
Does CSV to JSON preserve data types?
Yes. Values that look like integers or floats are output as JSON numbers. Empty values become empty strings. Everything else becomes a string. This automatic type detection matches what most tools expect when consuming the JSON output.