Skip to main content
Loading navigation…
Loading page…
Home
Tools
Developer
CSS Formatter
CSS Formatter
Loading tool workspace...
Related Tools You May Need
HTML Formatter
JSON Formatter
SQL Formatter
All Tools
Format (Beautify)
Minify (Compact)
Indent:
2 spaces
4 spaces
Tab
Sort CSS Declarations A-Z
Keep /* comments */
Input CSS
Reset Sample
Clear
/* Card Component Styles */ .card-container{padding:24px;border-radius:12px;background-color:#ffffff;box-shadow:0 10px 15px -3px rgba(0,0,0,0.1);display:flex;flex-direction:column;max-width:400px;margin:0 auto;} .card-title{font-size:1.5rem;font-weight:700;color:#1e293b;margin-bottom:8px;} .card-body{color:#64748b;line-height:1.6;font-size:0.875rem;} @media (max-width: 640px){ .card-container{padding:16px;margin:8px;} .card-title{font-size:1.25rem;} }
Formatted CSS
Copy
Save .css
/* Card Component Styles */ .card-container { padding: 24px; border-radius: 12px; background-color: #ffffff; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); display: flex; flex-direction: column; max-width: 400px; margin: 0 auto; } .card-title { font-size: 1.5rem; font-weight: 700; color: #1e293b; margin-bottom: 8px; } .card-body { color: #64748b; line-height: 1.6; font-size: 0.875rem; } @media (max-width: 640px) { .card-container { padding: 16px; margin: 8px; } .card-title { font-size: 1.25rem; } }
Original: 455 bytes
Result: 555 bytes
Saved: +22.0%
Rules: 6