Skip to main content
dubinity

Developer & Web

CSS Minifier

Minify CSS conservatively: comments, whitespace, empty rules and short hex colours, nothing risky.

  • Runs in your browser
  • Works on mobile
  • In: CSS
  • Out: CSS
Loading the tool…

Your files and text are processed on your own device, inside this page. Nothing is uploaded to Dubinity or stored, and closing the tab discards it. How privacy works

About CSS Minifier

Strips comments and whitespace, drops the last semicolon in each block, removes empty rules, shortens #aabbcc to #abc and 0.5 to .5.

It deliberately leaves alone the changes that break stylesheets: spaces inside calc(), the space before ( in media queries, 0px to 0, and anything inside strings or url(). Licence comments marked /*! */ can be kept.

How to use it

  1. 1Type or paste your text, or open a file.
  2. 2Choose any options - the result updates as you type.
  3. 3Copy the result or download it as a file.

Questions

Was this tool helpful?

All developer tools
  • CSS Formatter

    Indent and tidy CSS, SCSS or LESS so a minified stylesheet becomes readable again.

    CSS · SCSS · LESS
    Runs in your browserOpen tool
  • HTML Minifier

    Shrink HTML safely: collapse whitespace, drop comments and minify inline CSS and JavaScript.

    HTML
    Runs in your browserOpen tool
  • JavaScript Minifier

    Minify JavaScript with Terser: compression, name mangling and licence comments kept if you want them.

    JavaScript
    Runs in your browserOpen tool
  • JSON Formatter

    Format and indent JSON, or minify it, with exact error positions and big numbers kept as written.

    JSON
    Runs in your browserOpen tool
  • Password Generator

    Create strong random passwords with the character rules a site demands, and see the real entropy.

    NONE
    Runs in your browserOpen tool
  • What Is My IP

    See the IP address our server sees, the rough location attached to it and what your browser sends.

    NONE
    Server lookupOpen tool