CSS Generators

Prefix Cleaner

All tools

Clear out years of -webkit- and -moz- declarations from legacy CSS in one paste.

How it works

Four simple steps

1

Paste the stylesheet

Drop in legacy CSS, or load the sample rule.

2

Prefixes are removed

Declarations starting with -webkit-, -moz-, -ms- or -o- are dropped.

3

Restore what you need

Check for prefixes that are still required, such as background-clip text.

4

Copy the clean CSS

Copy the output or download it as a file.

Prefix Cleaner

About Prefix Cleaner

You inherited a stylesheet written in 2014, and every border-radius, transition and box-shadow is repeated three times with vendor prefixes. Modern browsers ignore most of them, and they make the file harder to read and diff. Paste the CSS and get a version without them.

The cleaner removes every declaration whose property starts with -webkit-, -moz-, -ms- or -o-, including its value and semicolon, and collapses the blank lines left behind. It runs on every keystroke, so you can paste a whole file and copy or download the result. Unprefixed declarations, selectors and comments are left as they were.

The removal is deliberately blunt: it does not check whether a prefix is still needed. A handful still matter in current browsers, notably -webkit-background-clip: text for gradient text, -webkit-backdrop-filter for older Safari, -webkit-line-clamp for multi-line truncation and -webkit-text-fill-color. Search the original for those before you replace the file. The tool also leaves prefixed values such as display: -webkit-box, prefixed at-rules like @-webkit-keyframes and pseudo-elements like ::-webkit-scrollbar untouched, because it only matches prefixed property names. After cleaning, the CSS formatter can tidy indentation and the CSS minifier shrinks the file for production.

The stylesheet is processed with a single regular expression in your browser.

Keyboard shortcut

Ctrl Enter - Run tool
FAQ

Frequently asked questions

See all FAQs

Answers for this tool. For site-wide help, open the FAQ hub.

It can. Those effects rely on -webkit-background-clip: text and -webkit-backdrop-filter, and the cleaner removes them along with every other prefixed property. Add them back after cleaning.

No. Only declarations whose property name is prefixed are removed. Prefixed values, @-webkit- at-rules and ::-webkit- selectors stay in the output.

If you have a build step, yes. Autoprefixer adds and removes prefixes based on a browser support list. This cleaner is for quick, one-off cleanup when no build tooling is involved.

View more FAQs

Related tools

View all

Tailwind Class Sorter

Sort Tailwind classes and detect conflicting utilities with a winner explanation.

Open

Design System Diff Lab

Diff design tokens and inspect CSS @layer order and selector specificity locally.

Open

SVG Path Inspector

Parse SVG path commands, preview on canvas, round and minify coordinates.

Open

Flexbox Generator

Build flex layouts visually.

Open

Explore 321 free tools

Everything you need as a developer, marketer or creator - in one beautiful place.

Browse all tools