Many websites block iframe embedding with X-Frame-Options or a Content Security Policy (frame-ancestors), and this tool never tries to bypass those protections — if a preview does not load, the site is blocking it, so open the URL directly instead or use the Local HTML option. The preview is an approximation: it shows the page at the chosen viewport size, but it does not perfectly reproduce real device rendering, touch behaviour or browser quirks. The pasted HTML in the Local HTML option is rendered in a sandboxed iframe and cannot affect this page.
What is the Responsive Preview Tester?
The Responsive Preview Tester is a free online tool that shows you how a website looks at different screen sizes — a phone, a small tablet, a tablet, a laptop and a desktop — without owning any of those devices. You paste in a website address, pick a viewport size, and the tool shows the page in a frame exactly that wide and that tall. You can also paste your own HTML instead of a URL, which is the quickest way to check a page you are still building. It is made for anyone who needs to know whether a page works on small screens: beginners checking their first responsive layout, bloggers making sure a post reads well on a phone, and developers testing a breakpoint before they ship it.
A responsive page is one layout that adapts to the width it is shown at: columns stack, menus collapse, text reflows. The only way to know it actually works is to look at it at those widths. Resizing your browser window is a start, but it cannot show you a 1920-pixel desktop layout on a 1366-pixel laptop. This tool frames the page at the exact size you ask for, so you see what a visitor on that device would see.
Everything runs in your browser. There is no sign-up, no account, and nothing you type leaves your device.
How to use the Responsive Preview Tester
- Choose what to preview. The “What to preview” choice offers Website URL or Local HTML. Website URL is selected by default, with
https://allabouthtml.com/already filled in. - Enter a URL or paste HTML. For a website, type the full address starting with
http://orhttps://. For Local HTML, paste a complete HTML document into the box — the tool comes with a sample page already loaded. - Pick a viewport size. The Viewport buttons offer five presets: Mobile 375 × 667, Small tablet 600 × 800, Tablet 768 × 1024, Laptop 1366 × 768 and Desktop 1920 × 1080. Clicking a preset loads the preview at that size immediately.
- Or set a custom size. The Width (px) and Height (px) fields accept any size from 200 to 2560 pixels, and Preview loads it. Sizes outside that range are clamped to the nearest allowed value.
- Read the frame label and status. The frame is labelled with the size it is showing, for example “Preview: 375 × 667 px”, and the status line tells you when a preview is loading, loaded, or did not load and why.
- Reset to start over. Reset returns to the sample website address, the Website URL mode and the Mobile 375 × 667 size, and loads the preview again.
Worked example: watch a box change colour below 600px
Switch to Local HTML. The sample page is already there: a heading, a paragraph, and a crimson box, with a media query that turns the box pink below 600 pixels wide:
.box { background: #e62f41; color: #fff; padding: 16px; border-radius: 8px; }
@media (max-width: 600px) { .box { background: #db529c; } }
Click the Desktop 1920 × 1080 preset and the box is crimson. Click Mobile 375 × 667 and the same box is pink — the media query has kicked in, because 375 is below 600. That is exactly what the tester is for: you can see a breakpoint switch on and off by changing one number, without resizing your own window or borrowing a phone.
Now try your own site. Switch back to Website URL, paste your address, and click the Mobile preset. Then step through Tablet and Laptop. If a heading overflows or a button runs off the edge at 375 pixels wide, you have found a layout problem worth fixing.
Three checks every responsive page needs
Does the layout hold at 375 pixels? A phone in portrait is the narrowest common screen, and it is where layouts break most often. Load your page at Mobile 375 × 667 and look for the usual failures: text running off the right edge, a navigation bar that overflows, images wider than the screen, or a button you cannot reach. If it holds at 375, it will usually hold everywhere wider.
Does the breakpoint switch where you expect? A media query that should fire at 768 pixels is only useful if it actually fires at 768. Set a custom width just above and just below your breakpoint — 769 and 767, for example — and watch the layout change between the two.
Does the desktop layout use the space? A page designed for a phone can look lost on a wide monitor: a single narrow column floating in empty space. Load the Desktop 1920 × 1080 preset and check that the content spreads out sensibly — a wider content area, a multi-column layout, or larger type.
Tips for testing responsive layouts
- Test the widths where your layout changes, not just the presets. The five presets cover the common device sizes, but your breakpoints are what matter. If your layout changes at 900 pixels, test at 899 and 901 with a custom width. The presets get you close; the custom fields get you exact.
- Expect some sites to refuse to load. Many websites block being shown inside a frame, using X-Frame-Options or a Content Security Policy. This tool never tries to bypass those protections. If a preview does not load within about ten seconds, the status line says so and suggests opening the URL directly instead — or using the Local HTML option, which always works because the page is yours.
- Remember the preview is an approximation. It shows the page at the chosen viewport size, but it does not perfectly reproduce real device rendering, touch behaviour or browser quirks. A layout that looks right in the tester still deserves a quick check on a real phone before launch — but the tester catches the great majority of problems first.
- Use Local HTML for pages you are building. Paste a page you are working on into the Local HTML box and you can test it at every size without publishing it anywhere. The sample page shows the pattern: a complete document with a
<meta name="viewport">tag, which is the line that makes a page respond to viewport width at all. - Check the viewport meta tag first. If your own page does not change at all between sizes, the usual cause is a missing viewport meta tag. A page without
<meta name="viewport" content="width=device-width, initial-scale=1">renders at desktop width on a phone and then shrinks to fit, so no breakpoint ever fires. Add the tag, then test again.
Frequently asked questions
Why won’t some websites load in the preview?
Because the site blocks it. Many websites send an X-Frame-Options header or a Content Security Policy that forbids other sites from showing them inside a frame, as protection against clickjacking. This tool respects that and never tries to get around it. When a preview does not load, the status line tells you after about ten seconds — open the URL directly in a browser tab instead, or test the same layout with the Local HTML option.
Is this the same as testing on a real phone?
No — it is an approximation, and the tool says so. It shows the page at the exact viewport size you choose, which catches layout problems, overflowing text and breakpoints that fire at the wrong width. It does not reproduce touch behaviour, real device rendering or browser quirks.
What viewport sizes are included?
Five presets: Mobile 375 × 667, Small tablet 600 × 800, Tablet 768 × 1024, Laptop 1366 × 768 and Desktop 1920 × 1080. You can also type any custom width and height from 200 to 2560 pixels and preview that exact size.
Can I test my own HTML instead of a live site?
Yes. Choose Local HTML and paste a complete HTML document into the box — the tool loads with a sample page that changes a box from crimson to pink below 600 pixels, so you can see a breakpoint working. Your pasted HTML renders in a sandboxed frame and cannot affect this page.
Is the URL I type sent anywhere?
No. The preview loads the address directly in your browser, inside the tool’s frame. The tool itself runs entirely in your browser, with no sign-up and no server involved in the preview.
Conclusion
The Responsive Preview Tester turns “does it work on mobile?” into a two-minute check: paste a URL, step through the five presets, and look for overflow, broken breakpoints and wasted space. Start with your own site at Mobile 375 × 667 and work up to Desktop. When you find a breakpoint that fires at the wrong width, the CSS Media Query Generator will build you a correct one to replace it with.

