Code typed on the left is rendered in a sandboxed frame on the right, updating as you type. You can open an .html file, save your work as a file, and view the preview full screen. Your code is also kept in this browser between visits.
How to use the HTML editor
- Type or paste HTML (include CSS in a
<style>tag and JS in a<script>tag). - Watch the preview update, or untick auto-update and press Run.
- Download the result as an .html file.
Safe sandbox
The preview runs in a sandboxed iframe with a unique origin, so scripts can run but cannot read this site’s data, your cookies or other tabs. It is a good place to test snippets from tutorials, emails and Stack Overflow.
Learning HTML
Every page is built from tags such as <h1> for headings, <p> for paragraphs, <a href> for links and <img src> for images. Change a tag in the sample and see what happens; experimenting is the fastest way to learn.
Frequently asked questions
Is my code saved?
It is saved automatically in this browser only. Download the file to keep it.
Can I load external libraries?
Yes, add a <script src> or <link> tag pointing to a CDN.
Updated October 2026 · Built and tested by Sharjeel Tahir · How our tools are tested