ExtraTools/test-website-resolution

WEBSITE VIEWPORT TESTER

RESPONSIVE WEBSITE PREVIEW

Test responsive website layouts in your browser
Utilities for code and web development.

Compare a real page render at common or custom CSS viewport dimensions without installing a device simulator. Preview a URL when the target allows embedding, or load a self-contained HTML and CSS sample.

Choose a preset or enter a custom CSS viewport size. This renders a page in a browser iframe; it is not full emulation of a particular phone or computer.

URL previews are loaded by your browser. Local files stay on your device, and sandbox rules restrict external resources; local scripts remain off by default.

01 / WEBSITE RESOLUTION TESTER Local HTML, CSS, and JavaScript stay in this browser tab. Files are not uploaded. localStorage is temporary, and History API URL changes are disabled in this preview.

Choose a source and viewport

Preview source

Choose a source, set the viewport, and show a preview.

Test responsive layouts in your browser

Compare a real page render at common or custom CSS viewport dimensions without installing a device simulator. Use a URL when the target website allows iframe embedding, or preview a self-contained HTML/CSS sample.

  • Phone, tablet, laptop, and desktop viewport presets, plus custom width and height.
  • Local HTML, CSS, and JavaScript source files are read in the browser and are never uploaded; classic scripts run only when enabled in an isolated sandbox.
  • Scripts run only when enabled. The opaque sandbox isolates them from the tester page and restricts external resources and network APIs, but cannot reliably prevent all preview-frame navigations. It is not a malware scanner.
  • Open the same browser-rendered preview in a separate tab or window for a larger view.
  • This is CSS viewport testing, not full device emulation. URL sites may block framing; JPG captures the visible browser-tab preview.

Website resolution tester FAQ

What does the Show example button do?

In HTML + CSS + JavaScript mode, it loads the bundled NovaDesk example files and runs its JavaScript in the isolated preview. JavaScript remains off by default for your own files.

What does the website resolution tester show?

It renders a page in a real browser iframe with the selected CSS viewport width and height. This is an actual page render, not full emulation of a specific phone or computer.

How do I test a website URL?

Choose Website URL, enter an HTTP or HTTPS address, and start the preview. Your browser loads the address directly; the tool server does not fetch the site.

Why does a website fail to appear in the frame?

The site owner may block embedding with X-Frame-Options or Content-Security-Policy. The tester does not bypass those rules. Open that site in a regular browser tab.

Can I test my own HTML file or a saved page?

Yes. In HTML mode, choose an .html/.htm file or import a saved website folder. Folder import includes local CSS, classic JS files referenced by the HTML, and visual assets. Module scripts are not loaded.

How do I add CSS and JavaScript to the HTML?

Paste source into the fields or choose up to three CSS/JS files at a time. Folder import finds linked local CSS and classic JavaScript. Scripts can affect the display, but are off by default and run only after you enable the checkbox; only run trusted code.

Does JavaScript run in a local preview?

Yes. Your classic local scripts run only when you enable the checkbox, which is off by default; the bundled NovaDesk demo runs its script after you click the example button. Code runs inside an opaque-origin iframe. CSP restricts external resources and standard network APIs; the sandbox isolates scripts from the tester page and blocks forms, popups, and top-level navigation. Browsers do not guarantee that the preview frame itself cannot navigate to an external site, so do not run untrusted code. External and module scripts are not loaded. localStorage is in-memory only, and History API URL changes are disabled.

Are the selected files or URL sent to a server?

Files are not uploaded to the tool; they are read in your browser tab. Your browser opens a URL directly and sends a request to that site. In local previews, CSP restricts external resources and standard network APIs, while the sandbox isolates scripts from the tester page. This is not a complete file security scan.

Which screen sizes are available?

Presets include 360 × 800 and 390 × 844 phones, a 768 × 1024 tablet, a 1280 × 800 laptop, a 1440 × 900 desktop, HD 1280 × 720, HD Ready 1366 × 768, Full HD 1920 × 1080, 2K 2560 × 1440, and 4K 3840 × 2160. You can also set a custom size.

What do width and height in CSS pixels mean?

They set the page viewport size inside the iframe. They do not change your physical display size or set devicePixelRatio.

Does the tester emulate touch or a mobile browser?

No. It changes the CSS viewport width and height, but not the user agent, touch input, browser restrictions, or device pixel ratio.

How do I save the preview as a JPG?

Click the JPG button and choose the current tab in the browser capture picker. It saves the actual visible preview locally without uploading it. Large viewports are scaled to fit the visible tab.

Why do external images and libraries not load in local mode?

Local previews restrict external resources in CSP, including images, fonts, CSS, and JavaScript. This reduces accidental loading of third-party content; do not run code you do not trust.

Why was a large JavaScript file rejected before?

JavaScript files up to 4 MB are read locally; combined HTML/CSS/JS is limited to 12 MB. Folder import is limited to 100 files and 8 MB. Classic scripts run in an isolated sandbox; this is not malware detection.

How to test a website

Choose a source, then select a viewport size and start the preview.

Could not show the preview

Check the source and try again.