_noob.tools
My IP

HTML & XML Beautifier / Formatter

Instantly reverse-engineer minified DOM strings and massive XML configurations into perfectly indented semantic structures.

What is the HTML & XML Beautifier?

Reformats minified, single-line HTML or XML into indented, human-readable markup using a lightweight regex-based formatter, without parsing it into a live DOM.

How it works

The formatter inserts a newline between every '>' and the following '<', then walks the resulting lines while tracking indentation depth: an opening tag increases the indent for the lines that follow it, a closing tag decreases it first, and void elements like br, hr, img, input, meta, and link leave the depth unchanged. Working on raw text with regex rather than a DOM parser keeps it fast and avoids ever executing embedded scripts, though unusual or malformed markup can be indented incorrectly.

SysAdmin & security use cases

  • Indent a SAML Assertion or SOAP Envelope response pasted from an HTTP proxy like Burp Suite.
  • Beautify a minified HTML page saved from view-source to make it readable.
  • Reformat a single-line Nginx or Java server XML config export for review.