CSS Autoprefixer
Automatically add vendor prefixes (-webkit-, -moz-, -ms-) to your CSS for cross-browser compatibility.
Prefixed CSS will appear here...About Autoprefixer
CSS Autoprefixer is a free online tool that scans your stylesheet declarations and inserts the correct vendor-prefixed copies before each property that requires them. Properties like transform, user-select, flex, animation, and backdrop-filter each need different prefix variants for different browser engines. Instead of memorising which engine needs which prefix, you paste your modern unprefixed CSS and the tool produces a ready-to-ship file with -webkit-, -moz-, and -ms- variants in place.
The tool covers more than 40 CSS properties across flexbox, transforms, transitions, animations, masking, writing modes, and more. It also handles @keyframes blocks by duplicating them as @-webkit-keyframes so that animation sequences work in older WebKit browsers without any extra steps on your part. This is particularly useful when you are targeting Safari on older iOS devices or maintaining a codebase that must support legacy browser versions alongside modern ones.
Every operation runs entirely in your browser — no CSS is uploaded, stored, or sent to a server. You can safely prefix internal design-system stylesheets, client work, or any code you would normally hesitate to paste into a third-party service. The tool is free with no sign-up required and no usage limits.
Key Features
Covers 40+ CSS properties
The prefix map includes flexbox, transforms, transitions, animations, masking, user-select, clip-path, backdrop-filter, writing-mode, and more — properties that still require vendor variants for older browser targets.
@keyframes duplication for WebKit
Animation blocks are automatically cloned as @-webkit-keyframes, so fade, slide, and scale animations work on older Safari and iOS versions without a separate manual copy.
Prefixes inserted before the original
Each vendor-prefixed line appears immediately before the unprefixed declaration, following the correct cascade order so the standard property always takes final precedence.
Only adds what each property actually needs
The tool applies only the prefix variants that a property genuinely requires. A property needing just -webkit- will not receive an unnecessary -ms- line, keeping output clean and accurate.
Stats bar confirms what changed
After each run, a counter shows exactly how many prefixed declarations were added, giving you a quick sanity-check without manually diffing the output.
Entirely client-side with no data upload
Processing happens in your browser via JavaScript. Proprietary stylesheets, unreleased design systems, and client code never leave your machine.
How to Use
Paste Your CSS
Copy your CSS code into the input editor on the left, or click "Sample" to load an example stylesheet with properties that need vendor prefixes.
Click Prefix
Hit the "Prefix" button to automatically add all necessary vendor prefixes. The stats bar will show how many prefixed properties were added.
Copy the Result
Use the copy button to grab your prefixed CSS and paste it into your project, ready for cross-browser compatibility.
Example
Vendor-prefixed declarations are inserted before each unprefixed property. Both user-select and transform receive the correct -webkit-, -moz-, and -ms- variants.
.btn {
user-select: none;
transform: scale(1.05);
} .btn {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-transform: scale(1.05);
-ms-transform: scale(1.05);
transform: scale(1.05);
} Common Use Cases
- arrow_circle_right
Shipping stylesheets that must support older Safari
Older versions of Safari on iOS and macOS require -webkit- prefixes for flexbox, transitions, and animations. Autoprefixing catches these gaps automatically so you do not have to audit every declaration by hand.
- arrow_circle_right
Fixing cross-browser bugs in legacy enterprise products
Internal tools often run on a locked browser version. Paste the stylesheet from a legacy product and instantly see which unprefixed declarations may be silently ignored in that environment.
- arrow_circle_right
Preparing CSS before removing a build-tool pipeline
If you are removing PostCSS or a bundler from a project and want to keep backward compatibility, run the final stylesheet through this tool to bake the prefixes directly into the output file.
- arrow_circle_right
Quick checks during code review
When reviewing a pull request that adds new CSS properties, paste the changed rules here to verify no necessary prefix was overlooked before the diff lands in production.
- arrow_circle_right
Learning which properties still need prefixes
The stats bar and output diff make this a useful reference tool: paste any CSS rule and see at a glance which vendor variants are still required in 2024 and which properties are safe to use unprefixed.