TOOLS FOR CODE & DATA
JSON / XML Formatter
Format JSON and XML, check for syntax errors or create compact output, with syntax highlighting to make the structure clear.
Format code
Automatic formatting · Max. 100,000 characters · File imports up to 1 MiB
0 characters
Output
0 characters
Your result appears here.
Ready. JSON or XML is automatically formatted after input.
Note: XML can contain significant whitespace. Formatting preserves mixed text content; Minify removes indentation-only whitespace between XML elements. DTDs are rejected for safety.
Back to Dev Tools
Right in your browser · No sign-up