HTML editor with live preview
Type HTML, CSS and JavaScript and watch the page change, safely sandboxed in your browser.
- 100% free
- No sign-up
- Runs in your browser
The preview is stopped. Press Run to show your page.
Console
The preview is stopped. Press Run to show your page.Messages from console.log and errors in your page appear here.
Next: HTML formatter · CSS formatter & minifier · Markdown editor
Report a problem with this tool
How to use HTML editor
Write your code
Start from the example or clear it. HTML, CSS and JavaScript each have their own editor with line numbers; on a phone they are tabs.
Watch the preview
The page reloads about half a second after you stop typing. Messages from console.log and script errors appear in the console underneath.
Save the page
Download everything as a single index.html, or copy it. Your draft also stays in this browser for next time.
Why use Utils365
Three editors, one page
Keep markup, styles and script apart while you work; the download puts the CSS in a style element and the JavaScript in a script element of one file.
A console built in
console.log, warnings, errors and uncaught exceptions show under the preview, with the line of your JavaScript where an error happened.
Safe to experiment
The preview is a sandboxed frame that can’t read this site’s storage or cookies. Turn off Run as I type and nothing runs until you press Run.
Nothing leaves your device
Your code is saved only in your browser’s storage. There is no account, no upload and no server that runs it.
Frequently asked questions
Do I need to write a full HTML page?
No. If the HTML pane holds just content, such as a heading and a paragraph, it is wrapped in a complete page with a doctype, a UTF-8 charset and a viewport tag. If you write your own html, head or body tags, your page is kept as it is: the CSS is added at the end of the head and the JavaScript at the end of the body.
Where is my code saved?
In this browser’s local storage, as you type and again before each run. It is still there after you close the tab, on this device and browser only. Clearing your browser’s site data removes it, so download anything you want to keep.
My code has an endless loop and the page froze. What now?
Close the tab and open the editor again. Your code was saved before it ran, and because that run never finished, the preview is not started again and Run as I type is switched off. Fix the loop, then press Run. If the editor is still responding, press Stop instead.
Why doesn’t alert() or my form do anything?
The preview runs with only scripts allowed. Alert, confirm and prompt boxes, pop-up windows and form submissions are blocked, and localStorage and cookies are not available to your page. Use console.log to see values, and handle a form’s submit event in JavaScript.
Can I load libraries, fonts or images from other sites?
Yes. A script, link or img tag with a full https address works in the preview, as long as that site allows it. Those requests go from your browser straight to that site; relative paths such as images/logo.png have nothing to point at here.
Does the editor highlight syntax or autocomplete?
No. It has line numbers, bracket matching, undo and redo, and Tab to indent, but no colouring or code completion. For tidying code, the HTML, CSS and JavaScript formatters on this site can help.
How do the phone and tablet buttons work?
They set the preview’s width to 375 or 768 pixels, so your CSS media queries respond as they would on a screen that wide. It is not a device emulator: touch events and the device’s own browser are not imitated.