HTML Editor

Write HTML and See the Page Live.

Loading…

Type code on the left and the page appears on the right, a fraction of a second after each keystroke. CSS inside style tags and JavaScript inside script tags both run, so a whole small page can live in one file.

Switch the preview to tablet or phone width to check how the layout holds up. Tidy re-indents messy code. The preview runs in a sandbox, so a script you paste can't touch the rest of this site.

How to use the HTML Editor tool

  1. Type or paste your HTML, or open a file.
  2. Watch the preview, and switch its width to test small screens.
  3. Download the .html file or copy the code.
  • Learning HTML and CSS with instant feedback
  • Testing a snippet before it goes into a real site
  • Building an email template or a landing-page section

Tips for the best result

  • Turn off live update for long files and press Run when you want a fresh preview.
  • Open the preview in a new tab to use the browser developer tools on it.

Quick facts

PriceFree
Works withHTML
Where it runsIn your browser, on your device
AccountNot needed

Frequently asked questions

Can I use external CSS or scripts?

Yes. Link them with full https addresses, as you would on any page.

Is my code saved?

It stays in the tab until you close it. Download the file to keep it.

Does JavaScript run?

Yes, inside the preview frame. alert and console messages come from that frame.

Can I edit separate CSS and JS files?

This editor works on one HTML file. Put the CSS and JavaScript inside it, or link to files that are already online.