CSS formatter and minifier
Format or minify CSS without executing it.
Bookmark this page
Keep this page handy for next time.
- On a computer
- Press Ctrl + D, or Command + D on a Mac.
- On a phone or tablet
- Open your browser's menu or Share menu and look for Add Bookmark, Bookmark or Add to favourites.
A bookmark saves the page link. Save any tool results separately.
How to use this tool
- Format or minify CSS without executing it.
- Adjust the labelled settings, then run the tool. Copy the result or download it as a file.
Things to know
- Processing is local. Supplied code and network requests are never executed. Input and text settings are limited to 5 MiB combined; text settings alone are limited to 1 MiB.
- Source: 2 MiB, 100,000 lexical tokens and 96 nesting levels. Indentation growth is preflighted; output must fit 25 MiB. Parsing and formatting stay in a terminable worker.
You might also need
More in web developmentJavaScript formatter and minifier
Format or minify JavaScript source without running the program.
HTML formatter
Format HTML source while preserving whitespace-sensitive content.
CSS selector tester
Find matching elements in pasted HTML without rendering the supplied page.
CSS specificity calculator
Compare the specificity of CSS selectors.
SQL formatter
Format SQL using the selected database dialect.
Font size converter
Convert a pixel font size to REM and points instantly. Starts with a 16px root font size.
Chmod calculator
Convert Unix permission modes into readable permissions and a ready-to-copy command.
CIDR range combiner
Combine overlapping or adjacent address ranges into the smallest equivalent CIDR list.
Content Security Policy builder
Build a policy from explicit directives and check common unsafe settings.