About this tool
Make a minified stylesheet readable again to debug it or learn from it. Nested blocks such as @media are indented.
Making minified CSS readable again
Minified CSS is efficient to download but almost impossible to read, since everything sits on one long line. When you need to debug a style on a live site, learn from how another project is built, or recover a stylesheet whose original source has been lost, beautifying it is the first step. This tool adds line breaks and indentation so each rule, selector and property is easy to see.
Nested blocks such as @media queries, @supports rules and @keyframes animations are indented properly, so you can tell which rules apply at which screen sizes. That structure makes it much easier to find why a style changes on mobile or why an animation behaves unexpectedly. You can choose the indentation width to match your editor or team style.
Beautifying only changes layout, not meaning. It will not fix invalid CSS, but readable code makes errors much easier to spot, such as a missing semicolon or closing brace that causes the rules after it to be ignored. Once the CSS is readable, look for repeated declarations, overly specific selectors and rules that are never used, which are common in stylesheets that have grown over time. If you are studying another site's styles, use them to learn techniques rather than copying the code wholesale. When you are finished editing, run the CSS through the minifier again before publishing. The tool works entirely in your browser, so your stylesheets are never sent to a server. Keeping a readable copy alongside the minified one in your project saves you from repeating this work later, and helps anyone else who maintains the site.
How to use it
- Paste your text into the input box, or open a file from your device.
- Adjust the options. The result updates instantly.
- Copy the result, or download it as a file where offered.
Questions
Does it work with @media and @keyframes?
Yes. Nested blocks are indented one level per nesting.
Will it fix invalid CSS?
No. It reformats what is there; use your browser's developer tools to find invalid rules.
Last reviewed 16 October 2026.
