← All tools

CSS Minifier

Reuse the existing CSS parser/minifier.

css-minifierLOCAL WORKSPACE

Enabling local controls…

Local processing inputs

Local Worker: 10s startup, 1s processing. 32KiB per field, 1MiB complete result. Editing or clearing cancels work and stale output. Generated HTML/CSS is not mounted; remote image preview requires a separate action.

Preview and code

Edit fields and build a preview; complete code can be copied or downloaded.

Model and scope

Reuse the existing CSS parser/minifier. Keep true /*! license comments, relocating them after a leading @charset; other comments are removed. Strings and calc spacing remain grammar-aware. No stylesheet is mounted or URL requested; source-map comments are not retained. 32 KiB / 5000 syntax nodes.

W3C CSS specifications ↗ToolHub source controls ↗

How to use this tool

Edit the bounded fields, process locally, inspect the native preview, then copy or download complete code. Editing clears stale output.

When not to use it

Reuse the existing CSS parser/minifier. Keep true /*! license comments, relocating them after a leading @charset; other comments are removed. Strings and calc spacing remain grammar-aware. No stylesheet is mounted or URL requested; source-map comments are not retained. 32 KiB / 5000 syntax nodes.