Free tool · HTML runner and compiler
Run HTML online
Paste HTML with its scripts, press Run, and read the page and its console side by side. Errors show with the line they came from.
console.log, warnings and errors from the preview show here.
Runs entirely in your browser. Nothing you paste leaves it until you choose to publish.
How it runs
An online HTML compiler that is really a browser
Your browser is the engine
The preview is your own browser rendering the code: the same HTML parser and the same JavaScript engine as a normal tab. What runs here runs on a published page.
Console output beside the page
console.log, info, warn and error appear under the preview, with uncaught errors and rejected promises. Error line numbers match the HTML tab.
Run on demand
Run, or Ctrl or Cmd + Enter, starts the page again in a clean frame and clears the console. Edits run on their own shortly after you stop typing.
Related tools
Once it runs
HTML to website
When the code works, put it online as a website with its own address.
HTML to website →HTML runner FAQ
Paste the code into the editor above and press Run, or Ctrl or Cmd + Enter. The page renders in the preview and anything it logs shows in the console under it. A full document works, and so does a fragment such as a single <div> with a <script>. Put extra CSS or JavaScript in their own tabs if you like; they are added to the page when it runs.
Not really. HTML is not compiled: the browser reads it and draws the page directly, and JavaScript is run by the browser’s own engine. What people call an online HTML compiler is a runner like this one, which hands your code to a real browser and shows the result. One difference from a compiler: browsers do not report mistakes in HTML, they quietly repair them. To find unclosed tags and other markup problems, use the HTML tester.
The console shows the current run only and is cleared each time the page runs again, so a message logged before your last edit is gone. Check that the script is not loaded from a relative path such as script.js: that file is not on this page, so paste its contents into the JS tab. alert(), confirm() and prompt() are blocked in the sandboxed frame; use console.log instead.
No. It runs in a sandboxed frame without access to this site’s cookies, storage or page, and it cannot navigate this tab. Like any web page it can still load images or call public web addresses. Nothing you paste is sent to Pagelive unless you publish it; a link published without an account stays live for 7 days, and claiming it free keeps it as one of your 2 free pages.