ToolCabana

CSS beautifier minifier

Format CSS with consistent indentation.

Favorites are saved in this browser. Find them in My favorites.

CSS beautifier minifier

Your input stays in this browser unless stated otherwise
Clear your input, files and result, and restore the default settings.
Load sample text to explore what this tool can do. This replaces your current input.
0 charactersClear the source text.

Mashandisiro CSS beautifier minifier

CSS beautifier formats a stylesheet so each rule and declaration sits on its own line with consistent indentation from 1 to 8 spaces. It adds missing semicolons, puts a space after colons and lowercases hex colors. Comments and nested rules are kept. Unparseable CSS returns an error rather than partially formatted output.

  1. Paste the source into the input editor, or load the built-in example.
  2. Set indent spaces.
  3. Run css beautifier minifier, review the output, then use the available copy or download controls.

Zvinotsigirwa nechishandiso ichi

Format CSS with consistent indentation.

Indent spaces
Range: 1 to 8

Miganhu nekugadzirisa

Text operations generally accept up to 2,000,000 characters. Individual parsers, generators and formulas apply additional limits shown by their controls.

Kunobva muenzaniso
.card{padding:20px;color:#17243a}

Mibvunzo inowanzo bvunzwa

How do I beautify minified CSS?

Paste the compressed stylesheet and run the tool. Each selector block is expanded so every declaration is on its own line, indented by the number of spaces you set, from 1 to 8.

Does the CSS beautifier keep my comments?

Yes. Comments are kept in the formatted output, and nested rules stay nested. Hex color values are written in lowercase, so #17243A becomes #17243a.

Can this tool minify CSS?

This tool formats CSS for readability; it does not produce minified output. Its only setting is the indent size, which accepts 1 to 8 spaces.

Where is my input processed?

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

What are the input limits?

Text operations generally accept up to 2,000,000 characters. Individual parsers, generators and formulas apply additional limits shown by their controls.