Guide
Send an HTML file to someone
The short answer: send a link, not the file. An attached .html file usually reaches the other person as code or as a download they cannot open on their phone. A link opens as a page, in one tap, anywhere.
By the ShareHTML team. Updated .
What happens when you attach it
- Email: it arrives as an attachment. On a phone it opens as code or not at all, and some work mailboxes hold or block .html attachments, because fake sign-in pages are often sent that way.
- WhatsApp and Telegram: it goes as a document. The other person gets a download, then a text viewer.
- Messages on iPhone: a file bubble that opens in Quick Look, which shows some pages and the code of others.
- Slack and Teams: a file to download, or its code. See sharing at work.
Send a link in about a minute
- Go to sharehtml.org and drop the file on the page, or paste its code.
- Sign in with your email and the 6-digit code we send. There is no password.
- Copy the link and paste it into the email or chat instead of the file.
The person you send it to needs no account. The free plan holds 25 pages of up to 5 MB, and a page stays up until you delete it.
Fix a mistake without a new link
Replace the file in your dashboard and the address stays the same, so everyone you sent it to sees the new version.
Who can see it
Links are unlisted: only people with the link can open the page, and search engines are asked not to index it. Anyone you forward it to can open it too, so leave out anything you would not send by email.
Questions
- Can you email an HTML file?
- Yes, but it rarely opens as a page, and some mailboxes block it. A link works everywhere.
- Can I send an HTML file on WhatsApp?
- As a document, yes; it will not open as a page. Paste a link instead: WhatsApp shows a preview and opens it in the browser.
- What if the page is more than one file?
- Put the CSS and JavaScript inside the HTML file, and images as data URIs, then send it as one file. ShareHTML hosts one HTML file per link.
- Does the other person need an account?
- No. Only you sign in, to upload.
Sending to an iPhone? See opening HTML on iPhone.