JSON Formatter & Converter

Format/minify JSON and convert between YAML, CSV, XML. Auto-detects format on paste.

Input
0 chars
Output
Result will appear here.
0 chars

About JSON Formatter & Converter

All processing happens in your browser. Data is never sent to a server, so sensitive information stays safe.

Smart Input Detection

Paste any text and the tool will auto-detect its format (JSON/YAML/CSV/XML) and switch tabs accordingly.

FormatterㆍMinifier

Indent JSON for readability or strip whitespace to minimize file size.

JSON ↔ YAML

Convert between YAML (popular for config files and CI pipelines) and JSON in either direction.

JSON ↔ CSV

Convert an array of JSON objects into a CSV table, or parse CSV back to JSON. The first row is treated as the header.

XML ↔ JSON

Parse XML into a JSON tree, or serialize a JSON object back into XML. Attributes use the @ prefix.

Need to format SQL queries working with JSON columns? Try the SQL Formatter. For unique keys in JSON objects, use the UUID Generator. To encode text or files to Base64, see the Base64 Encoder/Decoder.

Common JSON Parsing and Authoring Pitfalls

JSON looks simple, but even a small deviation from the spec (RFC 8259 / ECMA-404) makes parsers reject the input. The most frequent mistakes come from confusing JSON with JavaScript object literals.

Things JSON does not allow

Encoding and escaping traps

Conversion scenarios that frequently fail

Schema and validation mistakes

FAQ

Is my data sent to a server?

No. All conversion runs in your browser via JavaScript and never leaves your device.

Does it support JSON5 or commented JSON?

Only standard JSON is supported. Comments and trailing commas will cause a parse error.

Can it handle large JSON files?

Up to a few megabytes works smoothly in the browser. Beyond ~10MB, formatting and tree rendering may slow down - paste only the relevant section instead.