HTML Formatter

Indent and minify (js-beautify)。 Runs locally—nothing uploaded.

Using the HTML formatter

Paste HTML, choose beautify or minify, run the tool and copy the result. Processing stays in your browser.

Formatting changes whitespace; it does not guarantee repair of invalid markup or validate script behavior. Check rendered output after changing pages with inline CSS/JavaScript. Large inputs can take longer.