Skip to content

Your HTML

✨ Every device updates as you type 0 lines · 0 B

Devices

Phone 375 × 667
Tablet 768 × 1024
Laptop 1366 × 768
Desktop 1920 × 1080

Paste HTML or click Sample

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:

<meta name="viewport" content="width=device-width, initial-scale=1">

Step 2 Pick Your Devices

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:

.cards { display: grid; grid-template-columns: repeat(3, 1fr); }

/* Tablets and phones: 2 columns */
@media (max-width: 1023px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
/* Phones: 1 column */
@media (max-width: 599px) {
  .cards { grid-template-columns: 1fr; }
}
  • Share: saves a link to send to someone, with your devices and zoom.
  • Need one size, full width? The HTML Viewer shows a single big preview, and the HTML Editor keeps HTML, CSS and JavaScript in separate tabs.

Common Responsive Problems It Helps You Spot

These are the ones you’ll see most often. Each shows up clearly when the phone and the desktop sit next to each other.

No viewport tag

What you see: On a real phone the whole desktop page shows up tiny, and your media queries never fire.

Fix: Add the viewport meta tag to the <head> of every page.

<meta name="viewport" content="width=device-width, initial-scale=1">

Fixed widths

What you see: The phone frame gets a sideways scrollbar, or the right edge of the page is cut off.

Fix: Use a max-width instead of a width, so the box can shrink.

.container { max-width: 1200px; width: 100%; }

Images that overflow

What you see: A big photo pokes out of its column on the phone and the tablet.

Fix: Let images shrink with their container.

img { max-width: 100%; height: auto; }

A menu that never collapses

What you see: Five nav links squeeze into one line, wrap into a mess, or push the logo off screen.

Fix: Below a breakpoint, hide the links behind a menu button (the Sample shows one).

@media (max-width: 599px) { nav { display: none; } }

Wide tables

What you see: A table with many columns makes the whole phone page scroll sideways.

Fix: Wrap the table so only the table scrolls, not the page.

.table-wrap { overflow-x: auto; }

Text that’s too big or too small

What you see: A 48px heading breaks into one word per line on the phone, or body text is hard to read.

Fix: Let the size follow the screen, with a floor and a ceiling.

h1 { font-size: clamp(1.75rem, 4vw + 1rem, 3rem); }

Frequently Asked Questions

Is this the same as testing on a real phone?

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.

Share with a link

Anyone with the link can view it. It's not listed anywhere or shown in search engines.

By creating a link you agree to our Terms of Use.