Monu Tools

CSS Formatter

Beautify CSS with clean indentation, or minify it to shrink file size. Handles media queries, calc() and license comments.

How to use the CSS Formatter

  1. 01

    Paste your CSS into the input box.

  2. 02

    Choose Beautify to format it or Minify to compress it.

  3. 03

    Pick the indent size, then copy the result.

Frequently asked questions

Does minifying break calc() expressions?

No. The minifier keeps the spaces around plus and minus inside values, so calc(100% - 30px) stays valid. It only removes spaces around structural characters such as braces, colons and semicolons.

Are comments removed when minifying?

Normal comments are removed to save space, but license comments written as /*! ... */ are kept, which is the standard convention for preserving copyright notices.

Is my CSS uploaded anywhere?

No. Both beautify and minify run entirely in your browser, so your stylesheets never leave your device.

About this tool

A CSS formatter that beautifies stylesheets with consistent indentation or minifies them to reduce file size, handling nested media queries and calc() correctly.

Minify is calc-safe and preserves license comments, and everything runs locally in your browser.

Related tools

We use essential cookies to run the site. With your consent we also load Google AdSense, which sets advertising cookies. See our privacy policy.