# CSS Formatter / Beautifier

> Format CSS code for better readability or minify it for production.

- Open in browser: https://pockettoolbox.org/en/css-formatter
- Runs entirely in your browser; files and input are never uploaded.

## How it works

The CSS Formatter helps you make messy CSS code readable or optimize it for publication.

Paste your CSS code and click 'Format' to clean up indentations and line breaks. Select 'Minify' to remove all unnecessary whitespace and reduce the file size for your website.

Tokenizes CSS selectors and rule blocks. Formatting applies structured indentation to nested blocks, while minification strips comments and whitespace.

---
PocketToolbox (https://pockettoolbox.org/en)
