Before
Whitespace is removed from valid CSS.
.button {
color: white;
background: black;
}Output
.button{color:white;background:black}Private / No Upload
Minify valid CSS after formatting and checking syntax. The minifier removes extra whitespace for smaller output.
Runs in your browser
HappyFormatter tools process pasted snippets client-side for quick, privacy-first developer workflows.
No upload
HappyFormatter tools process pasted snippets client-side for quick, privacy-first developer workflows.
No account
HappyFormatter tools process pasted snippets client-side for quick, privacy-first developer workflows.
Before
Whitespace is removed from valid CSS.
.button {
color: white;
background: black;
}Output
.button{color:white;background:black}After
Minified CSS is smaller for transport.
.button{color:white;background:black}Output
Compact CSS fileMinify CSS locally.
Related toolFormat CSS before minifying.
Related toolFix CSS syntax errors.
Error guide