Hash Value of a Video, Photo or PDF

Get the SHA-256 or MD5 hash value of a recording, a picture or a document, of any size, without uploading it.

What you are fingerprinting

A hash value is a fingerprint of a file, calculated from every byte it contains. For a video that means the frames, the audio track and the metadata the camera or phone wrote into it. For a photo it is the picture plus its EXIF data (date, device, often GPS position). For a PDF it is the text, the images, the fonts and the document's internal properties. The same file always gives the same hash value; change a single byte and the value is completely different.

It is not a fingerprint of what the file shows. Two videos that look identical on screen, or a photo and its WhatsApp copy, have different hash values because their bytes differ. Nearly every "why doesn't my hash match?" question comes back to this, and it decides which copy you should hash. The sections below go through it for videos, photos and screenshots and PDFs and office documents.

Steps

  1. Pick the original file below: MP4, MOV, a CCTV export, JPG, HEIC, PNG, PDF, DOCX…
  2. Leave SHA-256 on, or choose MD5 + SHA-256 if a form asks for both, then press [CALCULATE HASH].
  3. Copy the value, or press [GENERATE REPORT] for a PDF listing the file name, size, date and hash.
FILE_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

Video: which copy to hash

Hash the original file: the one the camera, phone or recorder produced, copied without conversion. Copying a file to a computer, a pen drive or a CD keeps exactly the same bytes, so the hash value does not change.

These produce a new file with a different hash value:

  • ›Sending the video through WhatsApp, Telegram, Instagram or Facebook as a normal video: these apps re-compress it. (In WhatsApp, sending it as a document keeps the original file.)
  • ›Cloud backups in a reduced-quality mode, such as Google Photos "storage saver".
  • ›Trimming, rotating, muting or converting it (MP4 to AVI, for example), even with the phone's own editor.
  • ›Screen-recording the video while it plays.

If you only have a forwarded copy, hash that copy and describe it as such. Its hash value proves what that copy contains, not what the original contained.

CCTV and DVR footage

DVRs and NVRs export footage to a pen drive, often in their own format (.dav, .h264, .264) and sometimes with a player program next to it. Hash the exported files exactly as exported, before converting anything. The folder option in the tool hashes the whole export in one go, and the report lists every file with its path.

If you then convert the footage to MP4 to make it playable, the MP4 is a new file. Hash it too, and keep both hash values: the export shows what came out of the recorder, the MP4 is what people will watch. For hashing the whole export drive, see hash value of a pen drive.

Large videos, and videos still on a phone

There is no size limit. The video is read in small pieces, so a multi-gigabyte file does not need to fit in memory, and a progress bar shows the speed. On a recent computer, SHA-256 typically runs at a few hundred megabytes per second, so most videos take seconds; a phone is slower.

A video on a phone connected by USB is read through the phone's connection, which is slow. Copy it to the computer first, then hash the copy: copying does not change the hash value. To hash it on the phone itself, open this page in the phone's browser. On Android, choose the video through the Files app or the gallery. On an iPhone, choose it through Files rather than the Photos library: when a video is picked from Photos, iOS may compress or convert it before handing it to the browser, and you would get the hash value of that converted copy instead of the original.

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

  1. ऊपर दिए गए टूल में अपनी वीडियो फ़ाइल चुनें (MP4, MOV, AVI आदि)।
  2. एल्गोरिदम में SHA-256 चुना रहने दें और [CALCULATE HASH] दबाएँ।
  3. जो 64 अक्षरों का कोड दिखेगा, वही वीडियो की हैश वैल्यू है।
  4. [GENERATE REPORT] दबाकर PDF रिपोर्ट डाउनलोड करें।

ध्यान दें: WhatsApp पर भेजा गया वीडियो कंप्रेस हो जाता है, इसलिए उसकी हैश वैल्यू ओरिजिनल वीडियो से अलग होगी। हमेशा ओरिजिनल फ़ाइल की हैश वैल्यू निकालें। आपकी फ़ाइल किसी सर्वर पर अपलोड नहीं होती।

Photo: two different things called an "image hash"

A cryptographic hash (SHA-256, MD5) is what this tool calculates. It identifies one exact file. Change one pixel, or just the date stored in the photo, and the hash value is completely different. This is what you need to show a photo has not been altered, to fill in an evidence certificate, or to find exact duplicates.

A perceptual hash (pHash, dHash, aHash) is a different technique used to find images that look alike: a resized or re-compressed copy gets a similar perceptual hash. It is used for reverse image search and duplicate-photo cleanup, and it says nothing about whether a file was altered. This site does not calculate perceptual hashes.

