Limited time: Try B12 for $1 for 7 days. Sign up now

HTML viewer

Paste HTML from ChatGPT, Claude, or a developer and see the page right away. Edit the code and the preview updates as you type.

Preview
Your page shows up here.

Want this page live on your own domain?

Turn it into a real website

Describe your page and B12's AI builds a site you can edit by chatting, with hosting included. Then upload a screenshot of your page so the AI Agent can match it. Start free on a b12sites.com address.

Build my site

How do I view an HTML file online?

Open the file in any text editor, copy everything, and paste it into the box above. The preview shows what the page looks like in a browser. If your HTML came from ChatGPT or Claude, copy the whole code block, from <html> to </html>.

Why does my page look different in the preview?

This usually happens when your HTML relies on files that aren't in your code, like images, fonts, or a separate stylesheet. Use full URLs for those files, or add the styles directly to your HTML.

How do I put my HTML page on the web?

You need hosting, a place on the internet that serves your page, and a domain if you want your own address. A website builder like B12 includes hosting, so you can skip setting up a server.

HTML viewer FAQ

Is the HTML viewer free?

Yes. It's free to use, and you don't need to sign up.

Is my code saved or sent anywhere?

No. It stays in your browser, and clearing the box removes it.

Does it run JavaScript?

Yes, scripts in your HTML run in the preview, separate from the rest of this page.

Can I download the page?

Yes. Click Download to save it as an .html file.

Can I use it on my phone?

Yes. It works in your phone's browser, so you can paste code or open an .html file without installing an app.

Last updated

Build your site with B12

Describe what you want and B12's AI builds a site you can edit by chatting. Start free.