100% Free — No Login Required

Build CSS Media QueriesWithout Memorising Syntax

Select breakpoint presets or set custom ranges, add orientation or print conditions, and get clean, copy-ready CSS media query code instantly — all in your browser.

📱

Breakpoint Presets

One-click presets for common breakpoints — mobile (480 px), tablet (768 px), laptop (1024 px), desktop (1280 px), and wide (1536 px).

🎛️

Custom Ranges

Fine-tune min-width, max-width, or both. Combine with orientation (portrait / landscape), print media, and @supports feature queries.

Instant Code Output

Get clean, formatted CSS output with a live preview that updates as you change settings. Copy to clipboard in one click.

Breakpoint Presets

Conditions

@supports Feature Query (optional)

Live PreviewTablet preset · ≥ 768px · ≤ 1023px
style.css
@media screen and (min-width: 768px) and
       (max-width: 1023px) {
  /* your styles here */
}

Quick Reference

Mobile first@media (min-width: 768px)
Desktop first@media (max-width: 767px)
Range query(min-width: 768px) and (max-width: 1023px)
Retina screens@media (min-resolution: 2dppx)

Common Breakpoints

Mobile portrait< 480px
Mobile landscape≥ 480px
Tablet portrait≥ 768px
Laptop≥ 1024px
Desktop≥ 1280px
Wide screen≥ 1536px

Frequently Asked Questions

Everything you need to know about CSS Media Query Generator.