Developer & Data

CSS Formatter & Minifier

Format CSS for readability or minify it by removing unnecessary whitespace.

№ 024Runs locally

What this tool does

CSS Formatter & Minifier. Format CSS for readability or minify it by removing unnecessary whitespace.

When to use it

Use it to review stylesheets during development or prepare compact CSS snippets.

How to use

  1. Try this sample input first: .box{color:red;padding:4px}.
  2. Choose or adjust the options this tool provides; leave unrelated settings at their defaults.
  3. Run the tool and read any validation or status message. Correct the input format before trying again if needed.
  4. Check whether the result matches the example output: .box { color: red; padding: 4px; }. Then copy or download it.

Your input and files are processed in this browser. They are not uploaded by this toolbox.

Input and output example

Sample input
.box{color:red;padding:4px}
Sample output
.box {
  color: red;
  padding: 4px;
}