Free · No signup · Works in your browser

Messy CSS in.Clean CSS out.One click.

Paste any stylesheet and get it neatly indented — or squeezed into a minified file for a faster site.

See exactly how many bytes you saved, then copy or download the result.

Free for every developer and web design student.

2
modes — beautify or minify
3
indent styles — 2, 4 or tab
Live
size saved shown instantly
0
accounts or uploads

The tool

Format your CSS

CSS Formatter & Minifier

Paste CSS, then beautify it for reading or minify it for production.

Input CSS

Output CSS

0 B

Input size

—

Output size

—

Size saved

Privacy-first: your files are processed in your browser and never uploaded. The few tools that need a server — running C, C++, Java or Python code, reading a public web page, or a speed test — send only what you enter for that job.

Who it's for

Made for the people who actually use it.

  1. Web developers

    The pain

    Copied CSS from a theme or an old project arrives as one long unreadable line.

    The outcome

    Readable, consistently indented rules in a second — and a minified copy ready for production.

  2. Students

    The pain

    Assignments and lab files get marked down for messy code, and fixing indentation by hand wastes time.

    The outcome

    Tidy, properly spaced CSS to study and submit — see how professional stylesheets are laid out.

  3. Site owners

    The pain

    PageSpeed says to minify CSS, but you don't want to install build tools just to shrink one file.

    The outcome

    Paste, minify, download styles.min.css and upload it — a smaller file without any setup.

How it works

Three steps.
That's the whole manual.

Format my CSS
  1. 01

    Paste your CSS

    Drop in a whole stylesheet or just a few rules — any valid CSS works.

  2. 02

    Beautify or minify

    Choose readable output with 2 spaces, 4 spaces or tabs, or a compact minified version.

  3. 03

    Copy or download

    Copy the result or download it as styles.css or styles.min.css, with the size saved shown.

Features

Everything you need.
Nothing you don't.

6 things it does well — and no settings page to get lost in.

  • Beautifier

    Puts every rule and property on its own line with consistent indentation.

  • Minifier

    Strips comments, spaces and line breaks to make the smallest working file.

  • Size saved

    Shows the before and after size in bytes so you know what you gained.

  • Your indent style

    Pick 2 spaces, 4 spaces or tabs to match your project's code style.

  • Copy or download

    One click to copy, or save as a .css file ready to upload.

  • Private by design

    Your stylesheet is processed in your browser and never uploaded.

FAQ

Questions,
answered.

6 things people ask before they use the CSS Formatter.

Still stuck? Talk to us or message us on WhatsApp.

CallWhatsAppEnquire