JSON Formatter vs JSON to CSV Converter
JSON Formatter
Pretty-print or minify JSON — with syntax validation.
Paste raw or minified JSON and format it with configurable indentation, or minify it by removing all whitespace. Validates syntax, reports parse errors with line/column, and optionally sorts keys or repairs malformed JSON.
Example input:
{
"json": "{\"name\":\"Alice\",\"age\":30}",
"mode": "pretty",
"indent": 2,
"sort_keys": false,
"repair": false
}JSON to CSV Converter
Convert a JSON array of objects to CSV, or parse CSV back to JSON.
Convert a JSON array of objects to a comma-separated values (CSV) file with a header row, or parse a CSV string back to a JSON array. Handles nested objects by dot-notation flattening (e.g. address.city), quoted fields with embedded commas or newlines, and configurable delimiters (comma, semicolon, tab).
Example input:
{
"input": "[{\"name\":\"Alice\",\"age\":30,\"city\":\"London\"},{\"name\":\"Bob\",\"age\":25,\"city\":\"Paris\"}]",
"mode": "json-to-csv",
"delimiter": ",",
"flatten": true
}| Feature | JSON Formatter | JSON to CSV Converter |
|---|---|---|
| Category | formatting | formatting |
| Inputs | json, mode, indent, sort_keys, repair | input, mode, delimiter, flatten |
| Outputs | output, valid, error, error_line, error_column | output, row_count, column_count, columns, mode, error |