Free tool · Online HTML editor
Free online HTML editor
Write HTML, CSS and JavaScript in their own tabs, with highlighting and a preview that updates as you type. When the page is done, get a link you can send.
Published free with no signup, the page is live for 7 days; sign up free to keep it. A published page is public to anyone with the link and noindex.
What the editor does
An HTML editor online, without the setup
Three tabs, one page
Keep markup, styles and scripts apart while you work. The CSS tab is added as a <style> before </head> and the JS tab as a <script> before </body>, so preview, download and publish all get one complete HTML file.
A real code editor
Syntax highlighting for HTML, CSS and JavaScript, line numbers, bracket matching, auto-closed brackets, search with Ctrl or Cmd + F, and undo that remembers each tab on its own.
Work that survives a refresh
Every change is saved in this browser as you type. Format tidies the indentation without changing what renders, Download .html saves the combined file, and Start over brings back the example.
Keyboard
Shortcuts that work in the editor
Related tools
From editing to running, testing and publishing
HTML runner
Run a page with its scripts and read console.log output and errors beside it.
Run HTML →HTML tester
Preview at three widths and list unclosed tags, missing titles and images without alt.
Test HTML →Online HTML editor FAQ
Press Upload, or drop the .html file on the editor above. It opens in the HTML tab with highlighting and line numbers, and the preview beside it updates as you type. When you are done, Download .html saves the edited file to your computer, or Get a link publishes it as a page you can send.
No. A complete document with its own <style> and <script> tags works in the HTML tab alone, and that is how most AI-built pages arrive. The CSS and JS tabs are there when you want to keep them apart: their contents go into the document as a <style> before </head> and a <script> before </body>. Files the page loads by a relative path, such as style.css, are not on this page, so paste their contents into the matching tab.
In this browser, yes. Every change is kept in the browser’s own storage, so a refresh or a closed tab does not lose it on the same device. It is not sent to a server and does not follow you to another computer. Start over clears it. To keep a copy anywhere else, download the file or publish it.
Yes. Editing, previewing and downloading are free with no signup and no limits. Publishing without an account gives you a link that stays live for 7 days; claim it free and it stays live as one of your 2 free pages.