ייפו CSS עם הזחה נקייה, או כווצו אותו כדי לצמצם את גודל הקובץ. מטפל בשאילתות מדיה, calc() והערות רישיון.
כיצד להשתמש במעצב CSS
הדביקו את ה-CSS שלכם בתיבת הקלט.
בחרו ייפוי כדי לעצב אותו או כיווץ כדי לדחוס אותו.
בחרו את גודל ההזחה, ואז העתיקו את התוצאה.
This is a CSS formatter that beautifies stylesheets with clean, consistent indentation, or minifies them to shrink file size. You choose the indent size for beautifying, and switch to minify when you want the smallest output.
Readable CSS is easier to scan, review and debug: when each rule and declaration is indented consistently, you can see selectors, nesting and the shape of your media queries at a glance.
Minifying is for production. It removes the whitespace and comments that browsers do not need, so the file downloads faster. On a large stylesheet the saving adds up, especially before gzip compression on the server.
The minifier is careful where it matters. It keeps the spaces around plus and minus inside calc(), so calc(100% - 30px) stays valid, and it only strips spaces around structural characters such as braces, colons and semicolons. It also handles nested media queries correctly.
License comments written in the /*! ... */ form are preserved, which is the standard convention for keeping copyright and license notices in minified output even when ordinary comments are removed.
Both beautify and minify run entirely in your browser, so your stylesheets never leave your device. The tool formats for readability and size; it does not validate that your CSS is correct.
שאלות נפוצות
לא. המכווץ שומר על הרווחים סביב פלוס ומינוס בתוך ערכים, כך ש-calc(100% - 30px) נשאר תקין. הוא מסיר רק רווחים סביב תווים מבניים כמו סוגריים מסולסלים, נקודתיים ונקודה-פסיק.
הערות רגילות מוסרות כדי לחסוך מקום, אך הערות רישיון הכתובות בצורת /*! ... */ נשמרות, שזו המוסכמה הסטנדרטית לשימור הודעות זכויות יוצרים.
לא. גם הייפוי וגם הכיווץ פועלים כולם בדפדפן שלכם, כך שגיליונות הסגנון שלכם לעולם לא עוזבים את המכשיר.
הטמע את הכלי הזה
הוסף את הכלי הזה לאתר שלך. העתק את קטע הקוד שלהלן; הוא מתעדכן אוטומטית.
<iframe src="https://monu.tools/embed/he/css-formatter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>כלים קשורים
ייפוי HTML עם הזחה מודעת לבלוקים, או כיווץ שלו. התוכן של pre, textarea, script ו-style נשמר.
ייפוי וסידור של קוד JavaScript עם הזחה ורווחים עקביים. פועל כולו בדפדפן שלכם.
המירו CSV לקובץ Excel .xlsx ו-Excel בחזרה ל-CSV, כולו בדפדפן שלכם. עובד בשני הכיוונים.
צרו ממשקי TypeScript מדוגמת JSON, עם טיפוסים מקוננים, מערכים ושדות אופציונליים. פועל בדפדפן שלכם.