Skip to content
Developer & CodeLocal · Stays on device

CSS Minifier

Minify CSS for production with csso: remove whitespace and comments, shorten colours and values, and merge rules, with before/after and gzip sizes.

Launch CSS Minifier
  • CSS
  • Free to use
  • No sign-up or watermark
css-minifierOn this device
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10

About this tool

Uses csso, a well-tested structural CSS optimiser, to remove whitespace and comments, shorten colours (#ff0000 → red), drop redundant units (0px → 0) and, optionally, merge rules that share declarations. Licence comments that start with /*! are kept unless you turn that off. The original and minified sizes are shown, together with the approximate gzipped size, which is closer to what visitors actually download.

Rule merging is safe for normal stylesheets; turn it off if you rely on unusual cascade order between rules. Unbalanced braces or unclosed strings are reported with their position instead of being minified into broken CSS. Everything runs in your browser. Your data is never uploaded, logged or stored.

  1. Input

    Your code or text

    CSS

  2. Processing

    Processed in this browser

    Instant, in-browser. Nothing is uploaded.

  3. Output

    Your result

    Ready to download or copy

Local processing pipelinecsso (MIT)

How to use it

  1. 1

    Paste your CSS.

  2. 2

    Choose whether to merge rules and keep licence comments.

  3. 3

    Check the savings, then copy or download the minified CSS.

Zero-upload architecture

How to use CSS Minifier for free, with no upload

Free, with no sign-up or watermark · Your files stay on your device

  1. 1

    Open CSS Minifier

    Launch the app and add your file. There is nothing to install and no account to create.

  2. 2

    Work through it

    Choose whether to merge rules and keep licence comments.

  3. 3

    Get your result

    Check the savings, then copy or download the minified CSS.

  • Local

    CSS Formatter

    Beautify CSS with consistent indentation, one selector per line and blank lines between rules, after checking for unbalanced braces.

    Open tool
  • Local

    JavaScript Minifier

    Minify JavaScript with terser: compress, shorten local names and keep licence comments, with exact syntax errors and size savings.

    Open tool
  • Local

    HTML Minifier

    Shrink HTML safely: remove comments and collapse whitespace while leaving pre, textarea, script and style contents untouched.

    Open tool
  • Local

    CSS Grid Generator

    Build CSS grid layouts with track sizes, gaps and named template areas, previewed live.

    Open tool