HTML Beautifier / Formatter

Indent and format messy or minified HTML online so it is easy to read. Runs locally in your browser.

About this tool

Each tag is placed on its own line and indented by nesting depth; void elements like br, img and meta do not increase indentation. This is a lightweight formatter for readability and does not change tag content. Nothing is uploaded.

Related: JSON Formatter & Validator · Base64 Encode & Decode · URL Encoder & Decoder · SHA-256 / SHA-1 Hash Generator · Unix Timestamp Converter