CSS Formatter & Minifier
Beautify CSS with clear indentation and one property per line, or minify it for production by removing comments and whitespace without breaking strings, calc() or media queries.
Free, no sign-up
Saved on your device only
Works offline after first open
The tool
Loading the tool…
How to use
- Paste CSS or open a .css file.
- Choose Format or Minify and the options.
- Copy or download the result.
Privacy & how it works
Saves your data in this browser only (back it up or delete it from “My data”).
- Engine: beautifier (open-source libraries bundled with the site).
- Works offline after you open it once.
Frequently asked questions
Is minifying safe?
It removes comments (except those starting with /*! such as licences) and extra whitespace, while keeping the spaces that matter inside calc() and before parentheses in @media. Colours and units are not changed.
Does it support SCSS and LESS?
Formatting usually works with simple SCSS and LESS because they are close to CSS, but minifying is designed for plain CSS, so test the result before using it.
Related tools
HTML Formatter & MinifierBeautify HTML with clear indentation or minify it for production: removes comments and extra whitespace, keeps pre and textarea intact, and safely compacts inline CSS and JS. Fully local.JavaScript Formatter & CompactorBeautify JavaScript or JSON with your choice of indentation and brace style, or compact it by removing comments and whitespace while keeping the line breaks the code relies on. Names are never changed.Colour PickerPick any colour from an image with a tap, or type its code, and get HEX, RGB, HSL, HSV and CMYK values, WCAG contrast and a palette extracted from the image. All on your device.Code to ImageTurn code into a clean image for slides, reports and social posts: automatic highlighting for 30+ languages, light and dark themes, a window frame and line numbers, exported as high-resolution PNG or SVG.