Online HTML Editor with Live Preview — Numio
Write HTML, CSS and JavaScript and see a live preview as you type. Console messages appear below. Free and runs in your browser.
Runs in your browser · No sign-up
Code (HTML)
Ctrl/⌘ + Enter to run
Preview
Console
No output yet. Press Run to see results here.
Code runs locally in your browser; it is not uploaded.
How to use
- Write HTML, with CSS in <style> and JavaScript in <script>.
- Watch the preview update automatically as you type.
- Check console messages below the preview.
Example
<!DOCTYPE html>
<html>
<head>
<style>
body { font-family: sans-serif; padding: 16px; }
button { padding: 8px 16px; }
</style>
</head>
<body>
<h1>Hello!</h1>
<button id="btn">Click me</button>
<p id="out"></p>
<script>
let n = 0;
document.getElementById("btn").onclick = () => {
n++;
document.getElementById("out").textContent = "Clicks: " + n;
console.log("click", n);
};
</script>
</body>
</html>
Details and limitations
The preview runs in a sandboxed frame. Its scripts cannot access this page or its cookies.
Prefer to refresh manually? Turn off automatic updates and press Run.
FAQ
Can I use CSS and JavaScript?
Yes. Put CSS in a <style> tag and JavaScript in a <script> tag in the same document.
Where does console.log output go?
Console messages from the preview are listed below it.
Is my code uploaded?
No. The preview is generated in your browser and nothing is sent to a server.
Related tools
Format references
Tool page updated: