How to Open an HTML File Someone Sent You
Someone sent you an HTML file and it shows code, downloads instead of opening, or looks unstyled. Here's how to open it properly on any device.
An HTML file is a web page that has not been served yet. That one fact explains almost every problem people hit when sharing one: it shows as code, it downloads instead of opening, or it renders with no styling because its stylesheet was left behind.
This collection covers the mechanics of getting an HTML file in front of someone else, and what to do once they can see it.
Host it and share the link. A web server is what declares the file as HTML so the browser renders it as a page instead of downloading it, and hosting also carries the CSS, JavaScript, and images along with it.
Because it was served as plain text or opened in an editor. Browsers render HTML based on the content type a server declares, which is why the same file works from a URL and fails as an attachment.
An HTML attachment can render a convincing fake login page from the recipient’s own disk, with no suspicious URL for a filter to catch. It is a well-known phishing vector, so providers strip, quarantine, or warn on these files by design.
Not always — some tools accept anonymous uploads and return a temporary link. The usual tradeoffs are that the link expires, you cannot update it in place, and there is nowhere for reviewers to leave feedback.
Someone sent you an HTML file and it shows code, downloads instead of opening, or looks unstyled. Here's how to open it properly on any device.
Sending the file is the easy half. Here's how to get an HTML file in front of a client so they can open it, understand what to review, and give you usable notes.
Every way to share an HTML file so the recipient sees a working page instead of raw code — and why most of the obvious options fail.
Netlify Drop is a production host with a drag-and-drop front door. Undraft is a review tool. Here's which one fits which job when you just need a link.
Drag-and-drop hosts, code sandboxes, cloud drives, tunnels, and collaboration hosts — what each one is actually good for when you just need a link.
One self-contained HTML file or a zipped folder? The choice decides whether your page renders correctly for the person opening it. Here's how to pick.
HTML attachments get stripped, flagged, or delivered as raw code. Here's why mail providers treat them as a threat, and the reliable alternative.
Cloud drives store files; they don't serve web pages. Here's the technical reason an HTML file won't render there, and what to use instead.