HTML Viewer

Paste an HTML file — or the code block an AI just gave you — and see the real page immediately. Edits on the left show on the right as you type. It runs entirely in your browser: nothing is uploaded until you decide to make it a link.

Paste HTML here, or drop an .html file anywhere on this page
HTML0 B
Preview
Your page will render here as you type.

Make this page a link

One click sends exactly this HTML to a free hdply address. No account to try; the link lasts an hour, and a free account keeps it for good.

What this viewer does, and does not do

The preview is a sandboxed frame. Your HTML runs with its own scripts and styles, but in an isolated origin: it cannot read this page, your cookies, or anything else in the tab. That is why it is safe to paste code you have not read line by line.

It renders exactly what a visitor would get from a single file. Anything your HTML references by a relative path — styles.css, images/hero.jpg, script.js — does not exist here, just as it would not exist on a host you upload one file to. If the preview looks unstyled, that is the reason: inline the CSS, or point the link at an absolute URL.

The phone and tablet widths are real viewport widths, not scaled screenshots, so media queries fire as they would on the device. Switch to phone before you send a link to anyone: most people you send it to will open it on one.

Frequently asked questions

Is my HTML uploaded anywhere when I paste it?

No. Rendering happens in your browser, inside a sandboxed frame. Nothing leaves this tab until you press the "Get a link" button, and that sends only the HTML in the editor.

Why does the page look different from the file on my computer?

Almost always because of relative paths. A link like styles.css or images/photo.png points at a file next to your HTML on disk, which the viewer cannot see. Put the CSS in a <style> tag and use full https:// URLs or data URIs for images, and it will match.

Does JavaScript run in the preview?

Yes. Scripts run inside the sandbox, isolated from this page, so interactive pages, charts and small apps work. Anything that needs cookies or local storage for the frame itself may be limited by the sandbox.

Is there a size limit?

The viewer has none. The "Get a link" step accepts up to 1 MB per page, which is plenty for a self-contained file; large images belong on an external URL.

Tools → · Guides →