CSS Prefixer
Automatically add vendor prefixes to your CSS
Input CSS
Prefixed CSS
Paste your CSS on the left and the result shows up here.
Or drop a file on this box, , or .
What is a CSS Prefixer?
Browser vendors add experimental CSS features using prefixes like -webkit-, -moz-, -ms-, and -o-. Without these prefixes, your modern CSS won't work in older browsers. This CSS prefixer automatically adds all necessary vendor prefixes to ensure your CSS (Cascading Style Sheets) works across different browsers and versions.
According to MDN Web Docs, vendor prefixes are critical for cross-browser compatibility. Our tool follows the Can I Use database to determine which properties need prefixes, ensuring your styles work on Chrome, Firefox, Safari, Edge, and older browser versions.
Everything runs locally in your browser. No uploads, no servers – just paste your CSS and get prefixed output.
How to Use the CSS Prefixer
The prefixer rewrites the right panel as you type, working from a fixed list of properties it knows have vendor-prefixed twins. Three steps cover it.
Paste, Upload, or Load Sample
Get your CSS into the Input CSS panel by pasting it or with Upload. Sample loads a card that uses flexbox alignment, a transform, a transition and a small pulse animation, every one of which has a prefixed form. A trimmed version:
.subscriber-card {
display: flex;
transform: translateY(-2px);
transition: all 0.3s ease;
} View Prefixed Output
The right Prefixed CSS panel shows output with -webkit-, -moz-, -ms-, and -o- prefixes where needed. Properties like flex, transform, and transition get all necessary prefixed versions for cross-browser support.
Copy or Download
Copy it, or Download it as prefixed.css, and hit Clear when you want an empty slate. Read the result before you commit it: only property names get copies, so display: flex stays as written with no -webkit-box fallback, and rules inside @keyframes are best checked by eye.
When You'd Use This
Cross-Browser Compatibility
Building a site that needs to work on older browsers? Add vendor prefixes to ensure modern CSS features like Flexbox and Grid work everywhere. Essential for enterprise projects with legacy browser support.
Quick Prototyping
Testing CSS animations or transforms across browsers? Prefix your code first to avoid browser-specific issues. Saves time when you're iterating quickly on designs.
Legacy Projects
Maintaining older projects that still support IE11 or older Chrome versions? Add prefixes to new CSS features before deploying. Prevents breaking existing browser support.
Learning CSS
Understanding which CSS properties need vendor prefixes? Use this tool to see which features require prefixing. Educational for developers learning about browser compatibility.
Common Questions
What are vendor prefixes?
Vendor prefixes are browser-specific CSS property prefixes like -webkit-, -moz-, -ms-, and -o-. Browsers use them to implement experimental or non-standard CSS features before they become official standards.
Do I still need prefixes in modern browsers?
For newer features, sometimes. Current browsers handle most standard CSS unprefixed, but a few properties such as backdrop-filter and user-select still want a -webkit- copy for Safari. Check Can I Use for the property you care about.
Which properties need prefixing?
Common ones include transform, transition, animation, the flex properties, user-select, appearance and, for older browsers, border-radius and box-shadow. The tool works from a built-in list of about fifty of these, picked with the MDN notes on vendor prefixes in mind; anything not on the list passes through untouched.
What's the order of prefixed properties?
Prefixed properties should come before the standard property. Our tool follows this convention: vendor prefixes first (-webkit-, -moz-, -ms-, -o-), then the standard unprefixed property last.
Will this make my CSS file larger?
Yes, adding vendor prefixes increases file size. However, the trade-off is browser compatibility. For production, use this with minification and consider using Autoprefixer in your build process.
Is my CSS data safe?
Yes. The prefix list lives inside the page script and the rewriting happens in your tab, so nothing is uploaded. It also means the list is fixed rather than pulled from live Can I Use data, which is what Autoprefixer does inside a build.
Related CSS Tools
Prefixing is just one part of CSS development. Here are other tools that might help: