Opening an HTML file someone sent you on Telegram
A teammate posts report.html in a group or a DM. On a laptop it would
open in a browser. On a phone you get one of these:
- Telegram says no app can open the file, or nothing happens.
- It opens as raw code — tags, brackets, no page.
- It opens, but it's blank or completely unstyled.
Telegram doesn't render HTML itself. It hands the file to another app,
and what happens next depends on your device and on what the file
actually is.
On Android
- Tap the file in the chat to download it, then tap it again.
- If Android asks which app to use, pick Chrome or Samsung
Internet — not a text editor, and not a bare "HTML Viewer", which
shows simple markup and usually ignores scripts.
- No browser offered, or it opens in the wrong app? Move the file
somewhere a browser can reach. Tap ⋮ on the message (or
long-press it) → Save to Downloads. Then open your file manager
(Files by Google, or My Files on Samsung), go to
Downloads › Telegram, long-press the file → Open with → choose
the browser.
Why the extra step: on Android 11 and later, Telegram keeps what it
downloads inside its own folder under Android › data › org.telegram.messenger, and Android stops file managers and browsers
from opening that folder. Save to Downloads puts a copy where they can.
On older Android, the files are in Telegram › Telegram Documents and
you can open them from there directly.
If a wrong app keeps grabbing .html files, clear its default under
Settings → Apps → that app → Open by default. Full walkthrough,
including the content:// problem below:
open an HTML file on Android.
On iPhone and iPad
- Tap the file. Telegram opens it in the system document preview,
the same Quick Look previewer the Files app uses. A simple page often
renders right there.
- For more room, tap Share → Save to Files, then open it from the
Files app.
That's as far as it goes. iOS has no way to open a local .html file as
a normal Safari tab, so you're always in a previewer. Pages that rely on
scripts, separate files or data fetched at view time may stay partly or
completely blank. More detail: open an HTML file on iPhone
· on iPad.
On Telegram Desktop
Click the file to download it. Telegram Desktop saves it to
Downloads › Telegram Desktop and may ask you to confirm before opening
a file type that can run code — HTML is one. Choose Show in folder
from the file's right-click menu and open it in Chrome, Edge, Firefox or
Safari. If it shows code, the file opened in an editor; see
HTML file shows code instead of the page.
Or open it right here
Use the box on this page: pick the file you saved from Telegram, and it
renders in your browser. On Android, save it to Downloads first so the
file picker can see it; on iPhone, save it to Files. Nothing is
published unless you ask for a link.
Why it opens blank: it was never one file
Most "HTML reports" are really a folder: index.html plus css/,
js/, images and data files. Playwright and Allure test reports, coverage
reports, Jupyter and Sphinx exports, and any page saved from a browser
with Save page as (which writes a _files folder next to the .html)
all work this way. Telegram sends the one file that was attached. Every
reference inside it now points at something that isn't on your device.
A zip doesn't rescue it on a phone. Android opens local files through a
content:// handle to one file, so the page can't load the files
next to it even after unzipping. The iPhone previewer shows one file at a
time. And reports that load their data with fetch() are blocked from
reading local files on any device, desktop included.
Nothing you change on the phone fixes this. The page has to be at a web
address.
The fix: ask for a link, not a file
Whoever has the report on a computer drags the file — or the whole
output folder, or a zip — into Comma and
posts the link in the chat instead:
index.html becomes the page, the CSS, scripts, images and data upload
alongside it, and relative references point at the uploaded copies.
- It opens in Chrome or Safari like any website, with charts and filters
working. Nothing to download, save, or unzip.
- Everyone in the group opens the same page, and can comment on a
specific number instead of sending screenshots back.
If you're the one sending it
An .html file costs every recipient those steps on a phone and often
still fails. Send a link the first time. If it has to be a file, the
HTML inliner packs a folder into one
self-contained .html that at least opens offline.
Is it safe to open?
Be careful with .html files you didn't expect, especially in large
groups and channels. An HTML attachment is a long-standing way to deliver
a fake sign-in page: it opens on your device, looks exactly like your
bank, wallet or email login, and sends whatever you type to someone else.
If a file arrives out of the blue, check with the sender, and never enter
a password or recovery phrase into a page that came as an attachment.
Comma renders uploaded HTML inside a sandboxed iframe with no access to
your session, cookies or storage. That limits what a page can do to you;
it is not a malware scanner.
Try it
Comma is free — unlimited reports, unlimited commenters, unlimited
revision history.
Turn the file into a link →
Related