DEVELOPER TOOLS · LOCAL ONLY

HTML Formatter

Re-indent HTML by tag nesting so the structure is readable.

Up to 200,000 characters. Lightweight token-based layout, not a full HTML parser.

Format
1 lines · 51 bytes
0 lines · 0 bytes
Run the tool to see the result

Up to 200,000 characters. Lightweight token-based layout, not a full HTML parser.

How to use

Re-indent HTML by tag nesting so the structure is readable.

Expand minified or messy HTML into a clear hierarchy. Void elements such as `<br>` and `<img>` do not add a level, and the contents of `<script>`, `<style>`, `<pre>`, and `<textarea>` are preserved byte for byte so code and deliberate whitespace stay intact.

Limits and privacy

Up to 200,000 characters. Lightweight token-based layout, not a full HTML parser.

Everything runs inside this browser. Your input is never uploaded, stored, or written to the URL or any log.