← All tools

HTML file viewer: open an .html file online

Open a local .html file in the browser and, when you want, turn it into a link you can send.

No account needed
What you give it

A single .html file from your device.

Publish workbench⚡ Live preview
Drop a .html / .zip file, or click to choose
Without an account you can keep a page up to 3 months.Sign in to manage pages and extend them by 6 months once every 6 months.
≤ 5 MB per file · ≤ 20 MB per bundle
Preview
🔒 Runs on its own subdomain

Putting your page online…

Checking files, assigning an isolated subdomain and publishing. Your input is kept so you can keep editing.

✓ Files checked✓ Content scannedPublishing…

That step failed — your content is safe

Not indexed by search engines by defaultEach page on its own subdomainUpdate, roll back or delete anytime

How to open an HTML file

How do I open HTML file attachments in a browser?

Your browser is a built-in HTML file opener. Double-click the saved .html file or drag it into an open browser window. An address starting with file:/// means the browser is reading the copy on your device.

Why won’t my HTML file render?

Show filename extensions and check the file ends in .html. Compare its size with the original to spot a truncated download. If the text appears but interactive features fail, check the browser console for errors about blocked requests to local files.

How do I preview the file and share a link?

Upload an .html file up to 5 MB or paste its source into this HTML file viewer. Check the rendered preview, then publish to a dedicated htmlurl.page subdomain without creating an account. The link lasts 7 days by default and you can choose up to 90 days. You can add a password and use the edit token to update the same link.

Who it is for

For anyone who received an .html file and just needs to read or forward it.

Before you start

What program opens an HTML file?
A web browser such as Chrome, Firefox, Safari, or Edge can open an HTML file directly. Double-click the file or use the browser's Open command, and check that the address starts with file:/// so you know it opened from your device. A code editor is useful when you want to inspect or change the markup.
Why won't my HTML file open in Chrome?
First check the full filename and confirm it ends in .html rather than .txt. Try opening it from Chrome's file picker, then check whether the file is empty, damaged, or saved with incomplete markup. Chrome can restrict scripts that read other local files, so a page may open while some features remain unavailable.
How do I view an HTML file without uploading it anywhere?
Keep the file on your device and open it locally by double-clicking it or dragging it into a browser window. Its address should start with file:/// and the page can be viewed without sending the file to a website. Local browser security can limit scripts that request other files from your computer.
Can I share an HTML file as a link instead of sending the file?
Yes. Upload one HTML file or paste its source into the HTMLURL workbench, review the preview, and publish it to get a page-specific htmlurl.page link. Anonymous publishing does not require an account and lets you choose retention up to 90 days. You can add a password and use the edit token to update or roll back the page.
Does opening an HTML file run its JavaScript?
A browser generally runs JavaScript included in an HTML file, subject to its local-file security rules. Scripts may not be able to read nearby files or make some requests when the page uses a file:/// address. HTMLURL renders previews in a sandbox and publishes content on a separate page subdomain.
Is this HTML file viewer free, and do I need an account?
Yes. The viewer and anonymous publishing are free and require no account. A single HTML file can be up to 5 MB, and a bundle can be up to 20 MB. Anonymous pages can be kept for up to 90 days, served with a noindex directive, protected with a password, and updated or rolled back with the edit token.