Use File Hash Calculator

Enter your data below to use the File Hash Calculator

📌 Try these examples:
RESULT

Last updated

What Is a File Hash?

A file hash is a fixed-length string produced by running a file's contents through a cryptographic hash function. The same file always produces the same hash. Any change to the file — even a single bit — produces a completely different hash. This makes hashes ideal for verifying file integrity: if the hash matches the expected value, the file is intact and unmodified.

Common Use Cases

Computing File Hashes

Shell
# Linux / macOS
sha256sum file.iso
md5sum file.iso
sha1sum file.iso

# macOS (shasum)
shasum -a 256 file.iso
shasum -a 512 file.iso

# Windows PowerShell
Get-FileHash file.iso -Algorithm SHA256
Get-FileHash file.iso -Algorithm MD5

# Python
import hashlib

def file_hash(path, algorithm='sha256'):
    h = hashlib.new(algorithm)
    with open(path, 'rb') as f:
        for chunk in iter(lambda: f.read(65536), b''):
            h.update(chunk)
    return h.hexdigest()

print(file_hash('ubuntu.iso'))  # sha256 by default

Which Algorithm to Use?

AlgorithmOutputUse forAvoid for
MD5128-bit (32 hex)Non-security checksums, deduplicationSecurity, passwords
SHA-1160-bit (40 hex)Legacy systems, GitNew security applications
SHA-256256-bit (64 hex)File integrity, TLS, code signingPassword hashing (use bcrypt)
SHA-512512-bit (128 hex)High-security applicationsConstrained environments
BLAKE3256-bit (64 hex)High-performance hashingLegacy compatibility

Frequently Asked Questions

Simply enter your data, click the process button, and get instant results. All processing happens in your browser for maximum privacy and security.