Dropbox HTML File Shows Code Instead of a Webpage? Here's the Fix

Nick Kirtley

Nick Kirtley

11/24/2026

#dropbox#html#shareable link#static hosting
Dropbox HTML File Shows Code Instead of a Webpage? Here's the Fix

AI Summary: This article explains why a Dropbox HTML file shows code instead of a webpage when you share it: Dropbox no longer renders HTML from shared links, a change it made in 2016 and 2017 and says is there to prevent abuse. It covers what the dl=0, dl=1 and ?raw=1 link variants do with an HTML file, why sharing a folder with an index.html doesn't produce a website, and the working fix: upload the same file or folder to a static host such as 99helpers to get a link that renders as a page.


Need a link that opens as a page right now? Drop your HTML file on 99helpers and share the address it gives you.

You built a page, saved it as an HTML file, put it in Dropbox and sent the link. Then the person on the other end writes back: "It's just a wall of code." Or you opened the link yourself and saw your own <html>, <head> and <div> tags instead of the design you made.

Nothing is wrong with your file. Dropbox simply doesn't show HTML as a webpage any more. Here's why, what the usual link tweaks do, and how to get a link that opens as a real page in about a minute.

Why your Dropbox HTML file shows code instead of a webpage

A browser only draws a page when the server tells it the file is a web page, with a text/html MIME type. Dropbox deliberately doesn't do that for files opened through shared links. Its help article on shared links states that shared links don't render HTML content in a web browser, and in the community forum a Dropbox team member explains that HTML isn't rendered to prevent abuse via share links. An HTML page can look like anything, including a bank login, so a file-sharing service serving HTML from its own domain is an easy tool for phishing.

This isn't new. Dropbox's Public folder used to work as a simple website host, but according to its notice about the Public folder, free Basic accounts lost HTML rendering on 3 October 2016, and Plus and team accounts followed on 1 September 2017. Older tutorials that tell you to "just put it in your Public folder" date from before then.

So the code view is Dropbox working as intended. The fix is not a different Dropbox link but a different place to put the file.

What the Dropbox link tricks actually do

Forum threads offer the same few suggestions. Here's what each does with an HTML file.

The normal link (dl=0)

A standard shared link ends in dl=0. It opens Dropbox's preview page, not your file. For photos and PDFs the preview is fine. For HTML, the preview shows the file's source as text, which is the code your recipient is complaining about.

Adding ?raw=1

The most common tip is to change the end of the link to raw=1. Dropbox's help describes raw=1 as the way to skip the preview and let the browser show the file directly, and for an image or a PDF that's exactly what happens. For HTML, Dropbox's rule that shared links don't render HTML still applies, so you get the raw source or a download instead of a page. Forum users report raw=1 appearing to work for some people and not others, so even when it looks fine on your screen, don't count on it for the person you send it to.

Forcing a download (dl=1)

Changing the link to dl=1 makes the browser download the file. The recipient can then open the downloaded copy, and their browser will show it as a page. That's clumsy: they have to find and open the download, phones handle local HTML files poorly, and any images, CSS or scripts in separate files won't come along.

Sharing a folder with an index.html

If your page is a whole site, you might share the folder and expect the index.html inside it to act as the home page. Dropbox shows a folder link as a file list. Clicking index.html opens the same code preview, and the page's relative links to style.css, script.js or images/ lead nowhere, because Dropbox isn't serving the folder as a website. An index.html is only treated as a home page by a web host.

The fix: put the same file on a host that renders HTML

What you need is static file hosting: a service that stores your files and serves HTML as HTML, with HTTPS, at its own address. 99helpers does that with no setup, using the same files you put in Dropbox.

  1. Go to 99helpers and drop in your HTML file. For a site with CSS, JavaScript and images, drop the whole folder or a .zip of it instead.
  2. Choose an address, for example my-page.99helpers.site.
  3. Publish and copy the link.

Anyone who opens the link sees your page, rendered, on desktop and mobile. No account, no download, nothing to install.

If your page is a folder

Keep your index.html at the top level of the folder or zip. 99helpers keeps your folder structure as it is, so relative paths like css/style.css or images/logo.png load just as they did on your computer. Other pages work too: /about serves about.html, and subfolders open their own index.html. Our guide to hosting a one-page website with just an index.html file goes into the folder layout in more detail.

Updating the page later

With Dropbox you'd replace the file and hope the link still pointed at the new one. On 99helpers you publish the new version to the same address, so the link you already sent shows the update. Earlier versions are kept, so you can roll back if needed.

Dropbox vs a static host for HTML

What you wantDropbox shared link99helpers
HTML opens as a webpageNo, shows code or downloadsYes
CSS, JavaScript and images loadNoYes, from your folder or zip
index.html works as the home pageNoYes
Recipient needs to download anythingOftenNo
Update without changing the linkNot reliablyYes

Dropbox is still a good place to store and sync files. It just isn't a web host.

Frequently asked questions

Can I make Dropbox render HTML again?

No. Dropbox removed HTML rendering from shared links on purpose and hasn't brought it back. No link parameter or account setting changes that.

Why does the link work for me but show code for others?

You may be signed in to Dropbox, and some forum answers suggest Dropbox can open the file differently for its owner, for example in an app instead of the web preview. Open the link in a private window to see what everyone else sees.

Is there a free way to share an HTML file as a webpage?

Yes. 99helpers' free plan hosts an HTML file or a small site at its own HTTPS address. For the general process, see how to host an HTML file online in 60 seconds.