What is the Hash Generator?
The Hash Generator computes MD5, SHA-1, SHA-256, SHA-384 and SHA-512 digests for text or files. SHA hashes use your browser's built-in Web Crypto API; MD5, which Web Crypto does not provide, uses a small tested JavaScript implementation.
Paste a published checksum into the compare box to verify a download in one step.
Why use it?
Software publishers list checksums so you can confirm a file was not corrupted or tampered with. Developers also use hashes for cache keys, deduplication and comparing data without revealing it.
How to use the Hash Generator
- Choose Text or File.
- Type text (hashes update as you type) or select a file.
- Copy the hash you need.
- Optionally paste an expected checksum to see whether it matches any algorithm.
Examples
Verifying a download
Select the installer you downloaded, paste the SHA-256 value from the vendor's website, and look for a green “Match” message.
Known test value
The SHA-256 of the text abc is ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad.
Supported formats and inputs
- Text encoded as UTF-8.
- Files up to 200 MB (MD5 up to 50 MB).
- Lowercase or uppercase hexadecimal output.
Limitations to know about
- MD5 and SHA-1 are broken for security purposes; use them only for compatibility or non-security checksums.
- Plain hashes are not suitable for storing passwords. Use a password hashing function such as Argon2, scrypt or bcrypt.
- Text hashes depend on exact bytes: different line endings (CRLF vs LF) give different results.
Privacy
Text and files are hashed locally using the Web Crypto API. Nothing is uploaded, so you can safely check private files.
Frequently asked questions
Which algorithm should I use?
SHA-256 is the modern default for integrity checks. Use whatever algorithm the publisher lists when verifying a download.
Can a hash be reversed?
Not directly. However, short or common inputs can be found by guessing, which is why plain hashes are unsafe for passwords.
Why do two identical-looking texts have different hashes?
Hashes change completely with any byte difference, including invisible ones such as a trailing space, a different line ending or a non-breaking space.