HTML / CSS / JS Formatter & Minifier

Ready

Input

Mode

Output

Original
Output
Change

    

Formatted entirely in this browser — nothing you paste here is uploaded anywhere. Minifying strips comments and collapses whitespace only; it never renames a variable or restructures code, so the result is always guaranteed to behave the same as the input, at some cost to how small it could theoretically get. Minifying or beautifying HTML also formats any inline <style> and <script> blocks it finds, using the same CSS and JS engines.

The HTML / CSS / JS Formatter & Minifier needs JavaScript: every transformation runs live in this browser. With JavaScript switched off there is nothing to do the work.