Run HTML code online.
HTML, CSS and JavaScript, running as you type.
Write or paste the code on the left and the page runs on the right, scripts included. Nothing to install and no account. When it works, share it as a link.
or drop a file anywhere here
How to run HTML code here
Write or paste the code
Type in the editor or paste a whole document: HTML, a style block and a script. It opens with a small example you can change.
Watch it run
The preview redraws as you type and runs the page's scripts. There is no Run button to press, and nothing is sent anywhere.
Share the result
Press "Get a link to send" and the running page gets an address that anyone can open for 24 hours, with no account.
What runs in the preview
The preview is a real browser page, kept apart from this one. Styles, scripts, events, timers, canvas and SVG work as they would in a file you open yourself. Libraries load when you link them by a full https address.
Three things behave differently. Pop-up boxes such as alert(), confirm() and prompt() do not appear. The page cannot keep data in the browser, so localStorage and cookies throw an error. And there is no console panel here: show a value on the page, or open your browser's developer tools, where console.log from the preview shows in the Console.
Have a finished .html file rather than code to try? The HTML viewer opens it as it is.
What people run here
Code an AI assistant wrote
ChatGPT, Claude and Gemini answer with a block of HTML. Paste it here to see whether it works before you use it anywhere.
An exercise or a snippet while you learn
Change one line and watch the result change, with no editor or files to set up. Send the link to a teacher or a friend when you are stuck.
A small page that should stay online
The link lasts 24 hours. To keep the page up at an address that stays, use HTML to website.