(01) — TOOLS
JSON and XML, readable.
Paste a payload. The tool indents or minifies it, and flags broken syntax. Nothing is sent.
At a glance
- JSON / XML formatter, free, in the browser.
- JSON.parse / stringify. XML via DOMParser (application/xml).
- 2 or 4-space indent, or a minified line.
- Nothing is sent to a server.
(02) — METHOD
Parse, then rewrite.
01 — JSON
JSON.parse, then JSON.stringify with 2 or 4 spaces. Minify = one line.
02 — XML
DOMParser as application/xml, then an indented rewrite. A mismatched tag is rejected.
03 — Local
The text stays in the tab. No upload, no API.
(03) — FAQ
Short answers.
- HTML too?
- No. XML mode wants well-formed XML (closed tags, case kept). Loose HTML will often fail.
- Are XML comments kept?
- Yes, comments and CDATA are rewritten. An <?xml … ?> declaration is kept if it was there.
- Is anything sent to a server?
- No. It stays in the tab.