UseToolSuite UseToolSuite

Responsive Breakpoint Previewer

Free online responsive design tester with real device presets. Preview HTML or URLs at iPhone, iPad, Samsung, Pixel, MacBook, and desktop sizes. See active Tailwind/CSS breakpoints and media query status in real time.

Last updated

Responsive Breakpoint Previewer is a free, browser-based tool from UseToolSuite's Color & CSS Tools collection. All processing happens locally on your device — your data is never uploaded to any server. Use the tool below, then scroll down for detailed documentation, frequently asked questions, and related resources.

Advertisement
Mobile:
Tablet:
Desktop:
×
Breakpoints: xs:320 sm:640 md:768 lg:1024 xl:1280 2xl:1536
375 × 667
Select a device preset to see active breakpoints.

What is Responsive Breakpoint Previewer?

Responsive Breakpoint Previewer is a free online tool that lets you preview HTML content or URLs at different screen sizes using real device dimensions. Select from preset devices — including iPhone, iPad, Samsung Galaxy, Pixel, MacBook, and desktop displays — or enter a custom width and height. The tool renders your content in an iframe at the exact pixel dimensions and shows which CSS/Tailwind breakpoints are active at that size. It supports both HTML input (paste any markup) and URL input (for sites that allow iframe embedding), with a rotate button for portrait/landscape switching. All rendering happens locally in your browser.

When to use it?

Use the Responsive Breakpoint Previewer when building responsive layouts and you want to quickly test how your HTML looks at specific device sizes without opening Chrome DevTools, when verifying that Tailwind breakpoint classes apply correctly at different widths, or when demonstrating responsive behavior to clients or team members using real device names and dimensions.

Common use cases

Front-end developers use the Responsive Breakpoint Previewer to test responsive layouts at exact device widths during development, verify that Tailwind responsive utilities (sm:, md:, lg:) activate at the expected breakpoints, preview email templates at common email client widths, check that navigation menus collapse correctly at mobile breakpoints, compare how the same content renders across mobile, tablet, and desktop viewports, and generate accurate screenshots at specific device dimensions for design review or documentation.

Common responsive breakpoints in 2026

Modern frameworks use consistent breakpoint ranges: 320-480px for mobile portrait, 481-768px for tablets and large phones, 769-1024px for small laptops and landscape tablets, 1025-1440px for desktops, and 1441px+ for large monitors. Tailwind CSS defaults are sm:640px, md:768px, lg:1024px, xl:1280px, and 2xl:1536px. Bootstrap uses 576px, 768px, 992px, 1200px, and 1400px. Rather than targeting specific devices, design for content breakpoints — add a breakpoint wherever your layout breaks, not at arbitrary device widths. This previewer lets you test at any custom width to find exactly where your design needs adjustment.

What the previewer is for

Seeing your layout at a phone, tablet, and desktop width simultaneously catches responsive bugs far faster than dragging a browser window. The device presets use real CSS viewport dimensions (an iPhone 14 is 390×844 CSS pixels, not its 1170×2532 hardware pixels) — and CSS viewport pixels are exactly what media queries and breakpoints respond to, so the breakpoint behavior you see here matches a real device’s. Rotate to swap width and height and watch how breakpoints change orientation, just like a real handset.

How framework breakpoints line up

If you use Tailwind, its mobile-first prefixes map to min-width queries:

PrefixMin widthTypical device
(none)0All sizes / mobile base
sm:640pxLarge phones
md:768pxTablets
lg:1024pxSmall laptops
xl:1280pxDesktops
2xl:1536pxLarge desktops

This tool highlights which breakpoints are active at the current width, so you can see at a glance which responsive classes will apply.

Why some URLs won’t load

If you paste a live URL and get a blank frame, the site is almost certainly sending X-Frame-Options: DENY or Content-Security-Policy: frame-ancestors 'none' — a security measure that blocks embedding in an iframe (most large sites do this). It’s not a bug in the previewer. The workaround is HTML mode: open the page, copy its source, and paste it in to preview your own markup without the iframe restriction.

Media queries vs container queries

A modern caveat: media queries respond to the viewport, but components increasingly need to respond to their container (a card that’s narrow in a sidebar but wide in the main column). That’s what container queries solve, and they can’t be exercised by viewport-resizing alone. For component-level responsiveness, pair what you see here with container queries (and the container query units cqi/cqw from the CSS Units Converter). Use the previewer for page-level breakpoints; reach for container queries when a component must adapt to its own width regardless of screen size.

How helpful was this tool?

Click to rate

Advertisement

Key Concepts

Essential terms and definitions related to Responsive Breakpoint Previewer.

Viewport

The visible area of a web page in the browser window. On mobile devices, the viewport width is set by the <meta name="viewport"> tag. The CSS viewport size (measured in CSS pixels or device-independent pixels) is what CSS media queries respond to — not the physical screen resolution. Understanding the viewport is essential for responsive web design.

CSS Breakpoint

A specific viewport width at which a responsive layout changes its structure or styling. Breakpoints are implemented using CSS @media queries with min-width or max-width conditions. Common breakpoint widths follow device categories: ~640px (large phones), ~768px (tablets), ~1024px (small laptops), ~1280px (desktops). Tailwind CSS uses sm, md, lg, xl, 2xl as breakpoint prefixes.

