Free · Nothing uploaded · Runs in your browser
Paste HTML to format, minify or preview it instantly.
Input
Output
Formatted output will appear here.
No — formatting, minifying and the preview all run in your browser using its own HTML parser. Nothing you paste is sent to a server.
Often yes — formatting goes through the browser's own HTML parser, the same forgiving engine that renders any webpage, so it repairs common issues like unclosed tags the way a browser silently would. This makes it a beautifier, not a byte-exact formatter.
No — element content, attributes and their values are preserved. What changes is whitespace: indentation is added between elements, and insignificant whitespace is normalized. Content inside <pre>, <script>, <style> and <textarea> is left untouched since it's whitespace-significant.
No — minify here only strips HTML whitespace and comments. Embedded <style> and <script> content is left as-is; use a dedicated CSS or JS minifier for those.
The preview renders inside a fully sandboxed frame with scripts disabled, so embedded <script> tags won't execute — useful if you're previewing HTML from a source you don't fully trust.