Hash Value of a Pen Drive or Mobile Phone

Hash every file on a USB drive, or the files taken from a phone, and get one report listing each file, its path and its hash value.

The files, or the whole device?

"The hash value of a pen drive" or "of a phone" can mean two different things, and they need different tools.

1. The hash values of the files on it. This is what is usually needed: the videos, photos, call recordings, chat exports or documents on the drive or taken from the phone each get a hash value, so anyone can later check that the files produced are the files that were handed over. This page does exactly that, for a whole folder at a time.

2. The hash value of the device's storage as a whole. A forensic examiner makes a bit-for-bit image of the entire drive or extracts the phone's storage, including empty space and deleted data, and hashes that image. That needs imaging or mobile-forensic software, not a website; the sections on forensic images and phone extractions explain what is involved.

A phone has no single hash value of its own. Its IMEI is not one either: the IMEI identifies the handset on mobile networks and belongs in the description of the device, next to its make, model and serial number.

Steps for a pen drive

  1. Plug the pen drive into the computer.
  2. Click [ OR FOLDER / PEN DRIVE ] below and choose the drive, or the folder on it that matters.
  3. Leave SHA-256 on (or MD5 + SHA-256 if both are asked for) and press [CALCULATE HASH]. Each file gets its own value.
  4. Press [GENERATE REPORT] for one PDF listing every file.

Your browser may ask whether to "upload" the folder. That is its standard wording for giving a page access to a folder: the files are read on your computer and nothing is sent anywhere.

DRIVE_HASH
English

[1] SELECT FILE(S) TO HASH

One file, several, or two to compare.

[2] CHOOSE YOUR HASH FUNCTION

[3] LAUNCH THE HASHING PROCESS

What the report shows

When you select a folder, each file keeps its path, for example DCIM/Camera/VID_20260912.mp4, so two files with the same name in different folders stay distinguishable. The hash report lists every file with its path, size, algorithm and hash value, plus the date, a report ID, and how many files succeeded or failed.

Use the report's title and purpose fields to identify the drive: make, capacity, serial number if printed on it, and the case or reference number.

Operating systems sometimes keep their own files on a drive (for example a System Volume Information folder on Windows). If they appear in the list, they were on the drive; you can leave them in, or select only the folders that matter.

Keeping the drive unchanged

Calculating a hash only reads the files; it does not modify them. Opening files in other programs can, though: editing apps save, some media players write thumbnails or indexes. Hash the drive first, before anyone browses it, and avoid saving anything onto it.

Where the drive itself is evidence, forensic practice is to connect it through a write blocker, a device that physically prevents any writes, before hashing or imaging it.

Hashing the whole drive (forensic image)

To hash the entire drive rather than its files, use imaging software. Free options include FTK Imager on Windows, which creates an image and reports its hash values, and the standard tools on Linux, where the drive appears as a device:

lsblk                       # find the pen drive, e.g. /dev/sdb
sudo sha256sum /dev/sdb     # hash the entire device

Be careful to pick the right device. The device hash changes if anything at all is written to the drive, including by the operating system when it mounts it, which is another reason write blockers exist.

पेन ड्राइव की हैश वैल्यू कैसे निकालें?

  1. पेन ड्राइव को कंप्यूटर में लगाएँ।
  2. ऊपर टूल में [ OR FOLDER / PEN DRIVE ] पर क्लिक करें और पेन ड्राइव (या उसका फ़ोल्डर) चुनें।
  3. SHA-256 चुना रहने दें और [CALCULATE HASH] दबाएँ। हर फ़ाइल की अलग हैश वैल्यू दिखेगी।
  4. [GENERATE REPORT] दबाकर सभी फ़ाइलों की PDF रिपोर्ट डाउनलोड करें।

ब्राउज़र "upload" पूछ सकता है, लेकिन कोई फ़ाइल अपलोड नहीं होती। सारा काम आपके कंप्यूटर पर ही होता है।

Mobile phone: which files to hash

What is normally asked for is the hash value of the specific files taken from the phone:

  • ›Videos and photos: the original files from the camera, not copies forwarded or shared. See videos and photos.
  • ›Call recordings: the audio files the phone or recording app saved (often in a Recordings or Call folder).
  • ›WhatsApp chats: use the chat's Export chat option, which produces a text file, or a zip with media. Hash the exported file as produced.
  • ›Screenshots: the image files as saved by the phone, before cropping.
  • ›Documents: PDFs and files from the Downloads folder. See documents.

Hashing on the phone itself

Open this page in the phone's browser and select the files. Hashing reads them without changing them.

On Android, pick files through the Files app (or the gallery), several at once if needed.

On an iPhone, pick files through Files. Picking from the Photos library can make iOS hand the browser a converted or compressed copy (HEIC turned into JPG, a video re-encoded), whose hash value is not the original's. To use Files, first save the items there with Share → Save to Files.

Then press [GENERATE REPORT]: the PDF report is saved to the phone.

Copying from the phone to a computer first

Connect the phone with a USB cable. On Android, choose "File transfer" when prompted; on an iPhone, use the Photos import on Windows or Image Capture on a Mac, with the setting that keeps original files rather than converting them. Copy the files to the computer, then hash the copies here with the folder option; copying does not change the hash value.

It is good practice to hash on both sides: on the phone, then on the computer. Identical hash values show the copy is complete and exact. If they differ, the transfer converted or compressed something; change the import setting and copy again.

When the phone itself is evidence

When the handset itself is evidence, investigators use mobile forensic tools that extract its contents (or a full image of its storage) and record hash values for the extraction. That requires specialised software and hardware and is done by a forensic lab. This site cannot hash a phone as a whole, and if you are unsure which of the two is expected in your case, ask whoever requested the hash value (the court, the investigating officer or your lawyer) before you start.

FAQ

Does copying files to a pen drive change their hash value?

No. A copy has exactly the same bytes, so the hash value is the same on the computer and on the pen drive. Calculate it on both sides to show the copy is complete.

My browser asks to "upload" the files. Are they uploaded?

No. Browsers use that wording whenever a page is given access to a folder. The files are read and hashed on your device, and no file or hash is sent anywhere.

Can I hash a CD or DVD the same way?

Yes. Open the disc's folder with the folder option and every file on it is hashed. Hashing the disc as a whole image needs imaging software, as for a pen drive.

The browser will not let me select the drive itself. What now?

Some browsers refuse a drive's top level. Select the folders on the drive instead, one at a time, or select all the files inside them with the normal file picker.

Is the IMEI number the hash value of the phone?

No. The IMEI identifies the device on mobile networks. Write it in the device description; the hash values are calculated from the files.

Why is the hash value different on my computer and on the phone?

The computer received a different file: usually converted (HEIC to JPG) or compressed during the transfer. Use a transfer method that keeps original files and hash again.