Chrome Browser cache2jpg

Python3 Script to convert Browsercache into JPG files

On Windows, the regular Path for the Chrome Browser Cache is:

C:\Users\ ###Username### \AppData\Local\Google\Chrome\User Data\Default\Cache

Most cached files are named like f_007e24 with random numbers.

cache2jpg.py

Put this file directly in the cache folder from above

import os

for count, filename in enumerate(os.listdir()):
    dst =filename + ".jpg"
    src =filename
    dst =dst
    if os.path.getsize(filename) > 40000 and os.path.getsize(filename) < 150000 and filename[-1].isnumeric(): 
        os.rename(src, dst)

Run the file from command line

python3 "cache2jpg.py"

Files will be renamed

Now you can open JPG files directly from Windows Explorer

This example is based on a Windows 2016 Server. Windows 10 or 11 may be a little different, but should also work like described.