HTML Viewer

This HTML viewer online puts a code editor and an HTML live preview side by side. Pasted code renders right away, and separate CSS and JavaScript tabs keep styles and scripts apart from the markup.
★ ★ ★ ★ ★
Tiiny Host is used by 2,000,000+ happy users
No sign-up needed to view · Trusted by teams at Salesforce, Airbnb, JLL, Nestlé
Shortcuts

Pick the situation closest to yours

Someone sent you an .html file

To see the page and its code together, paste the file's contents into the editor above. On a phone, uploading the file gives it a web address the browser can open.

A chatbot wrote the HTML

Paste the code block above to check the page before anyone else sees it, then publish it from the same screen.

You're checking an email template

Layout problems and missing images in a newsletter show up here before the test send. Email apps render HTML their own way, so a test email to yourself is still the final check.

A client has to sign off

Once the preview is published, reviewers can pin comments to the exact spot they mean, and they don't need an account to do it.

Tiny plan and above How page comments work →

You're learning or teaching HTML

Breaking a tag on purpose and watching the page change is a quick way to learn what it does. A class example can go online as a link students open on any laptop.

An agent writes the HTML for you

Coding agents can publish their own output with the upload API or our MCP server, then hand you the URL in their reply.

Solo plan and above API and MCP for agents →

Get an HTML viewer share link

The page you've been previewing goes online without being saved as a file first

1. Paste HTML code

1. Paste HTML code

Copy the markup from your code editor or an AI chat into the HTML tab, replacing the sample page. When the preview looks right, the viewer's Publish button carries it over to a new tiiny.host tab.

2. Give the link a name

2. Give the link a name

Your code arrives there as a zipped file, so a name is the only thing left to fill in. Typing team-update gives you team-update.tiiny.site.

3. Go live

3. Go live

On tiiny.host, Publish puts the page online after your email address is verified. The link works on a phone or a computer.

After you publish

Get comments pinned to the page

Feedback mode puts a comment layer over the published page. Reviewers click the heading or button they have in mind and leave a note right there.

  • Reviewers leave notes without signing up
  • Every note stays attached to the element it's about
See feedback mode → Tiny plan and above
A published page with reviewer comments pinned to its buttons and sections
Next step

Here's how you can put a whole HTML and CSS site online

Online HTML Viewer Features

An HTML online viewer and editor in one window

👁️ HTML Live Preview

Every keystroke redraws the preview, and the text of your title tag shows above it.

📖 Make Sense of Exported Markup

An exported newsletter or a page copied out of a CMS is hard to follow as tags. In the preview it reads as the finished page.

⚙️️ JavaScript & CSS Compatible

Scripts run inside the preview. A dropdown or a button with a click handler behaves the way it will on the live site.

🛠️ Spot Problems Early

An HTML error swaps the preview for a list of problems with their line numbers. The page comes back when they're fixed.

📱 Usable on a Phone

On a narrow screen the code tabs fold into a dropdown and the preview moves below the editor.

📋 One-Click Copy

The copy button grabs the code in whichever tab is open, ready to go back into your project.

🧱 Starter Page Included

Anyone writing from scratch gets a page skeleton to start from, with comments marking where the HTML and the links to the other tabs go.

📂 HTML Loader for Saved Files

A saved .html file can skip the editor. Tiiny Host's upload box publishes it as soon as you've picked a name.

🌐 Custom Domain

Solo subscribers can swap the tiiny.site address for a domain they own.

📊 Analytics

Your dashboard shows how many people opened your published pages, starting with the Tiny plan.

🧩 Embeddable

The Embed this link option in a page's project menu gives you code for placing it inside a tutorial or a help article.

🔒 Password Protect

Pages on the Solo plan can ask visitors for a password before anything loads.

Compared

Tiiny Host against other HTML code viewers

The first rows are about the preview itself, and the later ones about sharing the page with other people.

⚡ Tiiny Host
Other HTML viewers
Live split-pane preview
The rendered page changes next to your code while you type.
✓ Yes
Varies
Paste code or upload a file
Snippets render in the editor, and saved .html files open after upload.
✓ Yes
Paste, sometimes files
Nothing kept on our servers
While you're viewing, only the W3C's validator receives your code, and all it sends back is the error list.
✓ Yes
Varies
A link anyone can open
Each published page gets a tiiny.site address, and visitors need no account to open it.
✓ Yes
Sandbox link
Visitor counts
Published pages report visits on Tiny and higher plans.
✓ Yes
Rarely
Password protection
A password can lock a draft from the Solo plan up.
✓ Yes
Rarely
A Simpler Way to Preview HTML Than CodeBeautifyCodepenCodeShackBrowser Dev ToolsOpening Files In Your BrowserDesktop Code EditorsGitHub GistOther Online Viewers
Pricing

The viewer is free, and so is one published page

There's no limit on how much you use the viewer. A free published page stays up provided you log in to your account at least every three months.

Free
$0/mo, forever
  • ✓ Unlimited viewing on this page
  • ✓ 1 published page or site
  • ✓ Uploads up to 3 MB
  • ✓ 5,000 visits and 5 GB bandwidth a month
  • ✓ Free yourname.tiiny.site address
  • – Published pages show a small banner
Upgrade when you need more
from $5/mo, billed yearly
  • Tiny $5 · no banner, 25 MB uploads, QR codes, analytics
  • Solo $13 · 5 sites, custom domain, password protection, code and visual editors, API
  • Pro $31 · 15 sites, capture emails, team members, priority support
  • Pro Max $74 · unlimited sites, 2 TB for large media
See all plans → ⭐️ 7-day money-back guarantee

