HTML Viewer
Paste HTML or open a .html file and see it drawn at once — in a sealed preview that cannot touch this site.
Scripts are off. Tick Run scripts and the page’s JavaScript runs inside a sealed box: it cannot read this site’s saved data or cookies, open windows or submit forms. It can still load images from the web.
The preview is sealed: links inside it do not take you anywhere, and an image, stylesheet or font loaded from a web address shows up while a script, video or request from another site does not.
🔒 Runs entirely in your browser — nothing you type is uploaded or stored on a server.
Paste HTML — a snippet, an email template, a whole page — or open a .html file, and it is drawn right below as you type. Switch between Full, Tablet 768 and Phone 375 to see how the layout responds: the page inside the preview sees the preview’s width, so its media queries really do switch.
Also on Txtset: strip the tags and keep the text · write Markdown and get the HTML.
The preview is sealed. Your HTML is drawn in a sandboxed frame with no way into this site. It cannot read what you have saved here (Notepad text, AI chats, a Secret Santa draw), cannot read cookies, cannot open windows, submit forms or send this tab somewhere else. Scripts are off until you tick Run scripts, and even then they run in the same sealed box, so a script that reaches for this site’s storage gets an error instead of an answer.
Images, stylesheets and fonts loaded from https:// addresses do show up, so a page that links its CSS or a web font looks the way it would in a browser. Scripts from other websites, video and audio do not load, and neither does anything referred to by a relative path such as logo.png — a pasted snippet has no folder next to it, so use a full address.
Nothing is uploaded, and there is deliberately no “open in a new tab” button. A new tab opened from this page would run your HTML as part of txtset.com, with access to everything this site stores. Download .html is the way out: opened from your disk, the file gets an origin of its own. The line above the preview shows the element count, the page title and the size, so you can see at a glance that the page was read.
How to use
- Paste your HTML into the box, or press Open .html file and choose one. The preview updates about a third of a second after you stop typing.
- Pick Full, Tablet 768 or Phone 375 to see the page at that width.
- Tick Run scripts only if the page needs JavaScript to show anything. It stays sealed either way.
- Read the line above the preview for the element count, the title and the size, and press Download .html to save the page as a file.
Examples
<h1>Hello</h1>A bare snippet is drawn at once. With no
<!doctype html> the preview is in quirks mode, as a browser opening that file would be.<link rel="stylesheet" href="https://…">The stylesheet loads from its address and the page is styled.
<script>document.body.textContent = "hi"</script> with Run scripts tickedThe script runs and rewrites the body, inside the preview only.
Nothing runs. The page is shown as inert markup.
Frequently asked questions
Is it safe to paste HTML from someone I do not trust?
Why does a script from another website never load?
<script src> from an ordinary website, so nothing from outside can run beside your HTML; the browser’s console reports the block. Scripts written out inside your HTML run when you tick Run scripts.Why is there no “open in a new tab” button?
Is anything uploaded?
Why does my page look different from the real thing?
images/photo.jpg has no folder to point into. With no <!doctype html> the preview is in quirks mode. A <meta name="viewport"> tag has no effect inside a frame, so use the width presets instead. And scripts are off until you tick Run scripts.