Skip to content
Ovatly

Media Query Builder

100% PrivateWebsite & Webmaster Tools

Assemble responsive CSS media query snippets from common device breakpoint presets.

Runs entirely in your browser. Your input is not uploaded to Ovatly or anywhere else.

  1. 1Optionally choose a device preset to fill in typical widths.
  2. 2Adjust min and max width or height in pixels; leave a field empty for no limit.
  3. 3Choose the media type and, if needed, an orientation.
  4. 4Copy the @media block and replace the placeholder comment with your CSS.

About this tool

The Media Query Builder assembles responsive breakpoint snippets: start from a common device preset or enter exact pixel widths and heights, add an orientation condition, and get a complete @media block ready to paste into a stylesheet. Presets are labeled as the conventions they are, because no standards body defines phone or tablet widths.

Related tools

Advertisement

Part of Ovatly's free tools in Website & Webmaster Tools.