CSS Formatter
Beautify or minify CSS and HTML with selectable 2-space, 4-space, or tab indentation and byte comparison.
Runs in this browser. Nothing is uploaded.
How to use CSS Formatter
Pick CSS or HTML mode and open a file or paste code into the editor.
Choose Beautify (2-space, 4-space, or Tab indentation) or Minify.
Review live byte savings and copy or download the formatted result.
Frequently asked questions
Does minifying break strings or media queries?
Quoted string literals stay intact while comments and redundant whitespace around selectors and rules are removed cleanly.