Skip to content
HandyBrowserTools

XML Formatter

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.

Private by default: processing stays on your device

Example: single-line XML → formatted

Input

<user><name>Ada</name><roles><role>admin</role></roles></user>

Output

<user>
  <name>Ada</name>
  <roles>
    <role>admin</role>
  </roles>
</user>
Share this page X LinkedIn Reddit

These buttons share the page link, not your input.

Frequently asked questions

Does the formatter validate my XML?

Yes. Your input is parsed with the browser's built-in XML parser, and any well-formedness error is reported before formatting.

Can it minify XML too?

Yes, the Minify button strips whitespace between tags to produce compact single-line XML.

Is my XML sent to a server?

No, parsing and formatting run entirely in your browser.

JSON Formatter

Format, beautify and validate JSON instantly in your browser. Free online JSON formatter with 2/4-space and tab indentation, no signup, 100% client-side.

HTML Encode / Decode

Encode text to HTML entities or decode entities back to text online. Escape < > & quotes for safe embedding, free and client-side.

Markdown Preview

Free live Markdown preview with a side-by-side editor. GitHub-flavored rendering and instant updates, 100% in your browser, no uploads.