HTML viewer

Drop in HTML or an app folder and watch it run, then publish it as a link.

How to view HTML online

  1. Paste your code, or drop an .html file or a whole folder on the viewer.
  2. Watch it run. Code previews as you type, and tablet and phone show smaller widths.
  3. Publish it as a link people can open, or download your HTML.

What the HTML runner supports

  • Inline CSS and JavaScript
  • Scripts, styles and images from a full https address
  • Forms, alerts and canvas
  • Snippets with no page around them
  • Folders with their own styles, scripts and images

Drop the built version of an app, often a folder called dist. The preview does not run server code.

  • ChatGPT
  • Claude
  • Gemini

View HTML from ChatGPT, Claude or Gemini

Ask for one file and you can paste the whole answer. If your AI gives you a download, use Open file.

Give me this as one self-contained HTML file. Put the CSS and JavaScript inline, load nothing from my computer, and make it work on a phone.

Questions

Is my code uploaded?

Viewing it uploads nothing: your code or folder runs in your browser, and dependencies and hidden files such as .env are left out. It is uploaded only if you choose Publish as a link and confirm it after signing in. Code that loads something from the internet still makes that request.

Is it safe to run HTML I did not write?

The preview runs in a sandboxed frame with no access to your SecondPage account or this site. It is still real code, so do not type passwords into a page you do not trust.

What happens when I publish?

You sign in or create a free account, and your page or folder is waiting in the upload window. You choose who can open it before it goes online. Published Pages keep one link, and people can comment on them.

Can I open an HTML file on my phone?

Yes. Choose the file, or paste the code. The preview sits under the code on small screens.

Skip the copy and paste

Connect SecondPage to the AI you use. It publishes the page for you, then revises it at the same link.

Connect your agent