CSS Formatter
Pretty-print CSS locally in your browser with 2- or 4-space indent.
Tool workspace
Pretty-print CSS in your browser. Styles are not injected or executed. Nothing you paste is uploaded. Best-effort formatting — not a full CSS validator.
How it works
Formatting runs entirely in your browser with a best-effort brace-aware prettifier. Styles are never injected into the page, executed, or uploaded. Remote @import URLs are not fetched.
Empty input clears the result—no error. This is not a full CSS validator or browser-equivalence checker.
Examples
- body{margin:0} → indented rules
- Nested @media blocks → readable structure
- Indent size 4 → wider indentation
Privacy
FAQ
Is my CSS uploaded?
No. Formatting runs entirely in your browser. We do not log or store what you paste.
Does this validate or execute my CSS?
No. It best-effort pretty-prints source text. It does not inject styles, load @import URLs, or claim browser-equivalence.
Do I need an account?
No. All published tools work for guests without login.