Media Query Generator

Build responsive @media rules with breakpoint presets.

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; } }

Related tools

Frequently asked questions

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