What does the CSS beautifier do?
The CSS beautifier reformats CSS source by adding line breaks between rules, indenting each declaration, and normalising the whitespace around braces, colons, and semicolons. It does not change selectors, properties, or values, so the rendered output is identical to the input.
How is CSS beautifying different from CSS validation?
Beautifying changes only formatting — it does not check that property names are valid or values are well-formed. For correctness checks against the W3C CSS specification, use a dedicated CSS validator. The beautifier is purely a presentation layer.
Can I choose the indentation style — tabs vs spaces?
Yes. The toolbar above the editor lets you switch between 2-space (default), 4-space, and tab indentation. Pick the style that matches your project EditorConfig or Prettier configuration.
Will the beautifier preserve my CSS comments?
Yes. /* block */ comments are kept and placed on their own lines so they remain readable. Authoring notes about TODOs, browser hacks, or design tokens stay attached to the rules they describe.
Does the beautifier work on SCSS, SASS, or LESS source?
It is built for plain CSS syntax. SCSS and LESS share the brace syntax and will format reasonably, but preprocessor-only constructs (@mixin, $variables, parent selectors with &) may not get optimal layout. For preprocessor source, beautify after compiling to CSS.
Is my CSS uploaded to your servers?
No. Formatting runs entirely in JavaScript inside your browser. Stylesheets containing internal class names, design tokens, or unreleased UI never leave your device. Verify in DevTools Network — no requests fire when you click Run.
Why does my beautified CSS look different than Prettier output?
Prettier applies opinionated rules like alphabetising vendor prefixes and breaking long lines. This beautifier applies only universal CSS conventions: one rule per line, indented declarations, blank lines between blocks. For full Prettier output, run prettier --parser css in your project.
How is this beautifier different from CSS Pretty Print?
They are the same operation under different names. Some teams say "beautify", others say "pretty print". Output is identical. CSS Beautifier is the canonical tool — CSS Pretty Print exists for users who search the alternate vocabulary.