JSON to YAML
Convert JSON to clean, correctly quoted YAML in one step.
Build media queries with framework breakpoints and modern features.
The Media Query Generator builds queries from framework breakpoints in both the modern range syntax and the traditional form, and covers the preference features that now improve a site more than another width breakpoint does.
Build a media query from breakpoints, orientation and the preference features that now matter as much as width. The breakpoint sets from Tailwind, Bootstrap, Bulma and Foundation are built in, so a query matches whatever the project already uses.
Both syntaxes are generated. The range form — (width >= 768px) — is far more readable than min-width and is supported everywhere current, and the traditional form is produced alongside for anything older. Beyond width there are the queries that improve a site more than another breakpoint does: prefers-color-scheme, prefers-reduced-motion, prefers-contrast, hover and pointer — the last two being how you tell a touch device from a mouse without guessing at screen size.
Tailwind, Bootstrap, Bulma and Foundation, so a query matches what the project already uses.
(width >= 768px) alongside the traditional min-width form, since the range version reads as what it means.
prefers-color-scheme, prefers-reduced-motion and prefers-contrast — often worth more than another breakpoint.
How to tell a touch device from a mouse without guessing at screen width, which is what everyone actually wants.
Which common widths a query covers, as a sanity check rather than as a target to design for.
Tailwind, Bootstrap, Bulma, Foundation, or your own values.
Width, height, orientation, aspect ratio and the preference features.
The modern range form, or the traditional min-width and max-width.
With the device widths it covers listed, as a sanity check.
Yes. Write the base styles for small screens and add complexity with min-width. It produces less CSS, it degrades better, and it matches how browsers apply overrides.
(width >= 768px) instead of (min-width: 768px). It reads as what it means, it can express a range in one condition, and it is supported in every current browser.
Because vestibular disorders are real and large animations cause genuine nausea. Respecting the setting costs one media query and is the single highest-value accessibility change most sites can make.
No. There are too many and the widths change every year. Set breakpoints where your own layout starts to break — the device list here is a sanity check, not a target.
What people who use the Media Query Generator think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the Media Query Generator. It takes half a minute and no account.
Write the first reviewConvert JSON to clean, correctly quoted YAML in one step.
Convert between bytes, KiB, MB, GB and bits, in both systems.
Generate HMAC signatures with SHA-1, SHA-256, SHA-384 or SHA-512.
Draft a GraphQL type definition from a sample JSON response.
Build an HTTP Basic Authorization header from a username and password.
Convert CSV rows into XML records with named root and row elements.
AND, OR, XOR, shifts and rotates, at 8 to 64 bits, shown in binary.
Break an emoji into its code points, modifiers and joiners.