OxyPages

Online HTML Tester And Code Runner

Type HTML, CSS and JavaScript and run it right here. When it works, put it on a real link in one click.

Free. No account. Live in seconds.
HTML (body)
2.9 KB

Ctrl+Enter (Cmd+Enter on Mac) runs the code from any editor.

Result
Console0 lines

Nothing logged yet. console.log, console.warn, console.error and uncaught errors show up here.

Free. No account. Live in seconds.

How It Works

How To Use The HTML Tester

  1. 1

    Write Or Paste Your Code

    Use the HTML, CSS and JS tabs, or open a whole .html file. A working sample is loaded so you can see the runner in action before you replace it.

  2. 2

    Run And Read The Console

    The result re-runs as you type, or press Run (Ctrl+Enter). console.log, warnings and uncaught errors appear in the console strip under the preview.

  3. 3

    Publish When It Works

    Copy or download the finished index.html, or click Publish to put it on a free HTTPS link in seconds. No account needed; claim the link to keep it.

About This Tool

An HTML Tester That Runs Your Code, Not Just Displays It

Three editors, one result, and a console that tells you what your script actually did.

This HTML tester is a small playground for trying code in the browser. You get three tabs - the contents of the page body, its CSS, and its JavaScript - and the right-hand pane shows the composed page running live. Under the preview, a console strip captures everything your script prints with console.log, console.warn and console.error, plus any uncaught error, with the line number in your JS tab so you can find it. When you want the whole thing as a single file, Copy and Download give you a complete index.html with the CSS and script inlined.

Who it is for

Most people who need to test HTML code did not write it from scratch. It came out of ChatGPT or Claude, a designer sent it over, or a course handed it to you and said "open this in a browser". You want to know: does it run, does the button do anything, and why is the console complaining? This html code runner answers those three questions without installing an editor or setting up a project. It is equally handy for quick experiments - a CSS trick you saw somewhere, a five-line script you want to check before pasting it into a real page.

How it works

Everything happens on your device. The editors are combined into one document (<style> in the head, your markup in the body, <script> at the end) and rendered inside a sandboxed frame. The sandbox is what lets you run HTML code online safely: the script executes on an isolated origin with no access to this site or your other tabs. The same isolation means fetch to other sites, localStorage and cookies do not work inside the frame - that is a limit of the test environment, not of your code. Nothing is uploaded until you choose to publish.

Limits worth knowing

  • Opening a .html file loads it as-is into the HTML tab; move its styles and scripts into the other tabs if you want to edit them separately.
  • The console shows text: objects are printed as JSON, and it keeps the last 200 lines.
  • Your work lives only in this page. Reloading clears it, so copy, download or publish before you leave.

From test to live page

Once the result looks right, the natural next step is to put it somewhere real. The Publish button sends the composed page to OxyPages and hands back a live HTTPS link on a free subdomain - no account, live in seconds. The link lasts 30 minutes unless you claim it, and claiming is free; from there you can pick your own address and, on a paid plan, connect a custom domain. See how it works and pricing for the details. If you only need to look at a finished file rather than run code, the HTML viewer is the lighter option, and the HTML formatter will tidy the markup before you ship it.

Questions

Frequently Asked Questions

Yes. Put your script in the JS tab and it runs at the end of the page body, exactly like an inline script tag. console.log, console.warn, console.error and uncaught errors all show in the console strip under the preview.

Try It Now

Still Here? Drop It In.

The whole pitch fits in one sentence: your HTML, on a link, in seconds.

Drag and drop your HTML file(s), folders, or ZIP file

or ·

No account needed. Your unclaimed website stays live for 30 minutes on a free subdomain. Claim it to your account to keep it permanently.

  • No Account Needed
  • Free SSL
  • 30-Minute Unclaimed Link, Claim To Keep It