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 وصغّره وتحقق من صحته. يعرض السطر والعمود بالضبط لأي خطأ.
- عدّاد الكلمات والأحرف – احسب الكلمات والأحرف والجمل والفقرات، مع وقت القراءة وأهم الكلمات المفتاحية.
- محول حالة الأحرف – حوّل النص إلى أحرف كبيرة UPPERCASE وصغيرة lowercase وTitle Case وSentence case وcamelCase وsnake_case وغيرها.
- مولّد كلمات المرور – أنشئ كلمات مرور عشوائية قوية. اختر الطول والأحرف، وشاهد مدى قوتها.
- مولّد Hash وUUID – أنشئ UUID وقيم hash بصيغ MD5 وSHA-1 وSHA-256 وSHA-384 وSHA-512 للنصوص والملفات.
- ترميز وفك ترميز URL – رمّز أو فك ترميز الروابط والنصوص، وحلّل الرابط إلى النطاق والمسار ومعاملات الاستعلام.
- مولّد خريطة الموقع المرئية – اكتب عنوان أي موقع واحصل على لوحة خريطة مرئية: القوائم والصفحات وصحة السيو ووسوم التتبع ومسار البيع، مع دردشة تجيب عن أسئلتك حول الموقع.