Skip to content

Menu

PostCSS Autoprefixer

Add vendor prefixes to CSS properties

Runs entirely in your browserFrontendFree, no sign-up
Loading tool

01What is PostCSS Autoprefixer?

Vendor prefixes are a chore nobody should do by hand. This page runs the real postcss and autoprefixer npm packages, which load into your browser the first time you paste CSS. So the output matches what an Autoprefixer build step would give you for the same browser targets. Your stylesheet stays in the tab. No server ever sees it. Paste CSS into the Input CSS panel and the prefixed version shows up on the right a moment later. The Browserslist targets field decides which browsers you care about. It starts at defaults, which is Browserslist's own default query. There are one-click presets for last 2 versions, > 0.5%, not dead and Safari 12+, and you can type any other query you like. Autoprefixer reads browser support data from caniuse-lite and adds only the prefixes your targets actually need. It also works in reverse. A stray -webkit-border-radius gets dropped when no target browser needs it any more. It covers more than property names. It prefixes values like position: sticky, selectors like ::placeholder, and whole @keyframes blocks. Here's a quick example. With the defaults query, a { user-select: none; } comes back with -webkit-user-select and -moz-user-select added above the standard line. Switch the targets to last 1 chrome version and the same rule comes back untouched, because current Chrome supports it unprefixed. Point it at safari 8 and display: flex gains display: -webkit-flex. A counter shows how many prefixed declarations and rules were in your input and how many are in the output. Any warnings Autoprefixer raises are listed under the panels, and a CSS syntax error is shown in red with its line number. A few honest limits. The caniuse-lite data is the copy bundled when this site was built, so it can trail a fresh npm install by a few months. The browser build of Browserslist can't read your .browserslistrc or package.json, and it can't answer country-based queries like > 1% in US. The old IE grid translation option is switched off, so -ms-grid output won't appear. And this is a checker, not a replacement for running Autoprefixer in your real build.

Frontend developers who want to see exactly what Autoprefixer will emit for a given Browserslist query before they touch their build config. The tool runs entirely in your browser, so your data never leaves your device.

02How to use PostCSS Autoprefixer

  1. Paste CSS into the Input CSS panel, or load one of the examples.
  2. Set the Browserslist targets field, or click a preset such as last 2 versions.
  3. Read the Prefixed CSS output and the prefix counter.
  4. Check any warnings or syntax errors shown under the panels.
  5. Copy the result into your stylesheet.

03Worked examples

Input: a { user-select: none; } (targets: defaults)
Result: a { -webkit-user-select: none; -moz-user-select: none; user-select: none; }
Output from autoprefixer 10.5.0 with the caniuse-lite data bundled in the repo; newer data can drop prefixes.
Input: a { user-select: none; } (targets: last 1 chrome version)
Result: a { user-select: none; }
The same rule gets no prefixes when the Browserslist query only covers a current browser that supports it unprefixed.
Input: a { display: flex; } (targets: defaults)
Result: a { display: flex; }
Flexbox needs no prefixes for the defaults query, so the CSS is returned unchanged.
Input: a { -webkit-border-radius: 4px; border-radius: 4px; } (targets: defaults)
Result: a { border-radius: 4px; }
Autoprefixer also removes prefixes that the target browsers no longer need.
Input: a { position: sticky; } (targets: safari 12)
Result: a { position: -webkit-sticky; position: sticky; }
Prefixes can apply to values as well as property names.
Input: @keyframes spin { to { transform: rotate(360deg); } } (targets: safari 8)
Result: @-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes spin { ... same body ... }
The whole at-rule is duplicated with a prefix. Second block trimmed here.

04Common use cases

  • Checking which prefixes a stylesheet really needs before shipping it to a client with older iPads
  • Seeing whether position: sticky needs -webkit-sticky for a Safari 12 target
  • Cleaning out hand-written prefixes that no supported browser needs any more
  • Patching a small standalone stylesheet on a site that has no build step
  • Comparing output for defaults versus last 2 versions before changing a team's browserslist entry
  • Showing a junior developer why their flexbox CSS comes back unchanged for modern targets

05Tips

  • For real projects, run autoprefixer in your PostCSS build (Next.js and Vite setups often include it) with a browserslist entry in package.json, so the targets live in one place.
  • With modern targets, defaults adds very few prefixes; if the output looks unchanged, that's usually correct.
  • A CSS syntax error stops processing and is shown in red with its line number.
  • Keep the unprefixed property last when you write prefixes by hand, so it wins in browsers that support both; Autoprefixer already orders them that way.

06Related concepts

Vendor prefixes, Autoprefixer, Browserslist, Browser compatibility, PostCSS.

Frequently Asked Questions

What is PostCSS Autoprefixer?

PostCSS Autoprefixer is a free, browser-based developer tool on AIDToolStack. Add vendor prefixes to CSS properties It requires no installation or sign-up and works entirely in your browser.

Is PostCSS Autoprefixer free to use?

Yes. No sign-up, no fees and no usage cap.

Does PostCSS Autoprefixer store my data?

No. It runs in your browser; nothing is uploaded.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe