Responsive design tester

Type a web address and see the page at phone, tablet and desktop widths side by side. Each preview is a real browser window that is exactly the device's width, so your CSS breakpoints switch just as they would on the device.

Sizes
Phones
Tablets
Desktop
px

A frame that stays blank or says the site refused to connect means that site does not allow other pages to show it (more on that below) — use Paste HTML instead.

How it works

What a preview can't copy from a real phone

How we test it

The code that builds each frame is run in Chrome 156 for every size here, upright and on its side, at five zoom settings: 140 frames in all. A small page inside each frame reports its own innerWidth, innerHeight and which media queries match; all must equal the size on the label, and the frame on screen must measure exactly that size times the zoom. Fit-zoom rows are packed into a page 358 and 1088 px wide and must never overflow. A framed page that tries to send the whole tab elsewhere must fail, and pasted HTML must not be able to read this page. 20 typed addresses must come out as expected. Deliberately broken versions — a frame resized instead of scaled, landscape not swapped, a fit zoom that forgets the gaps, a sandbox that lets the frame navigate the tab, pasted HTML allowed to reach this page, javascript: addresses let through — must each be caught.

Questions

Why does a site show its desktop version in the phone frame?

Usually because the site picks its layout from the browser's name (the user agent) rather than the screen width. A frame can't change the user agent. If your own site does this, the frame is showing you a real problem: a narrow desktop window would get the same page.

Is this the same as my browser's device mode?

For layout, yes — both give the page the device's width. Device mode also fakes the touch screen, pixel ratio and user agent, and it isn't blocked by X-Frame-Options. This tester's advantage is seeing several sizes at once, on any browser, including your phone.

Can I test a site on my own computer (localhost)?

Paste its HTML, or open the tester from your own machine. Whether a public https:// page may frame an http://localhost address depends on your browser and its local-network settings, so we don't promise it.

Which widths should I test?

Test the narrowest phone you support (320–360 px), a common phone (390–430 px), a tablet (768–834 px) and a laptop (1280 px or more) — and drag the custom width across each of your breakpoints. Layout bugs hide just above and below them.