HTML Editor

Write, render, and debug HTML with a live preview and real JavaScript execution, no installation required. Test snippets, prototype landing page sections, or preview an HTML email template entirely client-side before committing the code to a project.

Preview

Usage examples

Quickly testing a small HTML snippet

See exactly how a piece of markup or CSS actually looks without spinning up a code editor.

Previewing an HTML template for an email

While writing HTML for a newsletter or notification email, watch the rendered result update live as you type.

Debugging JavaScript behavior alongside the console

Put code inside a <script> tag and open your browser's developer console to see logs and errors from the preview as it runs.

Prototyping a landing page section before committing it to a project

Sketch out a hero section or pricing table with inline <style> rules and see it rendered instantly, without creating a branch or spinning up a local dev server.

Sharing a self-contained HTML file with a teammate

Once a snippet looks right in the preview, use Download to save it as index.html — a single file you can email, attach to a ticket, or open directly in any browser.

Checking how a CSS reset or media query behaves at different sizes

Write a <style> block with a media query and resize the preview pane (or your browser window) to confirm the layout responds the way you expect, before copying it into your real stylesheet.

Frequently asked questions

Is the HTML I write sent to a server?

No. Rendering happens entirely in your browser, and what you enter is never sent to a server.

Does JavaScript actually run?

Yes. The preview runs inside an isolated iframe, and any <script> inside your HTML runs there too. That iframe is sandboxed so it can't reach the parent page or any other site at all.

Can it load external images or CDN scripts?

Yes. The preview behaves like a normal browser environment, so references like <img src="https://..."> or <script src="https://..."> load normally.

Is what I write saved anywhere?

It's kept only in your browser's local storage so it's still there if you come back later. It's never sent to a server.

Could a malicious script in my HTML affect the rest of the page or my account?

No. The preview's iframe is sandboxed with only allow-scripts set — notably without allow-same-origin — so scripts inside it run in their own opaque origin and are blocked from reaching the parent page's DOM, cookies, or localStorage, and from navigating the top-level window. It's a safe space to test code you don't fully trust yet, including snippets copied from elsewhere.

Does the preview update as I type, or do I need to click something?

It updates live on every keystroke — there's no separate "run" button. The iframe's content is fully replaced each time the HTML source changes.

What does the Reset button do?

It discards your current content and restores the default starter example (a basic HTML page with a heading and a console.log in a script tag). Use it if you want to start fresh or get back to a known-working baseline.

Can I write a full HTML document including <!DOCTYPE>, <head>, and <body>?

Yes. The editor doesn't require a full document — a bare snippet like <p>Hi</p> renders fine — but you can also write a complete page with <!DOCTYPE html>, <head>, <style>, and <body> if you want to test things like meta tags or document-level styles.