Online tool for formatting CSS rules with indentation, line breaks, and minification.
CSS Formatter is a free online tool for formatting CSS with indentation or minification. Useful for DevTools fragments, CMS, and style blocks. Processing runs locally in your browser.
Choose a related tool for the next step.
Data passed between tools is kept only in the current browser session.
CSS Formatter brings CSS code to readable form with line breaks and indentation.
Useful for minified styles, DevTools fragments, CMS, email templates, style blocks, and small stylesheets. Choose 2 or 4 space or tab indent, preserve comments, put each property on its own line, minify CSS, and get warnings for @media, @keyframes, @supports, CSS variables, and SCSS-like nesting.
The service formats CSS but does not replace Stylelint, PostCSS, Autoprefixer, or a full CSS validator.
Processing runs locally in your browser.