Media Query Generator

Build responsive @media rules with breakpoint presets.

Support
Works Offline
Privacy First
No Login
No API

Breakpoint presets

Rules inside the query

Generated media query

About the Media Query Generator

Generate CSS @media queries using min-width, max-width, or a combined range, plus optional orientation. Choose from common device breakpoint presets, write the rules that go inside, and copy the full generated query.

Examples

Mobile breakpoint

max-width 640px

Output

@media (max-width: 640px) { .element { color: royalblue; } }

Keyboard shortcuts

  • Copy the main outputCtrl / ⌘ + Shift + C
  • Download the resultCtrl / ⌘ + S
  • Share this toolCtrl / ⌘ + Shift + S
  • Reset the inputsAlt + R
  • Open the tool search paletteCtrl / ⌘ + K

Related tools

Frequently asked questions

Version 1.0.0 · Updated 2026-08-09 · Runs entirely in your browser