Free tool
Free HTML Viewer
Paste HTML and preview it live. Edit the code on the left and the sandboxed preview on the right updates as you type.
Free online HTML viewer. Paste HTML, CSS, and JavaScript and see it render instantly in a live sandboxed preview. Runs in your browser.
- HTML source
View HTML
Example
HTML · CSS · JS · sandboxed
Live
Rendered preview
Output Live
How it works
-
1
Paste or write HTML
Drop in a full document or a fragment with inline <style> and <script> tags.
-
2
Press view HTML
The right pane renders it live in a sandboxed iframe as you type — no page reload needed.
-
3
Open, download, or copy
Pop the rendered page into a new tab, download it as a .html file, or copy the source back out.
Use this tool to preview HTML instantly
Founders and developers constantly need to check what a chunk of HTML actually looks like — an email template, a landing page snippet, an AI-generated component, or markup pasted from a colleague. This viewer renders it immediately, without spinning up a local server or opening an editor.
Why a sandboxed preview
The preview renders inside an iframe sandbox with scripts allowed but same-origin access denied, so pasted code cannot read cookies, local storage, or anything else from this site. That keeps it safe to paste HTML from anywhere, including code you did not write yourself.
What this does not do
- Everything runs in your browser. Nothing is uploaded to or stored on our servers.
- The preview runs inside a sandboxed iframe, so it cannot read cookies or storage from other sites, and some browser APIs are restricted.
- This renders markup you provide. It does not fetch external pages, crawl URLs, or validate HTML against a spec.