Media Query Generator
Build responsive @media rules with breakpoint presets.
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 640pxOutput
@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
CSS Aspect Ratio Calculator
HTML & CSS
Simplify ratios and compute matching dimensions.
CSS Clamp() Calculator
HTML & CSS
Generate fluid typography clamp() CSS from min/max viewport and size.
CSS Scrollbar Styler
HTML & CSS
Design custom scrollbars with live preview.
CSS Transform Playground
HTML & CSS
Combine translate, rotate, scale, and skew with a live preview.
CSS Variables Theme Builder
HTML & CSS
Build a custom property theme with a live preview.
Email Signature Generator
HTML & CSS
Design a professional HTML email signature and copy it into any mail client.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-09 · Runs entirely in your browser