Sponsored
Output appears here — it also runs automatically as you type.
Sponsored
/* single ad unit — insert AdSense/Ezoic code here */
What this tool does
- Format & validate JSON or XML. Auto-detects your input (or pick the format), pretty-prints it with 2/3/4-space or tab indentation, and points to the exact spot of any syntax error.
- Collapsible tree view. For large files, switch to Tree view and fold or unfold any branch — each object and array shows its item count, so you can navigate deep structures without scrolling through thousands of lines. Expand-all and collapse-all are one click.
- Convert between formats. JSON → XML, YAML, CSV, TypeScript or key=value; XML → JSON or key=value; and key=value → JSON or XML. Everything round-trips through a common structure so conversions stay consistent.
- key=value pairs. Turn flat
a.b[0]=valuelines into nested JSON or XML, or flatten JSON/XML back into simple pairs — handy for config files and env-style data. - Minify compacts JSON or XML to a single line; Sort keys alphabetises object keys recursively for clean diffs.
- Everything runs in your browser with the native
JSONandDOMParserAPIs — no libraries, nothing uploaded.