HTML Runner

Write and run HTML online with instant live preview and a real console. Sandboxed, private, and executed entirely inside your browser. No signup, no uploads.

HTML Runner demo Hello from the HTML Runner

Edit the markup on the left, then press Run.

Semantic markup test

Log to console

What Is an Online HTML Runner?

An online HTML runner is a browser-based editor that renders your markup the moment you press Run. It removes every step normally required to see a page: no folder to create, no editor to install, no local server to start, no build tool to configure. You write HTML on one side and watch the browser paint it on the other.

This runner is built for people who need a fast, trustworthy answer to a simple question: does this markup do what I think it does? That question comes up dozens of times a day for developers, students, marketers pasting blocks into a CMS, and anyone learning how the web is structured.

How the Sandbox Keeps You Safe

Executing arbitrary code in a browser tab is only safe when that code is isolated. The preview here is an iframe created with a sandbox attribute that grants scripts, modals, popups and form submission — but deliberately withholds allow-same-origin. Without that permission the frame receives an opaque origin, meaning the code inside it is treated as belonging to a different site than Zubac Tools.

The practical result: markup you paste cannot read the page around it, cannot touch cookies, cannot read or write this site's localStorage, and cannot call privileged browser APIs on our behalf. Console output and runtime errors are forwarded across the boundary using postMessage, and every message is checked to confirm it came from the preview frame before it is displayed.

Reading Errors Properly

Silent failure is the most frustrating part of debugging markup. This runner captures console.log, info, warn, error and debug, uncaught exceptions via window.onerror, and unhandled promise rejections. Errors arrive with the line and column reported by the browser, and objects are serialised so you can read their shape instead of seeing [object Object].

Editor Features That Matter

  • Syntax highlighting and folding for real HTML, powered by a full code editor rather than a textarea.
  • Line numbers and bracket matching so error messages map to what you see.
  • One-click formatting that reindents the entire document consistently.
  • Import and download to move between this playground and your local files.
  • Fullscreen mode and resizable panels for working comfortably on large layouts.
  • Ctrl/⌘ + Enter to run without reaching for the mouse.
  • Automatic local drafts so a refresh never costs you work.
  • Light and dark themes that follow the rest of the site.

Common Ways People Use It

Checking whether a snippet copied from documentation actually works. Teaching a beginner what a tag does by changing it and re-running. Verifying that a marketing block renders correctly before pasting it into a landing page builder. Reproducing a rendering bug in isolation so it can be reported clearly. Testing accessibility basics such as heading order, alt text and label association. Building a tiny reference page for a component while designing it.

HTML Runner vs Local Development

A local project wins for anything with dependencies, routing, a bundler or a real backend. A browser runner wins for everything smaller: an experiment, a lesson, a snippet review, a quick reproduction. Because there is no install step, the runner is also the only option on a locked-down work machine, a school computer, a tablet or a phone.

Privacy

All processing happens locally in your browser. No markup, console output or file is transmitted to Zubac Tools or any third party. Drafts are stored only in your own browser and can be cleared at any time with the Reset button.

Continue with the HTML, CSS & JavaScript Runner for multi-file projects, tidy your output with the HTML Minifier, or check document structure with the Heading Structure Checker.

Related free tools

  • XML Formatter & Minifier — Beautify or minify any XML — SOAP, RSS, SVG, sitemap. Browser-based parser.
  • XML to JSON Converter — Parse any well-formed XML into a clean JSON tree with attributes and arrays.
  • JSON to XML Converter — Convert JSON to well-formed XML — supports attributes, custom root, declaration.
  • CSV Viewer — Open CSV or TSV files in your browser — sort, search, paginate, export filtered view.
  • JSON to CSV Converter — Convert JSON data to CSV format. Export to spreadsheets easily.
  • CSV to JSON Converter — Convert CSV data to JSON format. Useful for API development.
  • JSON Formatter — Format, beautify, or minify JSON with customizable indentation.
  • JSON Validator — Validate JSON syntax and find errors with line and column numbers.
  • HTML Minifier — Compress HTML by removing comments, whitespace, and line breaks.
  • CSS Minifier — Minify CSS by stripping comments, whitespace, and unnecessary characters.
  • JavaScript Minifier — Compress JavaScript by removing comments, whitespace, and empty lines.
  • Base64 Encoder/Decoder — Encode text to Base64 or decode Base64 back to text. UTF-8 support.

Browse all free tools · Guides and tutorials · PDF tools · Developer tools · Text tools · SEO tools