Skip to content
toolstome

HTML live editor

Try out a layout, test a snippet from a tutorial or build a quick prototype without setting anything up. Type HTML, CSS and JavaScript in three panes and the preview updates as you pause typing. console.log messages and errors from your script appear under the preview. The preview runs in a sandboxed frame with its own isolated origin, so your code can’t read this site’s data and the page can’t read yours. Your work is kept in this browser between visits, and you can download everything as a single HTML file.

Free · No sign-upProcessed in your browser

Preview

Console

  1. No console output yet.

How to use the HTML Live Editor

  1. 1

    Write your code

    Switch between the HTML, CSS and JavaScript panes.

  2. 2

    Watch the preview

    It refreshes shortly after you stop typing; console output appears below.

  3. 3

    Download

    Save the result as one index.html file.

When to use it

  • Test HTML and CSS while learning.
  • Prototype a component before adding it to a project.
  • Share a single-file demo.

Limits

  • Scripts and styles from other sites are blocked by this site’s security policy; inline everything you need.
  • Not a full IDE: there is no file tree, packages or build step.

Privacy

Code stays in your browser (local storage). Nothing is uploaded.

Frequently asked questions

Is it safe to run code here?

The preview is a sandboxed iframe without same-origin access, so the code can’t read cookies or storage from this site. It still runs in your browser, so only run code you trust.

Why don’t CDN scripts load?

The preview inherits this site’s Content Security Policy, which only allows scripts from this site. Paste the library code inline or test it in your own project.

Where is my code saved?

In your browser’s local storage on this device. Clearing site data removes it; download a copy to keep it.

Can I paste a full HTML document?

Yes. If the HTML pane contains <html>, the CSS goes into its head and the JavaScript before </body>.

Do alerts work?

Yes, alert and confirm dialogs are allowed in the preview.

People also use

Last updated November 24, 2026 · How we build and test our tools

Categories

Recently used tools

Tools you open will appear here.

More