Instant readable markup

HTML Beautifier

Paste minified or messy HTML and get clean, properly indented markup — formatted locally in your browser.

Beautified output

How it works

1

Paste your HTML

Drop in minified, server-rendered or just poorly indented markup.

2

Pick an indent size

Choose 2 spaces, 4 spaces or tabs to match your style.

3

Copy the result

Get nested tags indented by depth, ready to paste back into your project.

FAQ

Does this change my HTML structure?

No. It only reformats whitespace and indentation between tags; all elements, attributes and content are preserved exactly.

Is my markup uploaded to a server?

No. Beautifying happens locally in your browser and your HTML is never sent anywhere.

Does it reformat inline script or style blocks?

The contents of script and style tags are left as-is; only the surrounding HTML structure is indented.

Try other tools