Build a website that works consistently across Chrome, Firefox, Safari, and older browsers without manually writing vendor prefixes.
Automatically clean up outdated browser prefixes from legacy CSS when you update your target browser support.
Integrate CSS processing into your build pipeline so prefixes are added during development or deployment.
Configure your project to support specific browsers (e.g., 'last 2 versions' or 'browsers with >5% market share') and have prefixes applied accordingly.
Autoprefixer is a tool that solves an annoying part of writing CSS: the need to repeat the same rule several times with different "vendor prefixes" so that older or non-standard browsers will understand it. Vendor prefixes are little tags like -webkit- or -moz- that browser makers historically attached to experimental CSS features. With Autoprefixer, you write plain modern CSS and the tool adds the extra prefixed lines for you, based on which browsers you actually care about supporting. The way it works is as a PostCSS plugin, PostCSS being a system for parsing and transforming CSS through plugins. Autoprefixer parses your stylesheet and consults the Can I Use database, which tracks which CSS properties and values are supported in which browser versions. It then adds the prefixed variants only where they are still genuinely needed. The browsers you target are configured through a tool called Browserslist, typically using a .browserslistrc file or a browserslist key in package.json, with queries such as "> 5%". The README emphasises sharing that config with other tools like babel-preset-env and Stylelint. So for example, a rule using ::placeholder or width: stretch gets expanded automatically to include -moz-placeholder, -webkit-fill-available, and -moz-available alongside the standard rule. You would use Autoprefixer any time you maintain a CSS codebase that needs to work across a range of browsers and you don't want to manually track which features still require which prefixes. The README notes it is recommended by Google and used at companies like Twitter and Alibaba. It also covers special cases: it can optionally translate modern CSS Grid syntax into the older IE 10 and IE 11 syntax (off by default, with limitations described in detail in the README), and it does not add JavaScript polyfills, only CSS prefixes. There are integrations for Gulp, webpack, CSS-in-JS, a command line interface, other build tools, preprocessors, GUI tools, and editors. The project itself is written in JavaScript. The full README is longer than what was provided.
Generated 2026-05-21 · Model: sonnet-4-6 · Verify against the repo before relying on details.