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 app and dropbox.com
  8. Manage account
  9. Space and storage
  10. Photos and videos
  11. Mobile
  12. Dropbox Paper

Force a file or folder to download, or to render on dropbox.com

You can make simple modifications to Dropbox links to share files the way you want.

Force a file or folder to download

To force a 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:

https://www.dropbox.com/s/a1b2c3d4ef5gh6/example.docx?dl=1

Note: The original shared link URL may contain query string parameters already (for example, dl=0). App developers should be sure to properly parse the URL and add or modify parameters as needed.

Render a file in a browser

Some browsers aren't configured to correctly preview files. While certain file types can be downloaded instead of opened, others—like HTML—are not supported.

To bypass the preview page and allow your browser to directly render your files, use raw=1 as a query parameter in your URL. Adding raw=1 to a 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.

Learn more

Dropbox Basic (free) users: Beginning October 3, 2016, you can no longer use shared links to render HTML content in a web browser. If you created a website that directly displays HTML content from your Dropbox, it will no longer render in the browser. The HTML content itself will still remain in your Dropbox and can be shared. Learn more.

Dropbox Pro and Business users: Beginning September 1, 2017, you can no longer render HTML content.