Re-indent and organise messy or minified HTML markup into a clean, readable structure. Handles nested elements, inline styles, and self-closing tags intelligently.
Key Features
Adjustable indentation with choice of 2 spaces, 4 spaces, or tab indentation
Proper alignment for void and self-closing elements (such as img, br, input)
Intelligent preservation of preformatted tags and inline text flows
Cleans up mixed line breaks and uneven tag attributes
How to Use
Paste your unformatted or minified HTML into the source editor.
Select your desired indentation preference (spaces or tabs).
Privacy notice: when you run this tool, your input is sent over HTTPS to our server, processed in memory and returned. It is not stored or logged. Avoid pasting live secrets such as private keys or passwords.