BuildWeb

HTML viewer: open or paste HTML and see the page

This free HTML viewer online runs in your browser. Paste your code or open an .html file. The page appears next to it as you type, and nothing leaves your browser until you publish.

0 bytes of 10 MB

  • Free
  • No sign-up
  • Live preview
  • Phone, tablet and desktop widths
  • Up to 10 MB

How to view an HTML file online

  1. Paste or open. Paste HTML into the box, or open an .html file from your computer or phone.

  2. Check the HTML preview at three widths. Switch between phone, tablet and desktop. View HTML code next to the page, and edit it: the preview updates as you type.

  3. Share it if you like. Click Publish as a link to get an address on buildweblink.com and a QR code. Without an account the link lasts 24 hours.

How to open an HTML file someone sent you

An .html file is a web page saved as a single file. This page works as an HTML file viewer and HTML reader for it. Your own device can often open it too.

  • On a computer: double-click the file and it opens in your browser. If it opens in a text editor instead, right-click and choose a browser under "Open with". Or use Open a file in this HTML viewer.
  • On an iPhone or iPad: the Files app often shows HTML as plain code instead of a page. Open it here with Open a file, and the page appears in the preview.
  • On Android: some file managers open HTML in the browser; others don't. Use Open a file here and the page appears in the preview.
  • From ChatGPT, Claude or Gemini: copy the code from the chat and paste it into the box. BuildWeb isn't affiliated with OpenAI, Anthropic or Google.

A word on files from strangers. An HTML file can carry scripts and links like any web page. In this viewer the code runs in a sandbox, walled off from your BuildWeb account. Still, don't type passwords or card numbers into a page from a file you didn't expect.

An HTML file from an email opened as a page on a phone

Check your HTML on a real phone

The phone width in the preview gets you close. A real phone shows the actual fonts and how big a button feels under your thumb.

Publish the page, then scan the QR code with your phone camera. It opens the same page at its buildweblink.com address. Scripts aren't stripped from published pages, so they run there too; free links add a small BuildWeb banner. If something looks off, fix the code here and publish it again.

Scanning a QR code to check an HTML page on a phone

What this HTML viewer does, and what it doesn't

It does

  • Render HTML, CSS and JavaScript live, in a sandboxed frame in your browser.
  • Show the page at phone, tablet and desktop widths.
  • Open .html files up to 10 MB, or any code you paste.
  • Turn the page into a link and a QR code when you publish it.

It doesn't

  • Show images or stylesheets that point to files on your computer. The browser isn't allowed to reach them from a web page. Put the page and its files in a ZIP and publish that instead, from the homepage.
  • Format or check your code, and there's no console. It's an HTML renderer and HTML code viewer, and that's all.
  • Run server code. PHP, Node.js and Python need a server; this viewer is for pages made of HTML, CSS and JavaScript.

More free tools

HTML viewer questions

See your HTML as a page

Paste the code at the top of this page, or open the file you were sent.

Open the HTML viewer