CSS Formatter/Minifier
Click the run button.
Last updated: 2026 · Free online tool
What is CSS Formatter/Minifier?
Free online CSS formatter and minifier that beautifies stylesheets with consistent indentation and line breaks, or strips whitespace and comments to minify CSS and reduce file size for production.
How to Use
- 1Enter CSS— Paste your CSS code on the left.
- 2Select mode— Choose format or minify mode.
- 3Execute— Click the execute button and the result will be displayed.
Related Tools
HTML Formatter/MinifierFree online HTML formatter that beautifies messy markup with clean indentation and line breaks, or minifies it by stripping whitespace to shrink file size, right in your browser
JavaScript Formatter/MinifierFree online tool that formats JavaScript code with the Prettier engine for consistent indentation and style, or minifies it by stripping whitespace and comments to reduce file size
SQL FormatterFree online SQL formatter that beautifies and indents queries. Choose 2- or 4-space indentation, uppercase keywords like SELECT and FROM, and pretty-print MySQL and PostgreSQL.
Frequently Asked Questions
Currently only pure CSS is supported. SCSS/LESS support is planned for a future update.
No. Only formatting and minification are performed. Use a separate tool for Autoprefixer.
Comments, whitespace, and line breaks are all removed, reducing file size.
No. Prettier runs directly in the browser.
No. Only CSS code itself is formatted.