Omnikit
DevFilesMoneyAll tools
Ctrl K
Dev toolsFile toolsMoney calculatorsAll tools
HomeDeveloper toolsCSS Beautifier & Minifier
EnglishالعربيةবাংলাDeutschEspañolFrançaisPolskiPortuguêsРусский

CSS Beautifier & Minifier

dev

Tidy a stylesheet or minify it, with the size saved shown

Runs in your browser. Nothing you type is sent anywhere. Updated on 25 Oct 2026.

Formatting CSS indents it so a stylesheet can be read, and minifying strips every space and comment for production. The bytes saved are shown, so the gain on a 2 KB file is visible before you decide. Everything runs in your browser and nothing is uploaded.

Next:
  • JavaScript Beautifier & Minifier Beautify JavaScript, or minify it and see how many bytes went
  • PX to REM Converter Convert px to rem or em and back, or turn every px in a stylesheet into rem

How to beautify or minify a CSS file

1

Paste the stylesheet into the CSS box, or press Try an example.

2

Keep Beautify for one declaration per line, or pick Minify for the smallest file.

3

With Beautify, choose 2 spaces, 4 spaces or Tab under Indent.

4

Press Copy or Download to take the result.

About the CSS Beautifier & Minifier

This CSS formatter has two modes. Beautify lays a stylesheet out with one declaration per line, even indentation and consistent spacing around colons and braces. Minify strips comments and whitespace, shortens colours and units, and can merge rules that share the same block, then shows the size before, the size after and the percentage saved.

People reach for it at both ends of a job. At the start, a stylesheet arrives minified from a CDN or a build output and you need to read the rule that is causing a layout problem. At the end, you have a hand-written file and want the smallest version to ship. Both are one paste and one click here.

Minifying uses csso. The restructure option is the aggressive part: it merges rules with identical blocks, removes declarations that a later rule overrides and reorders where that is safe. It usually saves a few more percent and the result is equivalent, but if you are auditing a diff or your CSS depends on source order in ways a tool cannot see, turn it off and only whitespace and comments go. Comments beginning with an exclamation mark, which is where licence headers live, can be kept.

Above the result you get the number of rules, selectors, declarations and at-rules. If a brace, comment or quote is left open, you get the line and column where it started and what to add, rather than a parser dump. Everything runs in your browser, so a stylesheet from an unreleased project is never uploaded anywhere.

Frequently asked questions

Is this CSS minifier free?

Yes. No signup, no file size limit and no cap on how many stylesheets you run through it. The page is supported by a few ads shown outside the tool, and your result is never touched by them.

Is my CSS uploaded anywhere?

No. Beautifying and minifying both run in your browser with JavaScript. A stylesheet from an unreleased design or an internal admin tool never leaves your device, and nothing is kept once you close the tab.

How much smaller does minified CSS get?

A hand-written stylesheet with comments and indentation usually drops 15 to 30 percent, and restructure adds a couple of points more on top by merging duplicate rules. The page shows the exact byte count before and after, so you never have to guess.

What does the restructure option do?

Restructure merges rules that have identical blocks, removes declarations that a later rule overrides, and reorders selectors where that is safe. The extra saving is usually a few per cent on top of plain minification. Turn it off when you want only whitespace and comments removed, for example when you need a readable diff between two builds.

Can I unminify CSS?

Yes. Choose Beautify and paste the minified file. It comes back with one selector per line, one declaration per line and media queries indented inside their block. Selector names, values and order stay exactly as they were.

Will minifying break my stylesheet?

Minifying should not break a valid stylesheet. csso parses the CSS properly rather than using text replacement, so strings, data URIs and custom properties survive. If the file cannot be parsed you get the line and column instead of a broken result, and nothing is copied.

Still stuck? Ask about CSS Beautifier & Minifier and anybody who knows can answer. No account needed.

Common uses

  • CSS MinifierCompress a stylesheet and see exactly how many bytes you saved
  • Unminify CSSExpand a minified stylesheet so you can read and edit the rules

Same job, other tools: JSON Minifier – Strip whitespace from JSON for production · HTML Minifier – Strip comments and spare whitespace from HTML and see the saving · JS Minifier – Shrink a JavaScript file with terser and see the size saved · JavaScript Beautifier – Reformat JavaScript with Prettier, in the indent style you use.

On the related tools: GraphQL Validator – Check a GraphQL query or schema for errors, optionally against your own SDL.

Also works as: CSS Beautifier.

Related tools

All developer tools
Hex Viewer (xxd online)See any file as an xxd hex dump with offsets and text, or turn a hex dump back into a fileGraphQL FormatterFormat, minify and validate GraphQL queries and schemas, with errors by line and columnJSONL Viewer and ValidatorCheck JSON Lines and NDJSON line by line, view records as a table, convert to a JSON arrayJSON Formatter & ValidatorFormat, validate, minify and sort JSON with exact error positionsSQL FormatterFormat and beautify SQL for PostgreSQL, MySQL, SQL Server and moreMarkdown PreviewWrite Markdown and see it rendered live, with tables, task lists and codeHTML Formatter & MinifierIndent messy HTML, or minify it and see the bytes you savedJavaScript Beautifier & MinifierBeautify JavaScript, or minify it and see how many bytes went

In the collection Code Formatters and Minifiers.

Was this tool helpful?
Omnikit

Small jobs, done in your browser. Free, fast and private. Files are never uploaded.

Files

  • Compress Image
  • Image to PDF
  • Merge PDF
  • Compress PDF
  • PDF to Word
  • Word to PDF

Dev

  • JSON Formatter & Validator
  • Base64 Encode & Decode
  • JWT Decoder, Verifier & Encoder
  • Password Generator
  • UUID Generator
  • Unix Timestamp Converter

Money

  • SIP Calculator
  • EMI Calculator
  • GST Calculator
  • FD Calculator
  • PPF Calculator
  • Lumpsum Calculator
EnglishالعربيةবাংলাDeutschEspañolFrançaisPolskiPortuguêsРусский
GuidesQuestionsAboutHow we checkLaw library (beta)PrivacyTermsDisclosureContactMore: Exam practice (UGC NET Paper 1)Runs in your browser. Nothing is uploaded. © 2026 Omnikit (theomnikit.com)