HTML Viewer

Copy and paste HTML in the editorEnter HTML here
Enter HTML to see the preview

What is HTML Viewer?

Need to see how your HTML looks without spinning up a server? That's exactly what this tool does. HTML Viewer takes your HTML (HyperText Markup Language) and renders it live in a preview pane right next to your code. HTML is the foundation of every web page. Its rules are set by the WHATWG HTML Living Standard, which browser vendors maintain.

Whether you're prototyping a landing page, debugging an email template, or just checking if your markup is correct, this tool shows you the rendered page as you edit. No need to save files, open a browser tab, or run a local server. For best practices on writing semantic and accessible HTML, the web.dev Learn HTML guide is an excellent reference.

Everything runs in your browser. Your HTML never touches our servers. It's fast and private.

How to Use the HTML Viewer

The page is two panes and a splitter: markup on the left, the rendered result on the right. Here is how a typical session with an email template or a saved page goes.

1

Paste Your HTML or Load Sample

Paste your HTML into the left editor. A complete saved page works, and so does a lone table copied out of an email template. Sample loads a shipping-notification email so you can try it straight away. If the preview looks wrong, check the markup first with the W3C Markup Validator if you're unsure.

<table role="presentation" style="width:100%;font-family:Georgia,serif">
  <tr>
    <td style="padding:16px;background:#f4f1ea">
      <h2 style="margin:0">Order SKU-101 has shipped</h2>
      <p>Hi Maeve, your parcel left the Leeds warehouse this morning.</p>
      <a href="https://shop.northwind.test/track/SKU-101">Track parcel</a>
    </td>
  </tr>
</table>

The preview updates automatically as you type.

2

See the Live Preview

The right panel re-renders your HTML a moment after you stop typing. You'll see exactly how the browser interprets your markup: styles, layout, images, and all. The preview is sandboxed using an iframe for security, isolating your code from the tool itself.

3

Adjust and Iterate

Edit your HTML in the left panel and watch the preview update in real time. Drag the splitter to adjust the panel sizes. Click Maximize to see the preview in fullscreen.

4

Share Your Work

Click Share to generate a shareable link for your HTML. Recipients will see both the code and the rendered preview.

When You'd Actually Use This

Prototyping UI Snippets

Want to quickly test a button style, a card layout, or a navigation bar? Paste your HTML here and see it render next to your code. Way faster than creating a new file and opening it in your browser. Great for quick experiments.

Debugging Email Templates

Email HTML is notoriously tricky: inline styles, table layouts, quirky rendering. Paste your email template here to see how it looks before sending it out. Saves you from embarrassing formatting issues.

Learning HTML

If you're learning HTML, this tool is perfect for experimenting. Write some tags, see what they do. Try different attributes, check the result as you go. Much faster than the write-save-refresh cycle.

Reviewing Code Snippets

Someone sent you an HTML snippet on Slack or in a PR comment? Paste it here to see what it actually looks like. No need to create a file, open VS Code, and spin up a server.

Common Questions

Is my HTML data stored anywhere?

Only if you ask for it. Previewing writes your markup into a sandboxed frame in this tab and sends nothing anywhere. Clicking Share and then Save & Share is different: that uploads the HTML so the link works for someone else, and you pick how long it is kept, from one month up to two years.

Does it support CSS and JavaScript?

Yes. Inline styles and <style> tags render correctly. JavaScript in <script> tags will execute within the sandboxed preview iframe. External stylesheets and scripts referenced via URLs will also load if they're accessible.

Is the preview safe?

The preview renders inside a sandboxed iframe, which isolates it from the main page. This prevents any scripts in your HTML from affecting the tool itself.

Can I use full HTML documents?

Yes. A full document with its doctype renders the same way a browser tab would. A fragment, say one <section> lifted from a CMS, renders too, because the browser fills in the missing outer tags for you.

How does the live preview work?

As you type in the editor, the tool updates the preview iframe with your HTML content after a short debounce delay (300ms). This gives you real-time feedback without overwhelming the browser with constant updates.

Can I resize the editor and preview panels?

Yes. Drag the splitter bar between the two panels to adjust their sizes. On mobile, the panels stack vertically.

Other HTML & Markup Tools

If the preview shows a broken layout, the cause is often a stray stylesheet or script rather than the markup, so the CSS and JS formatters below help you tidy each piece on its own, and the XML tools cover markup that has to be strictly well-formed: