Tool
CSS Formatter
Format and minify CSS stylesheets for readability or production.
Developer Tools
What this tool does
Format CSS with indentation or minify it for smaller payloads.
How to use
- Paste CSS.
- Choose Format or Minify.
- Copy the output.
Examples
Simple rule
Input: body{margin:0;color:#111;}
Output: body { margin:0; color:#111; }
Rules and declarations are expanded for readability.
Common use cases
- Clean copied CSS snippets
- Minify styles for demos
- Review stylesheet changes
FAQ
Does this remove comments when minifying?
Yes. Comments are removed in minify mode.
Can it validate CSS?
It formats CSS but does not perform full linting.
Will custom properties be preserved?
Yes. Declarations remain intact during formatting.
Related tools
Last reviewed: 2026-05-23