CSS Minifier
Make a CSS file smaller by removing comments and spaces, without breaking it.
CSS Minifier について
Paste your CSS, or drop the file on the page, and get it back with the comments and the spaces that do nothing taken out, so the file downloads faster. It reads the stylesheet through rather than running patterns over it, which matters more than it sounds: a brace, a slash or a space inside a string or an unquoted data URI means nothing, and the simpler minifiers mangle a background image written as a data URI. Licence comments written as /*! ... */ are kept, as licences require. You are told how much smaller it came out, and warned if the braces do not match, which means the CSS was already broken. It runs inside your browser, so nothing is uploaded and nothing is stored.
このツールはブラウザ内で動作するので、ファイルが端末から出ることはありません。
CSS Minifier の使い方
- Paste your CSS, or drop the .css file on the page.
- Check the saving it reports.
- Copy the result or download the .min.css.
質問
How much smaller will my CSS get?
Usually 15 to 30 percent, and more if the file carries a lot of comments. The exact saving is shown under the boxes.
Will it break my stylesheet?
It only removes things that do nothing: comments, and spaces and semicolons that are not needed. Strings and data URIs are left exactly as they are. Nothing is renamed and no rule is merged.
Are licence comments kept?
Yes. A comment that starts with /*! is kept, which is how licences are marked. Turn that off if you do not want it.
Does it also work for SCSS or LESS?
No, those have to be compiled to CSS first. Minify the CSS that comes out of your build.
Is anything uploaded?
No. The tool runs inside your browser, so what you paste or add stays on your device.
関連ツール
- Image to Text Ratio Checker – See how much of a page is real text, how many pictures it has, and which have no alt text.
- JSON 整形・検証 – JSON の整形、圧縮、検証。エラーの行と列を正確に表示します。
- 文字数・単語数カウント – 単語数、文字数、文数、段落数を数え、読了時間や頻出キーワードも表示します。
- 大文字・小文字変換 – テキストを大文字、小文字、タイトルケース、camelCase、snake_case などに変換します。
- パスワード生成 – 強力なランダムパスワードを作成。長さと文字種を選び、強度も確認できます。
- ハッシュ・UUID 生成 – UUID と、テキストやファイルの MD5、SHA-1、SHA-256、SHA-384、SHA-512 ハッシュを生成します。
- URL エンコード・デコード – URL やテキストのエンコード・デコード、URL をホスト・パス・クエリパラメーターに分解します。
- ビジュアルサイトマップ生成 – サイトのURLを入力すると、メニュー・ページ・SEO状態・計測タグ・販売ファネルをまとめたビジュアルボードができます。サイトについて答えるチャット付き。