How to bookmark a file in Chrome, Edge and Firefox (2 ways)
This tutorial will show you step by step how to bookmark a file stored on your computer in Google Chrome, Microsoft Edge, and Mozilla Firefox.
A few examples of files you can add to the bookmarks bar in your web browser are; PDF, HTML, XML, TXT, PNG, JPG, GIF, and WEBP files.
1. How to add a local file to the bookmarks bar in Chrome, Edge and Firefox
1. Open your web browser.
2. Open your file manager (e.g., Windows File Explorer).
3. Minimalize the web browser and file manager window and make sure both windows are visible and next to each other.
4. In the file manager, you go to the file you want to bookmark.
5. Drag the file from the file manager window to the web browser window.

You will now see the file in your web browser.
6. Click the bookmark button of your web browser to bookmark the file.

2. How to add a local file to the bookmarks bar in Chrome, Edge and Firefox
1. Open your web browser.
2. In the address (URL) bar of your web browser, you type the location of the file, like in the examples below, but replace YourUsername with your username.
file:///C:/Users/YourUsername/Documents/file.pdf
file:///C:/Users/YourUsername/Documents/file.txt
file:///C:/Users/YourUsername/Documents/file.jpg
file:///C:/Users/YourUsername/Documents/file.html
3. Press the Enter key on your keyboard.
You will now see the file in your web browser.
4. Click the bookmark button of your web browser to bookmark the file.

Related:
How to bookmark all open tabs in Chrome, Edge and Firefox