CSS Minifier
Shrink CSS by removing comments, spaces and line breaks without changing how the page looks.
Tool inputs stay in your browser · optional AI search sends your query
Good to know: Comments that start with /*! (license notes) are kept. Spaces inside calc() are kept, because CSS needs them there.
How to use it (step by step)
- 1Type or paste your text into the “CSS” box. There is already an example in it so you can see how it works; press Clear to start with your own.
- 2The answer appears right away in the “Minified CSS” box. No button needed.
- 3Press Copy and paste the result wherever you need it.
Words to know
- Minify
- Removing spaces, line breaks and comments so code is smaller and loads faster. The computer reads it the same way.
- CSS
- The code that controls how a web page looks: colors, sizes, spacing and layout.
More in Developer
Basic Auth Header Generator & DecoderMake the “Authorization: Basic …” header from a username and password, or decode an existing one.Chmod Calculator (Linux File Permissions)Turn permissions like 755 into rwxr-xr-x (and back) and see in plain words who can read, write and run a file.Nginx Config GeneratorCreate an Nginx server block for a reverse proxy (Node, Next.js), static site or single-page app, with HTTPS and gzip.Dockerfile GeneratorMake a production-ready Dockerfile for Node.js, Next.js, Python, Go or a static site, plus a .dockerignore.Security Headers Generator (CSP, HSTS)Generate HTTP security headers (Content-Security-Policy, HSTS, X-Frame-Options…) for Nginx, Apache, Next.js or Cloudflare.Sitemap XML GeneratorPaste a list of page URLs and get a valid sitemap.xml to submit to Google Search Console and Bing.