What changes the hash value of a photo

Because the EXIF metadata is part of the file, the hash value changes when:

  • ›the photo is edited, cropped, filtered or rotated, even by the gallery app;
  • ›it is shared through WhatsApp, Instagram, Facebook and similar apps, which re-compress images and strip most metadata;
  • ›it is converted, for example from HEIC to JPG;
  • ›a tool removes or changes the metadata, even though the picture looks identical.

Copying the file to a computer, a pen drive or an email attachment does not change it. Viewing it does not either.

Screenshots are new image files, created when you took them, so each has its own hash value. If a screenshot of a chat or a web page is evidence, hash the screenshot as the phone or computer saved it, before cropping or annotating it. If you need to crop, keep the original too and hash both.

iPhone photos (HEIC) and whole albums

iPhones save photos as HEIC by default. When a photo leaves the phone, it is often converted to JPG on the way: when shared to some apps, when imported with certain settings, or when picked from the Photos library in a website. Each conversion produces a new file with a new hash value. To hash the original on the iPhone, select it through the Files app. On a computer, check that the file you hash still has the .heic extension if the original was HEIC.

For many images, select them together, or pick a folder such as DCIM with the folder option. Each image gets its own hash value, and the hash report lists them all with their paths and sizes. Two files with the same hash value are exact duplicates: paste a hash into the verify box to highlight every file that has it.

PDF and documents: why hash them

A document's hash value lets anyone check, later and independently, that they have exactly the same file. Typical uses:

  • ›Sending a contract, a tender or a filing: state the SHA-256 in the email or the cover letter, and the recipient can confirm that what they opened is what you sent.
  • ›Producing a document as evidence, with its hash value on the certificate and a hash report attached.
  • ›Archiving: store the hash next to the file and you can detect silent corruption years later.
  • ›Telling two versions apart: two files with the same hash are identical, whatever their names.

Opening is fine, re-saving is not

Opening, reading or printing a PDF does not change it. Saving it again almost always does, even if you changed nothing, because the program rewrites the file: modification date, internal identifiers, compression. The same applies to Word and Excel files, which also store the author, the last-saved time and the editing history. Some programs save automatically or ask to save when you close them, so keep a read-only copy of the version you hashed.

Hash the exact file that will be sent, filed or produced, after its last save. "Print to PDF" or "Export as PDF" creates a brand-new file with its own hash value each time you run it.

Hash value vs. PDF digital signature

A digitally signed PDF (for example one signed with a DSC) contains a hash too, but a different one: the signature covers the document's content and is embedded inside the file, and a PDF reader checks it for you. The hash value this tool calculates covers the whole file, signature included, and is written down outside the file. They complement each other: the signature says who signed it; the file hash lets anyone confirm that a copy is byte-for-byte the same file, without special software.

Not a password tool. Searches for "PDF hash extractor" sometimes mean extracting the password hash of an encrypted PDF in order to crack it. This site does nothing of the kind. It calculates the checksum of the file as a whole, which works the same for encrypted and unencrypted PDFs and reveals nothing about the password or the contents.

The recipient can check without this site

Whoever receives your file and its SHA-256 value can recompute it with the tools built into their operating system, which is part of what makes a hash value useful as a reference:

Windows

certutil -hashfile contract.pdf SHA256

macOS

shasum -a 256 contract.pdf

Linux

sha256sum contract.pdf

FAQ

Why do two copies of the same video or photo have different hash values?

Because their bytes differ, even if they look the same. Messaging apps and cloud services re-compress media and strip metadata, and editing apps rewrite files. Only an exact copy keeps the hash value.

Does renaming a file change its hash value?

No. The file name is stored by the file system, not inside the file, so renaming, moving, copying or emailing it keeps the same hash value.

Can I get the hash value of a YouTube video?

Not from the link. A hash value belongs to a file. A downloaded copy has a hash value, but it depends on the quality and format it was downloaded in, so two downloads of the same YouTube video often differ.

SHA-256 or MD5?

SHA-256. MD5 still detects accidental changes, but two different files can be deliberately crafted to share an MD5 hash. If you are asked for MD5 as well, select MD5 + SHA-256 to get both in one pass and in the same report.

Can I find similar images with this?

No. A cryptographic hash only matches identical files. Finding visually similar images needs a perceptual hash, which is a different tool.

Is my file uploaded?

No. The video, photo or document is read and hashed by your own browser. Nothing is sent to a server, which is also why there is no upload to wait for.