HTML tools
HTML Viewer & Live Preview
Paste HTML and watch it render live as you type, with the cleaned-up source shown right beside the preview.
How to use it
-
Paste or drop your HTML
Paste your HTML into the editor, or drag and drop an .html file onto the page.
-
See it render live
Watch the page render instantly in a sandboxed preview, with the formatted source shown alongside it.
-
Copy or publish
Copy the tidied source, or publish the page to a live HTTPS link to share it.
Frequently asked questions
Is the HTML viewer free?
Yes, free to use as often as you like, with no account and no usage limits.
Is my HTML uploaded to preview it?
No. The preview is rendered entirely in your browser, so your HTML is never sent to a server and even private or unfinished pages stay on your device.
Is it safe to preview HTML that contains scripts?
Yes. The preview runs inside a sandboxed iframe that is isolated from this page and from your account, so any JavaScript in the pasted HTML cannot read or change anything outside the preview.
Do images, CSS, and links work in the preview?
Inline CSS and styling render exactly as they will in a browser. Images and stylesheets that point at absolute URLs load normally; ones that rely on relative paths only appear once the page is hosted with those files alongside it.
Can I see the formatted source too?
Yes. Alongside the live preview the viewer shows your HTML cleaned up and indented, so you can read the markup and copy the tidied version in one place.
How do I host the page I am previewing?
Click Publish and the HTML goes live at its own HTTPS link in seconds, an easy way to share a quick page or prototype without a build step or any server setup.