JSON Formatter
Format, beautify and validate JSON instantly in your browser.
Paste XML below to indent and beautify it. The tool also validates your markup and reports parse errors, and can minify XML back to a single line.
Paste or type XML to format
Validates as you type; formats on demand for large inputs.
Formatted output
Validation runs in your browser before formatting; Minify strips whitespace between nodes.
Input
<user><name>Ada</name><roles><role>admin</role></roles></user> Output
<user>
<name>Ada</name>
<roles>
<role>admin</role>
</roles>
</user> These buttons share the page link, not your input.
Your current input will be stored in the link after the # symbol, not uploaded to Handy Browser Tools. Anyone with this link can read that text. If you send or post it, the service you choose also receives the link. Do not include passwords or private information.
Yes. Your input is parsed with the browser's built-in XML parser, and any well-formedness error is reported before formatting.
Yes, the Minify button strips whitespace between tags to produce compact single-line XML.
No, parsing and formatting run entirely in your browser.
Format, beautify and validate JSON instantly in your browser.
Encode text to HTML entities or decode entities back to text online.
Free live Markdown preview with a side-by-side editor.