HTML Viewer
Paste your code or open an .html file and see the page next to it. When it looks right, turn it into a link that opens on any phone.
- Free
- No sign-up to view
- Phone and tablet widths
Preview
This link stops working in about 15 minutes.
Sign in to keep it. An account is free, and a new one gets Pro free for 7 days, no card.
Your page's link
This page is over 2 MB.
Create an account and upload it there. A new account gets Pro free for 7 days, no card. After that, the Free plan holds 5 MB and Starter ($8 a month) holds 500 MB.
Create a free accountHow it works
How to view an HTML file online
- 1
Paste your HTML
Or open an .html file. The preview shows the page as you type.
- 2
Check it on every screen
Switch to Tablet or Phone, or open the preview full screen.
- 3
Get a link if you need one
One click and anyone can open the page in their browser. Sign in to keep it.
Ideas
What people check with an HTML viewer
Code an AI gave you
ChatGPT or Claude wrote a page. Paste it here to see if it works before you use it.
An email template
Check the layout of an HTML email before you send it.
Homework or a class project
See your page working, then send your teacher a link instead of a file.
An exported report
Open an .html export from a tool and share it as a page.
Plans
What's free, and how long a link works
Viewing
Free
No account
Paste or open as many pages as you want. Nothing is uploaded.
Link, no account
About 15 minutes
Pages up to 2 MB
Enough to try it. Sign in from the result to keep the link.
Free account
While people open it
5 MB of storage
Opened at least once every 90 days. Shows a small Litehost badge. Starter ($8 a month) removes the badge and adds a password.
A new account gets Pro free for 7 days, no card. Prices and limits as of October 2026. See all plans
Page with its own images or CSS file?
This viewer shows one HTML file. If your page loads style.css or logo.png from the
same folder, zip the folder and use
Upload HTML.
Our guide on
how to share an HTML file
explains when a link is better than a PDF.
FAQ
Common questions
Is the HTML viewer free?
Yes. Viewing is free and needs no account. To get a link without an account, the page can be up to 2 MB and the link lasts about 15 minutes. Sign in to keep it. A new account gets Pro free for 7 days, no card. After that, a link on the Free plan stays online while it's opened at least once every 90 days, and shows a small Litehost badge.
Is my code uploaded when I paste it?
No. The preview is drawn by your own browser. Your code is only sent to Litehost when you click "Get a link to this page".
Does JavaScript run in the preview?
Yes. Scripts, buttons, tabs and charts run in the preview, inside a sandbox that keeps them away from the rest of this page. They also run when someone opens the link.
Why don't my images show?
An image that points to a file on your computer, like C:\Users\… or /Users/…, or to a file name like logo.png, isn't in the code you pasted. Images with a full web address (https://…) show. For a page with its own image files, zip the folder and use Upload HTML.
How do I open an HTML file on my phone?
Get a link here and open it in the phone's browser. Opening the .html file from Files or WhatsApp usually shows only the text, without scripts or images.
Can I change the page after I send the link?
Yes. Sign in to keep the link, then replace the HTML file in your dashboard. The link stays the same and shows the new version.
Free tools
More free tools
- PDF to Link Upload a PDF and get a link that opens it on any phone or computer. Open tool
- PDF to QR Code Upload a PDF and download a QR code that opens it, ready to print. Open tool
- Upload HTML Upload an HTML file and get a link that opens it as a page on any phone. Open tool
- MP3 to Link Upload an audio file and get a link that plays it on any phone or computer. Open tool
- Image to QR Code Upload a photo or a JPG and download a QR code that opens it, ready to print. Open tool
- Resume Link Upload your PDF resume and get a link to share. Update it later, keep the link. Open tool
- Video to Link Upload a video and get a link that plays it on any phone or computer. Open tool
- Video to QR Code Upload a video and download a QR code that plays it on any phone. Open tool
- MP3 to QR Code Upload an audio file and download a QR code that plays it, ready to print. Open tool