View an HTML file online.

Choose an HTML file and see the page it makes, rendered the way a browser would render it. The file never leaves your machine.

  • 2MBan HTML file, read on your machine
  • 0 bytesof your file sent anywhere
  • Freeno account, nothing to install
HTMLRuns in your browser

Loading the tool…

What you see

Your HTML file renders as a page, inside a sandbox.

Pick the file and the page it makes appears under the button, styles and scripts included. The frame is cut off from the rest of the site, so an unfamiliar file can't reach your cookies or this page.

  • Styles and scripts run in the frame
  • Paste markup instead of choosing a file
  • The file or markup isn't uploaded or stored

How it works

See an HTML page in three steps.

  1. Choose the file

    Tap Choose an HTML file and pick a .html or .htm file up to 2MB, or paste the markup into the box instead.

  2. See the page

    It renders in a sandboxed frame under the button. Pasted markup redraws a moment after you stop typing.

  3. Close the tab

    The page closes with the tab. No copy was ever made, so there's nothing to delete.

Sharing it

When someone else needs to see the page.

This page can't give the file an address. Uploading it can, and the link opens the page in the recipient's own browser.

Free, up to 25MB

A link with the page's title

Upload the file and it gets a short nudgehost.com link. Apps that show link previews display a NudgeHost card with the page's title, and one tap opens it.

Counts freeDetails on Pro

See whether it's been opened

Free accounts see how many times a link was opened. Pro and Studio add the time and country of each open, with a CSV export.

End dates freePasswords on Pro

Add a password or an end date

Give the link a date and it stops working after it. On Pro and Studio, a password keeps the page closed to anyone without it.

Viewer or link

What this page does, and what a link adds.

This viewerA NudgeHost link
Where the file isOn your computerOn NudgeHost, at its own address
Who can open itYou, in this tabAnyone you send the link to
Account neededNoneA free one to upload, none to open the link
Largest HTML file2MB25MB free, 250MB on Pro, 1GB on Studio
What runs in the frameStyles and scriptsStyles, scripts, forms and pop-ups
Preview card in chat appsNot includedA card with the page's title
Open trackingNot includedCounts free, time and country on Pro and Studio
PasswordNot includedPro and Studio
PriceFreeFree, with links that last 14 days. Pro is $12 a month and keeps them until you delete them

A free account holds 3 links at once, each live for 14 days.

Opening HTML

Why open an HTML file this way.

An HTML file on your desktop is only text until something renders it. Double-clicking opens a browser tab, which is fine for a file you wrote and less appealing for one that arrived by email. This page reads the file inside itself and draws it in a sandboxed frame, so you see the finished layout without handing an unfamiliar file your browser session.

The frame runs the file's styles and scripts but can't reach your cookies, the page around it or a NudgeHost account. When you are writing markup rather than opening someone else's, the live HTML editor in the dev tools lets you change it and watch it render. Pages that load images or stylesheets by a relative path need their folder, which a zipped folder served as a site keeps together. When that folder lives in Google Drive, the steps to host a website from Google Drive start with Drive's own download.

Looking at a page answers what it contains, and sending it is a separate job. Hosting the same HTML file turns it into a link that renders for anyone who opens it. Hosting has a free tier too, and the free hosting plan keeps 3 links live at once, each for 14 days.

