CSS Formatter & Beautifier
Paste CSS or minified CSS, then beautify it with proper indentation or minify it for production.
Features
How to Use
1. Paste your CSS into the input box on the left.
2. Click Format to beautify, or Minify to compress.
3. Copy the formatted result from the right panel.
About this tool
Minified or hand-edited CSS is hard to review: one long line hides duplicate rules, missing semicolons and overrides. This formatter rebuilds the stylesheet with one declaration per line, consistent indentation of two spaces, four spaces or tabs, while keeping strings, comments and nested blocks such as @media and @supports intact. Minify does the opposite for production, stripping comments and unnecessary whitespace to reduce transfer size. You can paste code, or drag in a .css file, then copy or download the result. Formatting changes layout only — the order and meaning of your rules stay exactly the same, so the cascade behaves as before.