CSS formatter

Turn minified or messy stylesheets into clean, readable CSS.

Language
Indent
CSS formatter: illustration of a code editor with brackets, a colour swatch and a settings gear
CSS formatter is part of our free Developer tools collection. It works in your browser on phones, tablets and computers, with no sign-up.

How to use the CSS formatter

  1. Paste CSS, SCSS or Less, or choose a file.
  2. Pick the language and indent size.
  3. Press Format and copy or download.

When it's useful

  • Reading a minified stylesheet
  • Tidying CSS before sharing it with a team
  • Finding a missing brace

Limits to know

  • Formatting only — it doesn't minify or remove unused CSS.

Your privacy

Everything is worked out in your browser. What you type isn't uploaded, saved or shared, and there's no sign-up.

What goes in and what comes out

Input:
CSS, SCSS or Less pasted or as a file, up to 5 MB.
Output:
Formatted stylesheet, copyable or as a download.

Questions

Is my code sent anywhere?

No. Prettier runs in your browser.

Related tools