Start a project

Tool 98 of 425 · Responsive CSS

Media Query Range Builder

Builds range-syntax media queries, converts legacy min/max queries and shows which common widths each query matches.

Media Query Range Builder

Your input

Result

Screen widthMatches
CSS
Converted

    01

    What it does

    Builds range-syntax media queries, converts legacy min/max queries and shows which common widths each query matches.

    • width, height, aspect-ratio and resolution
    • Converts min-/max- queries, including .98px hacks
    • Matches against seven common widths
    • Legacy equivalent for old browsers

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    Modern and legacy CSS, with a Copy and a Download button on every result.

    • Media queries
    • Range syntax
    • Responsive

    Why it matters

    Range syntax reads like maths and removes the 0.02px gaps that min-width and max-width pairs need. It is supported by every current browser.

    Paste your old breakpoints to get the modern version, or build a new range and check which devices it hits.

    How to use it

    1. Type or paste your input; the example shows the format.
    2. Press Build query. Results also update as you type.
    3. Read the summary line, then the table, notes or output below it.
    4. Copy or download what you need. Nothing leaves this page.

    FAQ

    Is range syntax safe to use?

    Yes for current browsers: Chrome 104, Firefox 63 and Safari 16.4 all support it. Keep the legacy form only if you support older Safari.

    Is my input uploaded?

    No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.

    Can I rely on the result?

    It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk