WebTool

CSS Formatter

Free online CSS formatter based on Prettier: restore single-line stylesheets to readable indented CSS, or minify.

Privacy: all processing happens locally in your browser. Your input never leaves your device.

What is CSS Formatter?

Production CSS is usually compressed into a single line and impossible to read when debugging styles. Based on Prettier, this tool restores minified CSS to a readable multi-line, indented format with clear selector, property and media-query structure — and can minify it back to save bytes. Modern nesting syntax is supported.

How to Use

  1. Paste CSS code
  2. It formats automatically, or click Minify
  3. Copy the result

FAQ

Are Less/SCSS supported?
Standard CSS and CSS nesting syntax are supported; for SCSS-specific syntax like @mixin, use Prettier with the appropriate plugin inside your project.
How much size does minifying CSS save?
Typically 15%-25%. The gap shrinks once gzip is applied, but minification remains a standard build-pipeline step.

Related Tools

Last updated 2026-09-04