consolelog.tools

Browserslist Config Generator

Create .browserslistrc files for browser compatibility targeting used by Babel, Autoprefixer, and PostCSS

About this ToolHow it works, benefits & use cases

The Browserslist Config Generator assembles a .browserslistrc file from selectable queries — the shared target-browser config read by Babel, Autoprefixer, PostCSS, and ESLint. Instead of remembering query syntax, you build the file from a dropdown of common queries (last 2 versions, > 0.5%, not dead, last 2 Chrome versions, Firefox ESR, IE 11, last 2 iOS versions, not op_mini all, and more), adding or removing rows as needed. Four presets load curated query sets in one click: Modern targets the last two versions of Chrome, Firefox, Safari, and Edge; Legacy reaches back to IE 11 and broad market share; Production uses > 0.2%, not dead, not op_mini all; and Development targets only the latest of the major engines. Output updates live as you edit — one query per line — and downloads as .browserslistrc. Your configuration is saved in the browser, and a reference panel reminds you how the file is consumed.

How to Use

  1. 1Click a preset — Modern, Legacy, Production, or Development — to load a ready query set, or start from the default.
  2. 2Use "Add query" to append a row, then pick a query from the dropdown of common Browserslist queries.
  3. 3Remove any query with its trash button; the live output updates as soon as one valid query exists.
  4. 4Copy the generated .browserslistrc or download it to your project root.
  5. 5Optionally add a "browserslist" key to package.json instead, then verify with npx browserslist.

Key Benefits

  • Builds .browserslistrc from a curated dropdown of common queries — no syntax to memorize
  • Four one-click presets: Modern, Legacy, Production, and Development
  • Live output that updates one-query-per-line as you add or remove rows
  • Produces config consumed by Babel, Autoprefixer, PostCSS, and ESLint
  • Add or remove individual queries to fine-tune your target set
  • Downloads directly as .browserslistrc and configuration persists in the browser
  • Reset button and a reference panel explaining how the file is used

Common Use Cases

  • Standardizing target browsers across a project's build toolchain
  • Loosening targets to support legacy browsers including IE 11
  • Tightening a production config to drop dead and Opera Mini browsers
  • Using a lean development target for faster local builds
  • Generating the shared config that Autoprefixer uses to add CSS prefixes

Presets

Browser queries

Updates live as you edit — save as .browserslistrc in your project root

last 2 versions
not dead

What is Browserslist?

  • Used by Babel, Autoprefixer, PostCSS, and ESLint to determine target browsers
  • Save as .browserslistrc in project root, or add a "browserslist" key to package.json
  • Tools will automatically pick up the configuration
  • Use npx browserslist to see which browsers match your queries

Was this tool helpful?

Share Your Experience

Help others discover this tool!

Related guide

Related tools