ToolDash
HTML Viewer & Live Preview

HTML Viewer & Editor with Live Preview

Paste an HTML snippet or a full document and see it rendered instantly in a sandboxed frame. Then save it as a PDF, download it as a Word file, or copy it as rich text for Gmail, Notion and other editors.

  • Free, no sign-up
  • Runs in your browser — nothing is uploaded
  • Instant results, no waiting on a server

Paste HTML on the left → live preview on the right → save as PDF, download as Word, or copy as rich text.

HTML

0 chars

Lines: 0HTML
Preview
Sandboxed

Paste HTML on the left to see the rendered preview.

0 body charsRendered locally

How to view and export HTML

  1. 1Paste your HTML into the HTML panel. A snippet works as well as a complete document with <html>, <head> and <body>. Or click Load Sample to try it out.
  2. 2Check the Preview panel. The HTML preview renders in a sandboxed iframe. Click the refresh icon to reload it and re-run any scripts.
  3. 3Click Save as PDF to open your browser's print dialog, then choose Save as PDF as the destination.
  4. 4Or click Download Word for an editable .doc file, Copy Rich Text to paste formatted content into Gmail or Notion, or Copy HTML for the markup.

Previewing HTML safely, and turning it into a document

Opening an HTML file in a browser tab is fine for your own code, but less so for markup you've been sent, pulled from a database or copied out of an email template. The preview here uses your browser's own HTML renderer, so the result matches what you'd see in a normal tab, but it runs inside a sandboxed iframe. Scripts are allowed to run, so embeds and interactive snippets work, but the sandbox doesn't grant same-origin access. The frame gets a unique, opaque origin and can't read this page's cookies, localStorage or DOM.

You can paste either a fragment or a full document. If the input contains an <html> tag, the preview renders it exactly as written, including the <head> and its styles. If it's a fragment, the tool wraps it in a minimal page with a clean system font, and sets links to open in a new tab.

Save as PDF uses the browser's own print engine rather than a server-side converter. You get a vector PDF with selectable, searchable text, and the page size and margins are whatever you choose in the print dialog. Download Word saves an HTML-based .doc file that Microsoft Word opens with headings, lists, tables and links intact, so you can keep editing and save it as .docx. Copy Rich Text puts formatted HTML on the clipboard for Gmail, Notion and other rich-text editors.

One thing to know about the exports: they use the content of the <body>. Styles defined in a <style> block in the <head> aren't carried into the PDF, Word or rich-text output, so use inline styles if exact formatting matters. HTML email templates are usually written that way already.

When developers reach for it

Testing HTML email templates

Paste a transactional email or newsletter template to check layout and content before it goes into your email service.

HTML to PDF without a library

Turn a generated report, invoice layout or export into a PDF through the browser's print dialog, with no server-side rendering.

Inspecting stored HTML

Render an HTML field from a database, CMS or API response to see what users actually see, isolated from the main page.

Handing content to non-developers

Download HTML as a Word document, or copy it as rich text, so someone can edit it without touching markup.

Frequently asked questions

Can I edit HTML online here?

+

Yes. The left panel is a full HTML editor with syntax highlighting, so you can edit HTML online and watch the preview update as you type. Nothing is saved to a server, so copy or download your work before closing the tab.

Is it safe to preview untrusted HTML here?

+

The preview runs in a sandboxed iframe without same-origin access, so scripts in the HTML can't read this page's cookies, storage or DOM. Scripts and forms can still run inside the frame, so treat it as a viewer, not a malware analysis tool.

How do I convert HTML to PDF?

+

Paste your HTML and click Save as PDF. Your browser's print dialog opens, and choosing Save as PDF as the destination produces a PDF with selectable text.

Can I convert HTML to Word?

+

Yes. Click Download Word to get a .doc file that opens in Microsoft Word with its formatting intact. You can then save it as .docx from Word.

How do I preview HTML email template code before sending it?

+

Paste the template's HTML and check the Preview panel. It shows how a browser renders the layout, which is close to webmail clients but not identical: Outlook for Windows uses Word's rendering engine and some clients strip <style> blocks. For a real-inbox check, click Copy Rich Text and paste into a Gmail draft to send yourself a test.

Why are my styles missing from the PDF or Word file?

+

The exports use the content of the <body>, so CSS in a <head> <style> block isn't included. Inline styles on the elements themselves are kept.

Is my HTML uploaded to a server?

+

No. Rendering and exporting both happen in your browser. Resources your HTML references, such as images, fonts or scripts on other domains, are fetched by the preview as usual.