Frequently asked questions

  • Does my file get uploaded?

    No. The viewer reads the file in your browser and renders it there, so it never leaves your machine. The file is never sent to a server and nothing about it is logged.

  • Do styles and scripts run?

    Yes. Embedded CSS applies and JavaScript executes, so the page behaves the way it was built to. The frame is sandboxed, so modal dialogs like alert() are suppressed and the file cannot redirect the page around it.

  • Why don't my images and stylesheets load?

    Files referenced by a relative path, like styles.css or img/logo.png, have nothing to resolve against once the page is read out of its folder. Anything linked by a full https:// address, including CDN libraries, loads normally. A folder of files that belong together is better hosted as a ZIP, which serves the whole project with its paths intact.

  • Is it safe to open a file someone sent me?

    The render is sandboxed on a separate origin with no access to this page, its cookies, or your NudgeHost account, which contains what the file can do here. Knowing where an unfamiliar file came from is still worth doing before you run it anywhere else.

  • How big an HTML file can I open?

    Up to 2MB. A bigger file is refused with a message giving its size, and none of it is read.

  • Can I paste or edit markup instead of choosing a file?

    Yes. Open Or paste markup instead and paste the code. The frame redraws a moment after you stop typing, so you can edit it in the box and watch the result. Whichever you used last, the file or the box, is what the frame shows.

  • Which files can I choose?

    Files ending in .html or .htm. Anything else that holds markup can go in the paste box instead.

  • Do forms work in the frame?

    They show, but submitting one does nothing, because the viewer's frame doesn't allow form submission. A hosted HTML page does allow it, so a form there sends its data wherever it points.

  • Can a link in the page open a new tab?

    Not in the viewer. The frame blocks pop-ups and new windows, so a link set to open in a new tab does nothing. A hosted page allows them.

  • Can the page use cookies or local storage?

    No. The frame has no origin of its own, so it can't read or set cookies or use local storage, and a page that depends on them may show an error or an empty state.

  • Can the page fetch data from an API?

    Only from a service that accepts requests from any origin, since the frame has none of its own. Anything that needs a login or your cookies won't answer.

  • Does the viewer work offline?

    Yes, once the page has loaded. Anything the file pulls in from a web address, such as a font or a script from a CDN, still needs a connection.

  • What character encoding does it read?

    UTF-8. A page saved in another encoding can show stray characters where accented letters should be, and re-saving it as UTF-8 fixes that.

  • What if the HTML is broken?

    Browsers are forgiving with markup, so the frame shows whatever the code produces, missing tags and all. The viewer doesn't check or correct it.

  • Why is the frame a fixed height?

    So the page can't push the rest of this one around. A longer page scrolls inside the frame.

  • Is the HTML viewer free?

    Yes. There's no account, no limit on how many files you open, and nothing to pay.

  • What happens when I close the tab?

    The page and the file's contents go with it. Nothing was stored, so there's nothing to delete.

  • Does the page keep a list of what I've opened?

    No. The viewer stores nothing about the files you choose or the markup you paste.

  • Does a hosted page run in a sandbox too?

    Yes. A hosted HTML file opens in a sandboxed frame that allows scripts, forms and pop-ups, and keeps the page away from NudgeHost's own pages and your cookies.

  • Do I need an account to host a page?

    Yes, a free one, made with an email address or Google and no card. You can pick the file first. It waits in your browser while you sign up and goes live in the new account. Whoever opens the link needs no account.

  • How long does a hosted HTML link last?

    On the free plan, 14 days. On Pro and Studio it stays up until you delete it, and any account can give it an earlier end date.

  • Will a hosted page show a NudgeHost bar?

    No. The page opens under the viewer's slim header with its filename, and no plan adds a bar to the page itself.

  • Can I update a hosted page and keep its link?

    Yes, on any account plan. Upload the new version over the old one and the same link shows it, with the view count and any settings kept.

  • Can I see who opened a page I shared?

    Not by name. A hosted link counts its opens on every account plan, and Pro and Studio add the time and country of each one, with a CSV export.

  • Can I put a password on a hosted page?

    Yes, on Pro and Studio. Anyone who opens the link enters the password before the page appears. A password-protected site doesn't serve on a custom domain, so pick one or the other.

  • What does a hosted page show as a link preview?

    A NudgeHost card with an HTML label and the page's title, or the file name when the page has no title. A password-protected link shows the standard NudgeHost card instead.

  • Can search engines find a hosted page?

    No. The page behind a hosted file link asks search engines not to index it, so it reaches the people you send it to.

  • Does the viewer change my file?

    No. It reads the file and never writes to it, so the copy on your disk stays exactly as it was.

  • Can someone else see the page I opened here?

    No. The page exists only in your tab, so there's no address to send anyone. Hosting the file is the step that gives it one.

  • Can I open a page from a website this way?

    Only once it's saved as an HTML file. The viewer opens files from your computer and has no box for a web address.

  • Does it open a file on a USB stick or a network drive?

    Yes, if your computer's file picker can reach it. The viewer reads whatever file you choose, wherever it's stored.

  • Can the page play video or audio?

    Yes, when the media is inside the file or linked by a full web address. Whether it starts on its own follows your browser's usual rules.

  • How is this different from the HTML tester?

    The viewer opens a file you already have. The HTML tester in the dev tools is an editor for writing markup and watching it render as you type.

  • Can I use it on a work computer?

    Yes, as long as your browser can open this page. Nothing gets installed, and the file stays on the machine it came from.

  • Can I open more than one file at a time?

    No. Choosing a new file replaces the one in the frame, and nothing from the first one is kept.

  • Can I see the page's source code here?

    The viewer shows the rendered page rather than the code. Paste the markup into the box and it stays visible above the frame, or open the file in a text editor.

  • Can the page read other files on my computer?

    No. The viewer reads only the file you choose, and the page inside the frame can't open anything else on your disk.

  • Can the page download files to my computer?

    No. The frame doesn't allow downloads, so a button in the page that would save a file does nothing.

  • Can the page go full screen?

    No. The frame isn't allowed to take over the screen, so a full-screen button in the page does nothing.

  • Can the page use my camera, microphone or location?

    No. The frame isn't granted those permissions, so the page can't ask you for them.

  • Will a page built with React or Vue run?

    A build that fits in one file runs, since its script sits inside the page. A build split across several files needs the others beside it, which is what a zipped site is for.

  • Can I open an email saved as HTML?

    Yes, as long as it's saved as a .html or .htm file. Images the email loads from a web address appear, and images that were attachments to the email don't, because they aren't in the file.

  • Does the viewer need JavaScript turned on?

    Yes. The viewer itself is a script running in this page, and it's what reads the file and fills the frame.

  • Can I choose the link name for a hosted page?

    Yes, on every plan. Name the link in the upload card on the homepage before you drop the file, and it reads like nudgehost.com/launch-page instead of a random string.

  • Is there a limit on how many people can open a hosted page?

    No. There's no visitor cap on any plan, so the link keeps working however many people open it.

  • Can a single hosted page have its own domain?

    Not a single file. A custom domain attaches to a zipped site, on a subdomain, and comes with Pro and Studio.

  • What happens when I delete a hosted page?

    It stops opening straight away. Anyone who follows the link afterwards lands on a page saying there is no file there.

View your file online in a few seconds.

Free to use. A link to share needs a free account with no card.

Get started free