Skip to content
Toolars
Explore

CSS Minifier

Minify CSS in a local Worker with a strict parse that names line and column on errors, keeping /*! license comments intact.

Local processing

Processing details

Tool inputs are processed on your device.

Resources may be downloaded to run this tool. Account services are separate.

Offline resources have not been prepared.

Privacy information
Report bug

Task path / input to outcome

How to minify CSS

  1. 01

    Paste the stylesheet

    Paste UTF-8 source up to 256 KiB. The indent control is disabled for Minify.

  2. 02

    Try the sample first

    Sample loaded. Run the local transformation when ready.

  3. 03

    Press Minify

    Press Minify. CSSO removes ordinary comments and compacts CSS without restructuring rules; /*!...*/ comments remain. Check the output in its target layout.

  4. 04

    Check the statistics

    Compare UTF-8 input and output bytes and the savings percentage. A negative saving means the result grew; inspect it before copying or downloading.

  5. 05

    Copy or download the result

    Use Copy result for the clipboard or Download to save toolars.min.css — Copy result is the fast path when the output is headed straight into a style block or a commit. Reset clears the workspace for the next stylesheet.

Tool facts

Processing
In your browser
Input leaves this device
Never
Retention
Nothing is stored
Price
Free

Your input stays in the browser.

CSS Minifier uses its verified local execution path and does not create a hidden input or output history.

Local execution

Runs inside the current browser tab.

No hidden processing

Active tool data never becomes a Toolars document record.

No account required

Use the core workflow without creating a profile. Favorites sync to your account after you sign in.

Immediate reset

Clear the tab and the active working data is gone.

When CSS Minifier is useful

Code reviews

Make source easier to inspect before sharing it with another developer.

Build artifacts

Create compact HTML, CSS, or JavaScript without executing the source.

Copy-ready snippets

Format a focused example and move it directly into documentation or an editor.

What CSS Minifier actually does

A hand-tuned stylesheet has grown through months of edits and needs its production form; a critical-CSS block should shrink before it goes into the document head; a design system release wants a quick before-and-after number. CSS Minifier gives you the compressed output and the exact savings locally, and the strict parse catches the stray brace that would have shipped silently. Run it on every release candidate and keep the readable source in version control; unreleased styles never leave the browser, and no account is required.

Common questions

What does the minifier change?
CSSO compacts syntax and removes ordinary comments; comments beginning /*! are retained. Rule restructuring is disabled, and this tool does not process HTML or JavaScript.
Which comments survive minification?
Only comments that open with /*! — the common convention for license and attribution banners, which stay attached to the output so attribution survives distribution. Ordinary /* */ comments are removed, so move anything you must keep into the /*! form before minifying.
Will minification change how my styles apply?
No browser rendering check runs here. Test the output in the target page, especially fallback order, selectors and custom properties; a successful parse is not proof of identical layout.
Why was my stylesheet rejected?
The CSS is parsed with a strict parser before minifying precisely because the compressor itself is error-tolerant. A typo, an unclosed brace, or an invalid declaration stops the run with the line and column named, instead of producing subtly wrong output. The same strict parse backs the matching CSS formatter in this family.
What are the limits?
Input is limited to 256 KiB and output to 512 KiB. The local Worker has separate five-second startup and run budgets; editing or Cancel stops it. Source stays in this browser; nothing is uploaded.
Is my CSS uploaded anywhere?
No. Source is parsed inside a local Worker and is never executed, uploaded or saved. Parser acceptance is not application correctness or browser compatibility.

Related tasks, not a dead end.

Move into another focused workspace without returning to the full index.

URL Workbench

Clean URL lists with signed-link protection and per-line reasons. Compare components and export sitemaps.

Edit

JSON Explorer

Query JSONPath, extract fields and round-trip JSON Pointer records without losing large-number precision.

Inspect

JSON Schema Validator

Validate Draft 7 or 2020-12 locally with exact error paths; infer schemas from multiple observed samples.

Inspect

HTML Publishing

Clean pasted HTML for publishing while preserving lists, links and table semantics; preview changes safely.

Publish