consolelog.tools

Mobile Breakpoint Tester

Drag a test width along a live ruler to see exactly which named breakpoint a device lands in — then copy the matching CSS @media, container queries, SCSS map + mixin, Tailwind v3/v4 config, or a typed JS object. Start from Tailwind, Bootstrap 5, Material 3, or Bulma, or build a custom mobile-first set in px or rem.

About this ToolHow it works, benefits & use cases

Most breakpoint references just list numbers in a table. This tester is interactive: drag a test width along a live ruler and watch which named breakpoint a device actually lands in, then copy out the exact code that matches your set. It is mobile-first by design, so every breakpoint is a name plus a min-width (the way Tailwind, Bootstrap, Material 3, and Bulma really define them) and the active breakpoint for any width is the largest min-width at or below it. Pick a framework preset or build a fully custom set: add, rename, and re-size breakpoints in px or rem. The sticky output panel shows the active breakpoint, a colored segment ruler with a draggable marker, and a scaled device-frame preview, plus generated CSS @media queries, container queries, an SCSS map with a respond-to mixin, Tailwind v3 and v4 config, or a typed JavaScript object. A device catalogue lets you jump the test width to any common phone, tablet, or desktop in one click, and the whole configuration lives in a shareable URL.

How to Use

  1. 1Pick a framework — Tailwind CSS, Bootstrap 5, Material 3, or Bulma — or choose Custom to start editing.
  2. 2Drag the ruler marker or move the test-width slider to see which named breakpoint that width falls into.
  3. 3Click a device in the catalogue to snap the test width to that device exact CSS width.
  4. 4Edit the breakpoint list: rename, set a new min-width, add, or remove rows (this switches the set to Custom).
  5. 5Switch the unit to rem and set a rem base if you want scalable breakpoints, then choose an export format.
  6. 6Copy the generated CSS, SCSS, Tailwind config, or JS object, or share the URL to hand the exact setup to a teammate.

Key Benefits

  • Live ruler with a draggable marker shows exactly which breakpoint any width activates
  • Four canonical framework presets plus a fully editable custom set
  • Six export targets: CSS @media, container queries, SCSS map + mixin, Tailwind v3, Tailwind v4, and a typed JS object
  • px or rem output with a configurable rem base, applied consistently across every format
  • A scaled device-frame preview and a list of which catalogue devices land in the active breakpoint
  • One-click device jumps for common phones, tablets, and desktops
  • Mobile-first min-width model that matches how real CSS frameworks work
  • Entire configuration captured in a shareable URL

Common Use Cases

  • Deciding the right breakpoint to use when a layout breaks at a specific device width
  • Generating a consistent breakpoint set for a new design system in CSS, SCSS, or Tailwind
  • Migrating an existing px breakpoint scale to rem so it scales with user font-size
  • Producing container-query equivalents of your media-query breakpoints
  • Checking whether a given phone or tablet falls into your sm, md, or lg tier
  • Sharing a proposed breakpoint set with a teammate via a single URL

Active breakpoint at 390px

base

no media query (base styles)

Breakpoint ruler

sm
md
lg
xl
2xl
390
01690px

Preview at 390px

css · breakpoints.css

/* Mobile-first breakpoints (min-width) */

/* sm >= 640px */
@media (min-width: 640px) {
  /* ... */
}

/* md >= 768px */
@media (min-width: 768px) {
  /* ... */
}

/* lg >= 1024px */
@media (min-width: 1024px) {
  /* ... */
}

/* xl >= 1280px */
@media (min-width: 1280px) {
  /* ... */
}

/* 2xl >= 1536px */
@media (min-width: 1536px) {
  /* ... */
}

Framework

Tailwind v3/v4 default screens — sm, md, lg, xl, 2xl.

Test width & units

px

Breakpoints

px
px
px
px
px

Devices in base

No catalogue devices fall in this range.

Jump to a device

phones

tablets

desktops

Mobile-first, min-width breakpoints

Every modern CSS framework defines breakpoints as min-widths and styles up from the smallest screen. A breakpoint named md at 768pxmeans “768px and wider.” This tester treats your set the same way: the active breakpoint for any width is the largest min-width at or below it, and anything below your first breakpoint is the un-prefixed base range.

px or rem?

Tailwind v4 ships its default screens in remso they scale with the user’s root font-size, which is friendlier to people who bump up their browser text size. Toggle the unit here and every generated artifact — CSS, SCSS, Tailwind config, JS — converts against your chosen rem base.

Was this tool helpful?

Share Your Experience

Help others discover this tool!

Related tools