Media Query Builder

Your workspaceProcessed on your device
Media query rules
Viewport match preview

The preview evaluates query conditions with the browser. Your declarations remain export text.

Generated output

A few things to know.

Up to 12 queries, using px, em or rem for typed dimensions. The preview uses the browser's real viewport matching and keeps entered declarations inert. Browser-dependent features match the running browser's environment. Input stays on your device.

  1. Load Two breakpoints, then set Preview width to 599, 600 and 900 pixels. Check which rules match at each boundary.
  2. Choose screen, print or all, set the condition and units, and edit the target class and its declarations. Arrange the rules in cascade order.
  3. Copy or download the selected rule or complete stylesheet.