JSON Formatter & Converter

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

Input
Output

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.

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.