You’ll see it on a phone, tablet, laptop and desktop at once
4 devices
Responsive HTML Viewer – Test Phone, Tablet and Desktop at Once
What is a Responsive HTML Viewer?
It shows the same HTML on several screen sizes at the same time: a phone, a tablet, a laptop and a big desktop
monitor, side by side. Instead of dragging your browser window narrower and wider over and over, you paste your
code once and see every layout next to each other.
Each frame is a real viewport of that exact size, so your media queries, flexbox and grid react just like they
would on the device. The frames are then shrunk with a CSS transform so they fit on your screen. That makes it
quick to spot the classic problems: a menu that doesn’t collapse, a sideways scrollbar on the phone, or a
sidebar that should have dropped below the content. Your HTML runs in a sandbox in your browser and isn’t sent
anywhere.
How to Use It – Step by Step
Five short steps. Click Sample above if you want something to play with first.
Step 1 Paste or Open Your HTML
Get your page into the left panel:
Paste it: a full page or a snippet, with its CSS in a <style> tag.
Open a file: click the upload button, or drag an .html file onto the tool.
Click Sample: a small coffee shop page. Its badge says which layout each screen gets, so
you can see the breakpoints at work.
Make sure the page has the viewport tag in its <head>. Without it, real phones pretend to
be a 980px desktop and shrink everything:
Click Phone, Tablet, Laptop or Desktop in
the bar above the previews to show or hide them. A green dot means it’s on. Fewer devices means each one gets
more room, so turn off the ones you’re not working on.
Phone375 × 667
Tablet768 × 1024
Laptop1366 × 768
Desktop1920 × 1080
Step 3 Rotate the Phone and Tablet
The small rotate button next to the phone and the tablet turns them sideways. A phone in landscape is 667px
wide, which is often wider than your phone breakpoint, so it’s a good place to catch a layout that jumps
between two styles. In the Sample, the phone switches from 1 column to 2 when you rotate it.
Step 4 Zoom In and Try Your Scripts
Fit shrinks every device by the same amount, so their sizes stay true to each other. Great
for comparing layouts.
50% / 100% show the devices bigger, so you can read the text. Scroll sideways in the preview
to move between them, or click Maximize to use the whole window.
JavaScript lets scripts run (each device runs its own copy). Untick it to see the page with
scripts off.
Step 5 Fix It and Watch Every Size Update
Edit the code on the left and all the devices update a moment after you stop typing. Most fixes are a media
query: a rule that only applies below (or above) a certain width. Here’s a card grid that goes from 3 columns
to 2 on tablets and 1 on phones:
For layout, it’s very close. Each frame is a real viewport of that width and height, so your media queries, flexbox and grid behave exactly as they would on a device that size. What it can’t copy is the rest of the phone: its fonts, touch behaviour, the browser’s address bar and its quirks. Use this to catch layout problems fast, then check important pages on a real phone before you ship.
Why does my page look the same in every frame?
Usually because the CSS has fixed widths (like width: 1200px) or no media queries, so nothing changes when the screen gets smaller. Also check that the page has <meta name="viewport" content="width=device-width, initial-scale=1"> in its <head>. Real phones need that tag to use their own width instead of pretending to be a 980px desktop.
Which screen sizes do the devices use?
Phone is 375×667 (a common small iPhone size), Tablet is 768×1024 (an iPad in portrait), Laptop is 1366×768 (the most common laptop screen) and Desktop is 1920×1080 (a full HD monitor). The rotate button on the phone and the tablet swaps width and height, so you can check landscape too.
The frames are tiny. How do I read the text?
Fit mode shrinks every device by the same amount so they all fit next to each other, which is great for comparing layouts but makes text small. Switch the zoom to 50% or 100% to see the real size and scroll sideways in the preview, turn off the devices you don’t need, or click Maximize to give the frames the whole window.
Does my JavaScript run in the frames?
Yes, as long as the JavaScript box is ticked. Each frame runs its own copy of the page in a locked-down sandbox, so it can’t touch this site or your cookies. That also means an alert() pops up once per device. If that gets annoying, untick JavaScript to see the page with scripts off.
Why are my images or CSS file missing?
Paths like src="images/logo.png" or href="style.css" point to files on your computer that the viewer can’t reach. Use full URLs (https://…) for images, fonts and stylesheets, or paste your CSS into a <style> tag in the HTML.
Can I test a live website by its URL?
Not here. Most websites refuse to be shown inside a frame on another site, so a URL box would fail for most pages. Open the page, use “View page source”, and paste the HTML instead. The browser’s own device mode (F12, then the phone icon) is the other option for live sites.
Is my HTML uploaded anywhere?
No. Your code is rendered right in your browser and never sent to a server. The only exception is the Share button: it saves a copy so you can send someone a link, and only when you click it.