Media Query

A CSS feature that applies styles conditionally based on device characteristics like viewport width, height, orientation, color scheme, or resolution. The most common pattern is @media (min-width: 768px) { } which applies styles only when the viewport is 768px or wider. Media queries are the foundation of responsive web design.

Device-Independent Pixel (DIP)

An abstract pixel unit used by CSS that may map to multiple physical hardware pixels. On a 2x Retina display, 1 CSS pixel = 4 physical pixels (2×2 grid). The ratio between physical pixels and CSS pixels is the device pixel ratio (window.devicePixelRatio). All viewport dimensions and CSS measurements use device-independent pixels, which is why an iPhone 14 has a CSS width of 390px despite a physical resolution of 1170px.

Frequently Asked Questions

Why can't I preview some URLs?

Many websites set the X-Frame-Options or Content-Security-Policy HTTP headers to prevent their pages from being loaded inside iframes. This is a security measure to prevent clickjacking attacks. When a site blocks iframe embedding, the preview will show a blank page or an error. Solution: use the HTML mode — copy the page source or paste your own HTML to preview it without iframe restrictions.

Are the device dimensions accurate?

Yes. All device presets use the CSS viewport dimensions (device-independent pixels) reported by each device's browser. For example, iPhone 14 is 390×844 CSS pixels (not the physical resolution of 1170×2532 hardware pixels). These are the dimensions that CSS media queries and responsive breakpoints respond to.

How do Tailwind CSS breakpoints work?

Tailwind uses a mobile-first breakpoint system with min-width media queries: sm (≥640px), md (≥768px), lg (≥1024px), xl (≥1280px), 2xl (≥1536px). Styles without a breakpoint prefix apply at all sizes. This tool highlights which breakpoints are active at the current preview width, making it easy to understand which responsive classes will apply.

Can I preview custom HTML with CSS frameworks?

Yes. In HTML mode, you can paste complete HTML including <link> tags to external stylesheets, inline <style> blocks, and <script> tags. The HTML is rendered in a sandboxed iframe, so your CSS framework (Tailwind, Bootstrap, etc.) will load and apply normally. Include the CDN link in your HTML to test with any framework.

What is the difference between portrait and landscape orientation?

The Rotate button swaps the width and height values. For example, iPhone 14 in portrait is 390×844, and in landscape it becomes 844×390. This is the same behavior as rotating a physical device. CSS media queries respond to the new width, so breakpoints may change when you rotate — exactly as they would on a real device.

Is previewing at device sizes the same as testing on a real device?

No — it's a fast, useful approximation, not a substitute. This tool renders your page at a device's CSS viewport dimensions, so it accurately shows which breakpoints and media queries fire and how the layout reflows. But it can't reproduce everything a real device does: actual touch interactions and tap-target sizing, real rendering-engine quirks (iOS Safari behaves differently from desktop Chrome even at the same width), performance on slower hardware, the dynamic mobile address bar that changes viewport height, device pixel ratio and image sharpness, system fonts, and platform-specific input behaviors. Use the previewer for rapid layout iteration across many sizes, then confirm critical flows on real hardware (or at least the browser's own device-emulation with touch and throttling) before shipping. Layout is what this tool nails; feel and performance need a real device.

Should I design mobile-first, and how does that map to breakpoints?

Yes, mobile-first is the recommended approach, and it maps directly to min-width media queries. You write your base styles for the smallest screen (no media query), then ADD complexity at larger widths with min-width breakpoints: the base CSS is mobile, @media (min-width: 768px) layers on tablet adjustments, @media (min-width: 1024px) adds desktop. This is the opposite of desktop-first (max-width queries that strip things away as screens shrink). Mobile-first wins because it forces you to prioritize essential content, produces simpler base CSS, and matches how frameworks like Tailwind work (unprefixed = all sizes, sm:/md:/lg: = and up). Choose breakpoints based on where YOUR content breaks, not specific device models — resize until the layout looks awkward, and put a breakpoint there.

Troubleshooting & Technical Tips

Common errors developers encounter and how to resolve them.

Preview shows blank white page for URL mode

The website likely blocks iframe embedding via X-Frame-Options: DENY or Content-Security-Policy: frame-ancestors 'none' headers. Most major websites (Google, Facebook, GitHub) enforce this restriction. Use HTML mode instead: open the target URL in a new tab, view source (Ctrl+U), copy the HTML, and paste it into the HTML input for local preview.

CSS media queries not responding to preview width changes

CSS media queries inside an iframe respond to the iframe's own width, not the parent page width. If your media queries appear unresponsive, verify that the iframe width matches the expected breakpoint by checking the dimension display above the preview. Also ensure your media queries use min-width (not device-width) as this is the modern responsive design approach.

External fonts or images not loading in HTML preview

When using HTML mode with srcdoc, relative URLs for fonts, images, and stylesheets will not resolve because there is no base URL. Use absolute URLs (starting with https://) for all external resources. For Google Fonts, include the full <link> tag. For images, use complete URLs or base64 data URIs.

Advertisement

Related Tools