Update
Both Edge for Android and Firefox for Android have native support for opening PDF files directly in the browser.
Original answer
You can use a Google Docs page to view PDF files in the browser. To do this, visit the page https://docs.google.com/viewerng/viewer?url=http://yourfile.pdf, where http://yourfile.pdf is the path to the PDF file you want to view (credits to this answer).
Unfortunately, there is as far as I know no way to do this automatically in Chrome (you can always paste the URL manually every time you want to open a PDF file but that's not very practical). However, if you use a browser that supports extensions, it's possible to use an extension to automatically redirect PDF files to this URL. Unfortunately, you can't do this on any well-known browsers (Chrome and Edge for Android don't support extensions at all, and Firefox for Android only supports a very limited set of extensions), but there are less well-known browsers where you can do this. The one I use is Kiwi (I have no association with its author).
Once you've installed Kiwi (or another browser that supports Chrome extensions), install the Redirector extension (I have no association with its author). Next, click on the three dots on the top right, scroll down, click "Redirector", then click on the "Edit Redirects" button, and then click on "Create new redirect":

That will open a popup with five text boxes and two checkboxes. Enter the following information:
- The first box is just a description, you can enter whatever you want, for example
Open PDF in browser. - The second box is an example URL to a PDF file, you can enter the URL to whatever PDF file you want.
- In the third box, enter
(^https?://[^?]+\.pdf($|\?).*$). This is a regular expression that matches URLs of PDF files. If you know regular expressions, you may want to note that the parentheses that enclose the whole regular expression are necessary to capture the whole URL so that the$1in the next box works as expected. - In the fourth box, enter
https://docs.google.com/viewerng/viewer?url=$1. This is the URL that PDF files will be redirected to,$1represents the URL of the original PDF file. - Check the box labelled "Regular Expression".
- The last box is just another description Again, enter whatever you want, for example,
Redirects PDF files to a Google docs page that shows the PDF in the browser.
When you're done entering all that, it should look like this:
Now click Save and you're done. Now all PDF files will be opened in the browser like this:
To get a link to the original PDF file, copy the URL from the title bar and remove the https://docs.google.com/viewerng/viewer?url= part from the beginning.
Chrome for Android finally lets you view PDFs without leaving the browser
Open PDF files directly in Chrome for Android - Android Enthusiasts Stack Exchange
How to display a PDF via Android web browser without "downloading" first - Stack Overflow
open a pdf without having to save the document when using Chrome - Google Chrome Community
How to Open PDF in Chrome on Android?
How do I enable PDF viewer on Android?
Videos
Update
Both Edge for Android and Firefox for Android have native support for opening PDF files directly in the browser.
Original answer
You can use a Google Docs page to view PDF files in the browser. To do this, visit the page https://docs.google.com/viewerng/viewer?url=http://yourfile.pdf, where http://yourfile.pdf is the path to the PDF file you want to view (credits to this answer).
Unfortunately, there is as far as I know no way to do this automatically in Chrome (you can always paste the URL manually every time you want to open a PDF file but that's not very practical). However, if you use a browser that supports extensions, it's possible to use an extension to automatically redirect PDF files to this URL. Unfortunately, you can't do this on any well-known browsers (Chrome and Edge for Android don't support extensions at all, and Firefox for Android only supports a very limited set of extensions), but there are less well-known browsers where you can do this. The one I use is Kiwi (I have no association with its author).
Once you've installed Kiwi (or another browser that supports Chrome extensions), install the Redirector extension (I have no association with its author). Next, click on the three dots on the top right, scroll down, click "Redirector", then click on the "Edit Redirects" button, and then click on "Create new redirect":

That will open a popup with five text boxes and two checkboxes. Enter the following information:
- The first box is just a description, you can enter whatever you want, for example
Open PDF in browser. - The second box is an example URL to a PDF file, you can enter the URL to whatever PDF file you want.
- In the third box, enter
(^https?://[^?]+\.pdf($|\?).*$). This is a regular expression that matches URLs of PDF files. If you know regular expressions, you may want to note that the parentheses that enclose the whole regular expression are necessary to capture the whole URL so that the$1in the next box works as expected. - In the fourth box, enter
https://docs.google.com/viewerng/viewer?url=$1. This is the URL that PDF files will be redirected to,$1represents the URL of the original PDF file. - Check the box labelled "Regular Expression".
- The last box is just another description Again, enter whatever you want, for example,
Redirects PDF files to a Google docs page that shows the PDF in the browser.
When you're done entering all that, it should look like this:
Now click Save and you're done. Now all PDF files will be opened in the browser like this:
To get a link to the original PDF file, copy the URL from the title bar and remove the https://docs.google.com/viewerng/viewer?url= part from the beginning.
Another implementation of this idea is to use a Tasker profile I created. Instructions and profile import are available here. The instructions are also copied below.
—
Google Drive Viewer allows files to be viewed (without downloading) in Google Chrome for Android.
Setup
- The following apps are required: Tasker, AutoShare, and AutoTools
- Set up the AutoShare command
- Open AutoShare
- Main Menu - Manage Commands - plus sign
- New Command = View File
- Browsing for files = Direct URL
- URL = https://upload.wikimedia.org/wikipedia/commons/thumb/1/12/Google_Drive_icon_%282020%29.svg/1280px-Google_Drive_icon_%282020%29.svg.png
- Priority = 1
- Main Menu - Share Targets - ensure “AutoShare Command” is checked
- Import the project into Tasker using the button below (this page must be viewed on your Android device for the button to appear)
Usage
- Long-tap a file link in Chrome
- Tap “Share link” - “AutoShare Command” - “View File”
- If a file can’t be natively previewed in Google Drive, you may be able to connect an app that can preview the file
Settings
- By default, the file will open in a new tab. To adjust this setting, open the “Google Drive Viewer” task in Tasker and set %newtab (line 1) as follows:
- true: file will open in a new tab
- false: file will open in the same tab currently being used
I think that the problem sometimes occurs when the web server you are downloading the PDF from does not serve the PDF with the correct MIME type.
When the web server serves a PDF with the correct MIME type, Chrome previews it. When the web server serves a PDF with the incorrect or generic MIME type (application/octet-stream), Chrome downloads it.
If the server returns a Content-Type of text/html Chrome will display/open the PDF directly in the browser. However, if the server returns a Content-Type of application/pdf then the browser will prompt the user to save/download the PDF.
Download a PDF file, then when it is done, left click on the download icon at the bottom and select "always open this type of file" Now It should open any PDF link you click in that window without downloading it to a permanent location.
To undo it go into Options>Under the Hood tab>Clear Auto Opening Settings.
I also have the box ticked, "ask where to save each file before download", not sure if this has any affect on the behavior of automatically opening a file.
There may be some PDFs that chrome cannot display properly, so it offers you to download it to view with another PDF viewer. It is not a full featured viewer like Foxit or Adobe
I use it this way and can find no PDF that chrome has saved, it has to cache it somewhere to read it, but I am not sure where it does.
Some more info on chrome hidden features http://www.blogsdna.com/828/seven-hidden-configuration-pages-of-google-chrome-browser.htm
Hidden experimental features for version 8
about:flags
.
You can open a file PDF in Google Docs Viewer by appending the URL to:
https://docs.google.com/gview?embedded=true&url=<URL of a supported doc>
This would open a PDF file in the default browser or a WebView.
A list of supported formats is given here.
You can use this format as of 2017-04-06.
https://docs.google.com/viewerng/viewer?url=http://yourfile.pdf
Just replace http://yourfile.pdf with the link you use.
Sometimes I just want to look at a PDF, but when I click on the link Chrome starts downloading it. Is there any way to override this and cause PDFs to always open instead? I'm thinking Chrome does this based on some headers sent by the server, and I'd like to ignore those for PDFs.
Yeah, I know in both cases the data needs to be received from the server. I just want to make things easier for myself. Opening a PDF is a single click process. Downloading is multiple clicks plus having a file I probably don't want and will need to delete eventually.
I can do that on Firefox, could I do the same with the brave app? If I wanted to download it I would within the pdf viewer
Is anyone else getting completely fed up with these companies just screwing regular workers by doing the dumbest things you can imagine? For example, not being able to open a .PDF in the default application from a web browser. Like users have been able to do for years? The options are open in the browser or download. WTF is this? At first, I thought it was just Edge, nope it’s Chrome as well now. This keeps coming up more and more and I can’t seem to find a simple solution.
I have a client that is literally about to explode. They don’t want to have to download the pdf and then open it. They haven’t had to do it in years and they don’t want to do it now. Nor are they interested in using edge or any other browser to deal with PDF’s. They honestly open like 50 to 60 pdf’s a day and need all of the stuff in Adobe Pro. It’s literally what they do all day. Now it’s an extra step for god only knows why.
Now it’s on me to find a workaround because these dumbass companies (mainly Microsoft) just don’t care about their customers. Sorry I’m bitching but it’s gotten to a completely unacceptable level of complete ridiculousness.
Does anyone know why they are doing this? IE, a security reason. I’m trying to find a reason to explain to clients why it’s being done. Adobe is a $285 Billion company for a reason. People use the crap out of their software. That probably answers my question of why this happening, money. The clients don’t care about the tech. They just want to get some work done the same way they did it before. Not with extra hoops and jacking around.
So frustrated.
fd1211fb-2cdd-4819-a3d8-11ea8cf3c62d-chromepdf.png800×193 22.5 KB
06468574-d4e4-4789-a4d7-6c71e3dfac2c-edgepdf.png800×187 23.4 KB Both Edge and Firefox have a setting to open a pdf in the Windows default application. No idea about Chrome or Brave, I don’t use them.
I have to view PDFs several times a day and they used to quickly clutter up my downloads folder, but that seems to be over as of the latest version on my Pixel 9 Pro! Thank you Chrome! 🎉