Publishing limits by plan

Per-file upload limit by plan
Free
3 MB
any file type
Tiny · $5
25 MB
per project
Solo · $13
75 MB
per project
Pro · $31
10 GB
account limit
Pro Max · $74
2 TB
account limit

Snippets and single pages weigh very little next to the images and video a full website carries.

AI chat and app builders

Preview AI-generated HTML here first

Code from a chat goes into the editor above for a first look. App builders hand over whole projects, which publish as a zip.

ChatGPT

The reply's HTML block goes into the HTML tab. Separate CSS or JavaScript blocks have tabs of their own.

Claude

HTML artifacts paste in unchanged, while React ones need converting first, as the FAQ below explains. The Tiiny Host connector publishes from the chat itself.

Gemini

Everything in the Code tab of a Canvas belongs in the HTML tab here. Games and small tools built with JavaScript run in the preview too.

Lovable

Lovable exports are React projects with a build step, so they skip the viewer and upload as a zipped dist folder.

Agent friendly

Turn HTML into a live link from code or an AI agent

Chat assistants and coding agents hand back HTML constantly. The upload endpoint turns that file into a public URL, and a PUT call to the same address replaces the page later.

REST APISimple upload endpoint. Build automations and scheduled publishing.
MCP serverClaude Code in one command. Cursor, VS Code, Windsurf, Zed, Codex, v0 with a few lines of config.
Claude connectorPublish reports and documents straight from Claude Web, Desktop and Code.
SkillInstall once and your agent can turn any file into a shareable link.
Read the API docs → API access on Solo and above
upload.sh
curl -X POST https://ext.tiiny.host/v1/upload \
  -H "x-api-key: $TIINY_API_KEY" \
  -F "files=@preview.html" \
  -F "domain=html-preview.tiiny.site"

# → https://html-preview.tiiny.site
# PUT the same domain to replace it
HTML Code Viewer Use Cases

What people use an HTML viewer online for

Instant Previews

Instant Previews

Layouts from a tutorial or a design handoff show up the moment you paste HTML code.

Quick Prototyping

Quick Prototyping

Rough prototypes go to teammates as links long before a proper build exists.

Embedding Content

Embedding Content

A YouTube player or a booking widget pasted into the page shows how its iframe fits the layout.

Debug Issues

Debug Issues

Bugs are easier to pin down when a short snippet and its result are visible together.

Portfolio Projects

Portfolio Projects

Employers looking at your HTML and CSS work can click through it at a real address.

Template Downloads

Template Downloads

Website templates usually arrive as a zip. Used as an HTML zip file viewer, Tiiny Host puts the template online for a look at every page before you change anything.

Resources

HTML guides from our blog

How to Upload an HTML File to a Website

Goes from a finished HTML file to a live link, with tips on editing and password-protecting the page afterwards.

How to Add JavaScript to HTML

Explains the two ways to add JavaScript to a page, inline or as a separate .js file.

How to Edit an HTML File: Basics for Beginners

Covers the tools you need, then walks through opening an HTML document and editing its code.

HTML Tester: Make Sure Your HTML Code Works Everywhere

Describes what an HTML tester checks and lists eight tips for W3C compliance.

Frequently Asked Questions

What is an HTML viewer used for?

Mostly for checking how markup renders before it goes anywhere, such as an email template you are about to send or a layout you are still building.

How do I see what my HTML code looks like?

Whatever you paste into the viewer above appears rendered in the preview pane, to the right of the code on a computer and underneath it on a phone.

What happens if I paste a React artifact from Claude?

The preview won't show the app. A React artifact is a component file (.jsx) that needs a build step before a browser can run it, and this viewer works with HTML. Ask Claude to rewrite it as a single HTML page with React pulled in from a CDN, then paste that version.

Where can I view an HTML file online?

For a quick look, paste its contents into the editor here. Uploading it to Tiiny Host gives the file an address other people can open.

Can I view a zipped HTML site?

Yes, after uploading the zip to Tiiny Host. The site opens from its index.html file, so the zip has to include one. If styles or images go missing, Analyze site in the project's three-dot menu points to the broken paths.

Can I open HTML on Chrome?

Yes. Double-clicking an .html file usually opens it in your default browser, and you can also drag the file into a Chrome tab. Other people can't open it from there, though.

Is there a way to open .html files on a phone?

The upload box on tiiny.host works from a phone's browser. Once uploaded, the file becomes a page at its own link, which Safari or Chrome shows like any other website. To read the code itself, paste it into the viewer above.

Does the HTML viewer cost anything?

Nothing, however often you use it. Paid plans are for publishing extras such as removing the banner or using your own domain.

Do styles and images survive publishing?

Styles do, since Publish carries everything in the editor tabs over to tiiny.host, and so do images loaded from a web address. Pictures saved only on your computer stay behind, so upload those in a zip together with the page.

How do I edit HTML after it's published?

A new version can go up at the same link on any plan. With Solo you also get the online code editor, which saves changes to the live page directly.

Who can see the HTML I paste or publish?

Code in the viewer stays off Tiiny Host's servers, although the HTML does go to the W3C validator at validator.w3.org for error checking. A published page opens for anyone who has the link. Keeping it out of search results is a Solo setting.

Can I embed my HTML in another website?

The project menu of a published page holds its embed code, ready to paste into a blog post or a course page.

When do I need a Tiiny Host account?

Only for publishing. Viewing and editing code here is open to everyone, and signing up is free.

How is this different from opening the file in my browser?

A local file is visible only on your computer, and editing it means switching between an editor and the browser. Here the code and the preview share one screen, and publishing gives the page an address other people can open.

Share the page you just previewed