CSS Formatter

Format CSS with proper indentation.

Result

Related tools

How it works

  1. 1Paste CSS (minified or unformatted) into the input area.
  2. 2The tool reformats with proper indentation and line breaks.
  3. 3Selectors and rules are organized for readability.
  4. 4Copy the formatted output.

Example

Input: .class{color:red;margin:0}
Output: .class {
  color: red;
  margin: 0;
}