Code Beautifier & Minifier (HTML/CSS/JS/XML)
Beautify or minify HTML, CSS, JavaScript and XML with a click. Choose 2/4-space or tab indent. Everything runs in your browser — no upload.
Minifying HTML/XML collapses whitespace between tags. Be careful when whitespace inside <pre>/<textarea> matters.
🔒 Your code never leaves your browser. Everything runs on this device.
Beautify messy code
Pick a language tab (HTML, CSS, JavaScript or XML), paste your code, and press Beautify. It re-indents and lays the code out cleanly using your chosen indent size. Great for reading minified or single-line code.
Minify to shrink
Press Minify to strip whitespace and comments. JavaScript is minified with Terser; CSS, HTML and XML collapse safely. The result shows the size reduction.
Nothing is uploaded
All formatting runs on your device in the browser; your code is never sent to a server. Copy or download the result.
Frequently asked questions
Which languages are supported?
HTML, CSS, JavaScript and XML — beautify for all, and minify with Terser for JavaScript and safe whitespace collapse for the rest.
Is my code uploaded?
No. Everything is processed in your browser and never sent to a server.
Does minifying HTML break anything?
It collapses whitespace between tags, so be careful where whitespace inside <pre>/<textarea> matters.