Beautify or minify HTML, CSS and JavaScript

Format a block of code with the indent you want, or strip it down. Minification here removes comments and redundant whitespace and nothing else: no identifier is renamed, and in JavaScript line breaks are kept because removing one can change what the code does through automatic semicolon insertion. Knowing when that is safe requires a full parser — a large download this page deliberately does not make you wait for. The result is a smaller file that behaves identically, not the smallest possible file.

This tool runs entirely on your device. Nothing you type here is uploaded, logged or stored.

Settings

0 characters
or paste above
Result

Enter some text above to see the result.