consolelog.tools logo

Media Query Generator

Generate responsive media queries for different devices and breakpoints

Query Builder

Generated Query

@media (min-width: 768px) {
  /* Your styles here */
}

Common Breakpoints

Mobile (Portrait)
480px
Mobile (Landscape)
481px+ - 767px
Tablet (Portrait)
768px+ - 991px
Tablet (Landscape)
992px+ - 1199px
Desktop
1200px+ - 1919px
Large Desktop
1920px+

Framework Breakpoints

Template
@media (min-width: 640px) {
  /* Small devices */
}

@media (min-width: 768px) {
  /* Medium devices */
}

@media (min-width: 1024px) {
  /* Large devices */
}

@media (min-width: 1280px) {
  /* Extra large devices */
}

@media (min-width: 1536px) {
  /* 2X large devices */
}

Device-Specific Queries

i Phone
@media only screen and (min-device-width: 375px) and (max-device-width: 428px) and (-webkit-min-device-pixel-ratio: 2)
i Pad
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2)
retina
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi)
print
@media print
dark Mode
@media (prefers-color-scheme: dark)
light Mode
@media (prefers-color-scheme: light)
reduced Motion
@media (prefers-reduced-motion: reduce)
high Contrast
@media (prefers-contrast: high)
touch
@media (hover: none) and (pointer: coarse)
mouse
@media (hover: hover) and (pointer: fine)

Complete Responsive Template

@media (max-width: 480px) {
  /* Small phones */
}

@media (min-width: 481px) and (max-width: 767px) {
  /* Phones in landscape */
}

@media (min-width: 768px) and (max-width: 991px) {
  /* Tablets and small laptops */
}

@media (min-width: 992px) and (max-width: 1199px) {
  /* Tablets in landscape */
}

@media (min-width: 1200px) and (max-width: 1919px) {
  /* Desktop screens */
}

@media (min-width: 1920px) {
  /* Large desktop screens */
}

Was this tool helpful?

Share Your Experience

Help others discover this tool!

Frequently Asked Questions - Media Query Generator