HTML beautifier & minifier
Paste HTML to format it with clean indentation, or minify it to make it smaller. Your code stays in your browser.
Runs in your browser. Your files are never uploaded.
Frequently asked questions
Does it change how my page looks?
No. Beautifying only changes indentation and line breaks between tags. Text inside <pre> and <textarea> is kept exactly, and spaces between inline elements are preserved.
What does it do with <script> and <style>?
Their content is kept as written and only re-indented to match the surrounding HTML.
Is my code uploaded?
No. It runs entirely in your browser. Nothing you add is uploaded to a server.