HTML
Turn minified or messy HTML into clean, properly indented markup — instantly, in your browser.
Formatting runs locally in your browser. Nothing is uploaded, logged, or stored.
The markup is parsed with the browser's native HTML parser and re-serialized with consistent indentation, so unclosed tags are normalized and nesting becomes visually obvious. Void elements like <img> and <br> are handled correctly, and fragments are formatted without being wrapped in a full document skeleton.
Going the other way? Compress markup again with the HTML Minifier or check the structure with the HTML Validator.
Server-rendered or bundled HTML often arrives as one giant line — format it to read the structure.
Normalize indentation of copied code blocks before publishing them in docs or reviews.
Minify HTML by collapsing whitespace and optionally removing comments.
Check HTML tag balance and nesting with line-level issue reports.
Describe what you want to match and get a working regular expression with explanations and examples.
Test regular expressions against sample text with match highlighting, capture groups, and explanations.
Looking for something else? Browse all tools