Skip to content
Website under migration: We are moving to a new design. Some pages may look different or load slowly for a few days. Thank you for your patience.
SwitchFirewall
IPv4 Detecting…
IPv6 Detecting…

MD5 and SHA Hash Calculator

Last updated:

Choose a file or paste text and the hashes are calculated at once. Press Copy to copy a value, or Compare to paste the checksum from the download page and see if it matches. Everything runs in your browser, so your files are never uploaded.

How to use the MD5 and SHA hash calculator

  1. Choose the input. Pick Text to type or paste text, or File to select or drag in a file.
  2. Select the algorithms. Tick the hashes you need (MD5, SHA-1, SHA-256, SHA-512, SHA3 and others), or use Select all. Pick the output as lowercase hex, UPPERCASE hex or Base64.
  3. Press Calculate. A card appears for each algorithm with its hash value.
  4. Copy the value. Press Copy on a card, or Copy all results to copy every hash at once.
  5. Verify a download. Press Compare on the card that matches the vendor's algorithm and paste the checksum from the download page. A green Match message means the file is identical. A red message means it is different, so download it again.
  6. Start over. Press Clear to remove the input, the file and all results.

Your text and files stay on your device. Nothing is uploaded, so it is safe for private files.

Compare two hashes

Already have two hash values? Paste them below. Case, spaces, colons and a leading 0x are ignored.

Enter both hashes to compare them.

Which hash algorithm should I use?

SHA-256 is the safe default for checking downloads, and most vendors publish it. SHA-512 and SHA-384 give longer output. SHA3-256 and SHA3-512 use a different design (Keccak), which is useful when you need a hash that is not related to SHA-2. MD5 and SHA-1 are still used to spot accidental corruption and by older systems, but they must not be used where an attacker could craft a file.

MD5 and SHA-1 are broken for security. Two different files can be made to share the same MD5 or SHA-1 hash. Prefer SHA-256 or stronger. Do not use any of these hashes to store passwords; use bcrypt, scrypt or Argon2.

Hash length reference

MD5 is 128 bits (32 hex characters). SHA-1 is 160 bits (40). SHA-224, SHA-512/224 and SHA3-224 are 224 bits (56). SHA-256, SHA-512/256 and SHA3-256 are 256 bits (64). SHA-384 and SHA3-384 are 384 bits (96). SHA-512 and SHA3-512 are 512 bits (128).

Check a file hash from the command line

Windows (Command Prompt or PowerShell):

certutil -hashfile C:\path\file.iso SHA256
Get-FileHash C:\path\file.iso -Algorithm SHA256

Linux and macOS:

sha256sum file.iso
shasum -a 256 file.iso
md5sum file.iso

Compare the output with the vendor's published value. They must match exactly. If they differ, download the file again from the official site before you use it.