HTML Preview

Live-render markup in a safe sandbox

Valid
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
16 lines · 549 chars · 555 B
Preview

Examples

Live preview

Input
<h1>Hello 👋</h1>
<p>Edit on the left, see it render instantly.</p>
Output
A rendered heading and paragraph in the preview pane.

Beautify messy markup

Input
<ul><li>One</li><li>Two</li></ul>
Output
<ul>
  <li>One</li>
  <li>Two</li>
</ul>

Frequently asked questions

Is the preview safe to run?

Yes. Your HTML renders inside a sandboxed iframe with no access to this page, your cookies or storage. Nothing is uploaded — it all runs locally in your browser.

Does JavaScript in my HTML run?

Yes — the sandbox allows scripts so interactive demos work, but they're isolated to the preview frame and can't touch the rest of the page.

What does Beautify do?

It re-indents your markup with consistent 2-space nesting, putting tags on their own lines. Contents of <pre>, <textarea>, <script> and <style> are preserved as-is.

Related tools