Hash Generator

Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes.

100% freeNo sign-upInstant results

How to use the Hash Generator

  1. 1Type text or choose a file.
  2. 2All hashes are calculated instantly.
  3. 3Copy the hash you need.

About the Hash Generator

Cryptographic hashes create a fixed-length fingerprint of data. They're used to verify downloads, compare files and store checksums.

All algorithms run locally; SHA hashes use the native Web Crypto API.

When to use the Hash Generator

Checking a downloaded file against a checksum

When a publisher provides a checksum, choose the downloaded file and compare the output for that exact algorithm with the published value. This can reveal corruption or a mismatched download. Obtain the expected checksum through a trusted channel, because a matching hash alone cannot establish authenticity if an attacker replaced both files.

Comparing copies with different file names

Two files can have different names while containing identical bytes. Select each file in turn and compare the same hash output to check whether their contents appear to match. File names are not part of the digest input, so renaming a file does not by itself change the generated checksum.

Debugging a text digest mismatch

A digest mismatch between a script and an application often comes from hashing different bytes rather than using a different algorithm. Paste the intended text and compare the relevant digest with your application's result. Check whitespace, line endings, and UTF-8 encoding carefully; this tool hashes the text exactly as entered without trimming it.

Tips and best practices

  • Match algorithms before comparing values. MD5, SHA-1, SHA-256, SHA-384, and SHA-512 produce different digests, so identical inputs do not make their outputs interchangeable.
  • Select the actual file when checking a file checksum. Pasting its visible text can change encoding or line endings and omit bytes that the file originally contained.
  • Use the Uppercase toggle when a reference prints hexadecimal letters in capitals. Letter case changes the digest's presentation, not the bytes represented by that hexadecimal value.
  • Do not store passwords with these fast digests. Password storage requires a salted, deliberately expensive password-hashing scheme, such as Argon2id, rather than a plain general-purpose hash.

Frequently asked questions

Not for security. MD5 and SHA-1 have known collisions; use SHA-256 or better for integrity checks.

No. This tool runs entirely in your browser using JavaScript. Your input never leaves your device, which makes it safe for confidential content.

No. The file is read as raw bytes, and those bytes are the hash input. The selected file's name is displayed for reference but is not included in the calculation. Renaming a file or changing filesystem timestamps without changing its contents therefore leaves these digest results unchanged.

The SHA calculations use the browser's Web Crypto digest interface, which generally requires a secure context such as HTTPS. MD5 uses a separate local implementation and does not depend on that interface. Open the HTTPS version of the page and use a browser that supports Web Crypto.

Related tools