Skip to main content
CSS Tools
Popular
Recently added

CSS Beautifier & Minifier

Beautify or minify CSS in your browser.

Introduction

Beautify stylesheets for readability or minify them for transport. Expand nested-looking mess into something reviewable, or compress whitespace for demos.

Features

  • Beautify with indentation
  • Minify CSS
  • Comment stripping on minify
  • One-click copy

How to use

  • 1
    Paste CSS into the input.
  • 2
    Click Beautify or Minify.
  • 3
    Copy the output.

Example

Minify

Input
body { color: #111; }
Output
body{color:#111}

Benefits

  • Use CSS Formatter without installing a desktop app or browser extension.
  • Works well alongside HTML Formatter and Flexbox Generator for adjacent steps in the same workflow.
  • Results stay in this browser tab until you copy or download them.

FAQs

It uses practical whitespace rules and may need manual tweaks for unusual syntax.

Comments are removed during the normalize step used by both modes.

No.

Pair CSS Formatter with HTML Formatter, Flexbox Generator, SQL Formatter. See Related tools on this page.


Developer resources