Loading tool…
About the HTML Viewer
Paste a full page or a fragment and watch it render as you type: source with line numbers and highlighting on the left, the live page on the right. The preview runs in a sandboxed frame with no access to this site, and external fonts, images and scripts in your HTML load normally.
How to use the HTML Viewer
- Paste HTML into the editor on the left, or click Sample to start from an example page.
- The preview on the right updates as you type. Turn off Auto-preview and use Refresh if you prefer.
- Use Copy or Download to take the HTML with you when it looks right.
- Nothing is uploaded: the page is rendered locally inside an isolated frame.
Step-by-step walkthrough with examples and the errors people hit: How to Preview HTML Online Safely.
Example
A fragment is enough
<h1>Hello</h1> <p>Rendered on the right.</p>→
A live page showing the heading and paragraph, re-rendered on every edit.
Common errors and how to fix them
A link does nothing
The sandbox blocks pop-ups and navigating the parent tab. Links that stay inside the preview work.
An external script did not load
The preview allows external resources, but the resource host must serve them over HTTPS and allow embedding.
More problems and fixes in the tutorial
A live preview as you type
Paste or write HTML on the left and see it rendered on the right. With Auto-preview on, the page re-renders a quarter of a second after you stop typing; turn it off and press Refresh preview or Ctrl+Enter when you want control. Full screen gives the editor and the preview the whole window, which is what a real template needs.
What runs inside the preview
A complete document or a fragment both work. Inline CSS and JavaScript run, and external stylesheets, fonts, images and scripts from CDNs load, so a snippet that depends on Bootstrap or Tailwind renders correctly. The preview runs inside a sandboxed frame with an opaque origin: it has no cookies, no storage and no access to this site, so pasting HTML you did not write is safe.
Where an HTML viewer helps
Checking an email template before it goes into the sending system. Seeing what a snippet from a ticket or a Stack Overflow answer actually does. Previewing HTML generated by a script or a CMS without deploying it. Learning HTML and CSS with immediate feedback. In each case you want to look, not to build a project.
Copy, download and share
Copy HTML puts the source on your clipboard; Download .html saves it as a file you can open in any browser. To show the page to a colleague, paste the source into Log Share for an expiring link, or open a Private Room if only they should see it.
Viewer, editor, tester, validator
An HTML viewer renders code so you can see it; an online HTML editor adds writing conveniences; a tester adds a console; a validator checks the markup against the standard without rendering it. This page is a viewer and editor with syntax highlighting. For strict validation, run the source through the W3C validator once it looks right here.
FAQ
Is my HTML uploaded or stored?
No. The source stays in your browser and is handed to the preview frame locally. Reloading the page clears it.
Can the preview run JavaScript?
Yes. Scripts run inside a sandboxed frame with an opaque origin, so they can render your page but cannot read LogShare cookies, storage or pages, and cannot navigate this tab.
Why does a link in the preview do nothing?
Pop-ups and navigation of the parent tab are blocked by the sandbox. Links that stay inside the preview work; ones that would open a new window are ignored.
Do external stylesheets, fonts and images load?
Yes. The preview frame allows external resources, so a page that pulls a Google Font or a CDN script renders as it would on its own.
Can I open an HTML file from my computer?
Open the file in any text editor, copy its contents and paste them here. The preview does not read files from disk.
Does the preview support Bootstrap, Tailwind or Google Fonts from a CDN?
Yes. External stylesheets, scripts, fonts and images load inside the preview as long as their host serves them over HTTPS.
Is it safe to paste HTML I did not write?
Yes. The preview runs in a sandboxed frame with no access to your LogShare session, no cookies and no storage. It cannot open pop-ups or navigate this tab.
Can I preview a full page with a head and body?
Yes. Paste the entire document; the doctype, head, styles and scripts all take effect inside the preview.