How To Get Google Chrome Bookmarks From C Drive

Google Chrome stores your bookmarks in a specific file within your computer’s system. This file, known as “Bookmarks”, is saved in your Google Chrome profile for easy accessibility of your preferred websites. However, the exact location of this file may not be easily visible. If you need to recover or export your bookmarks, it is important to know its location. This guide will demonstrate how to find and retrieve your Google Chrome bookmarks from the C drive on your PC.

Steps to Retrieve Google Chrome Bookmarks From C Drive

Step 1

Open Windows Explorer or File Explorer from the taskbar. You can also use the shortcut keys Windows + E to open the explorer.

Step 2

Navigate to your C Drive and follow this path: C:\Users\YOUR USERNAME\AppData\Local\Google\Chrome\User Data\Default. Replace “YOUR USERNAME” with your actual username on your computer.

Step 3

In the Default folder, you’ll find a file called “Bookmarks”. If you can’t find the file, make sure to enable the view of hidden files and folders. You can do this by clicking on the ‘View’ tab on the top of the explorer and checking the ‘Hidden items’ box.

Step 4

Copy the “Bookmarks” file and paste it in a secure location. You can now access your bookmarks directly from this file. If you wish to import these bookmarks to another browser, you will have to convert this file to HTML.

Converting the Bookmark File to HTML

To convert the “Bookmarks” file to HTML, you can use online tools such as ‘TRANSPOSE’ or ‘bookmark-converter’. Just upload your file and download the converted HTML file. You can now import this HTML file to your desired browser. Here is a piece of Python code that can be used to convert the file:

import json
import codecs

def convert(filepath):
   with codecs.open(filepath + 'Bookmarks', 'r', 'utf-8') as f:
       data = json.load(f)
   with codecs.open(filepath + 'bookmarks.html', 'w', 'utf-8') as f:
       for i in data['roots']['bookmark_bar']['children']:
           f.write('<dt><h3 add_date="{}" last_modified="{}">{}</h3>\n'.format(i['date_added'], i['date_modified'], i['name']))
           f.write('</dt><dl><p>\n')
           for j in i['children']:
               f.write('</p><dt><a href="%7B%7D" add_date="{}" last_modified="{}">{}</a>\n'.format(j['url'], j['date_added'], j['date_modified'], j['name']))
           f.write('</dt></dl><p>\n')
convert('C:\\Users\\Your_Username\\')

Just replace ‘Your_Username’ with your actual username and run the code. A bookmarks.html file will be created in the same directory.

Conclusion

So, that’s how you can find and retrieve your Google Chrome bookmarks from your C drive. We hope this guide was beneficial for you, and you’re now able to handle your Chrome bookmarks better.