1. Sharing files and folders
  2. Payments and billing
  3. Security and privacy
  4. Dropbox Business
  5. Syncing and uploads
  6. Sign-in help
  7. Desktop client and web app
  8. Manage account
  9. Space and storage
  10. Photos and videos
  11. Mobile
  12. Dropbox Paper

How do I force a file to download from the web?

There are a few simple modifications you can make to Dropbox when sharing link URLs to ensure browsers handle your Dropbox links the way you want.

Render a file in your browser

Some browsers aren't configured to correctly display files in your browser. For these files, you can tell your browser to download the file instead of attempt to open it. To bypass the preview page and allow your browser to directly render your files, use raw=1 as a query parameter in your URL. For example:




Note that this URL will cause an HTTP redirect. If you're an app developer using such a URL in your own code, please make sure your app can follow redirects.

Force a file or folder to download

To cause the browser to download a file or folder rather than display it, you can use dl=1 as a query parameter in your URL. For example:


Note that the original share link URL may contain query string parameters already (e.g. dl=0), so app developers should make sure to properly parse the URL and add or modify parameters as needed.

Public folder links

Accounts created before July 31st, 2012 are pre-populated with a Public folder. All the functionality of Public folders (and more) is available from anywhere in your Dropbox by creating a Dropbox link.

The primary difference between Dropbox links and Public links are that unmodified Public links will render in your browser by default rather than open in a preview window on the Dropbox website. If you would rather force the Public link to directly download rather than render in the browser, add ?dl=1 to the end of the URL, as described above.