Hash Generator
Make MD5, SHA-1, SHA-256, SHA-512 and other hashes or HMACs of text, bytes and files, and check a hash against a file or text.
- Free, no sign-up
- Runs in your browser
- Sources cited
- hex (lowercase)
- HEX (uppercase)
- Base64
- Base64 URL-safe
- Text
- Hex bytes
- Base64 bytes
- As typed
- LF (Unix, macOS)
- CRLF (Windows)
Hashed as UTF-8 bytes. Every character, space and line break counts.
Hashes
- MD5128 bitsNot for security
- SHA-1160 bitsNot for security
- SHA-256256 bits
- SHA-512512 bits
- Bytes hashed
- 43
- Algorithms
- 4
Paste a hash to see whether it matches, and which algorithm made it.
Files
Any files up to 1 GB each, hashed on your device with the algorithms above.
Everything runs in your browser. Nothing you enter is uploaded.
How to use the hash generator
Type, paste or open text
Every chosen hash updates as you type. Choose whether the input is text, or bytes written as hexadecimal or Base64.
Pick the algorithms
Tick any of MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512 and CRC-32, and choose lowercase or uppercase hexadecimal or Base64 output.
Use a secret key for an HMAC
Switch the type to HMAC and enter the key as text, hexadecimal or Base64. The key never goes into a shared link.
Hash files
Choose or drop files of up to 1 GB each. They are hashed on your device, and you can download a checksum list that command-line tools can check.
Check a hash
Paste a published hash into “Check against a hash”. The tool says whether it matches, and which algorithm and format it is.
How hash functions work
A cryptographic hash function turns input of any length into a short, fixed-length value, the digest. The same input always gives the same digest, a tiny change gives a completely different one, and it is meant to be infeasible to find two inputs with the same digest or to work back from a digest to the input.
SHA-1, SHA-224, SHA-256, SHA-384 and SHA-512 are defined by NIST in the Secure Hash Standard, FIPS 180-4. Each pads the message, splits it into blocks, and mixes every block into an internal state with fixed rounds of additions, rotations and logical functions. SHA-224 and SHA-384 are shortened forms of SHA-256 and SHA-512 with different starting values. MD5 is specified in RFC 1321.
An HMAC, from RFC 2104, mixes a secret key into the hash twice, so only someone with the key can produce or check the value. APIs use it to sign requests and webhooks. CRC-32 is not a cryptographic hash: it is a checksum that catches accidental damage such as a corrupted download, but anyone can make a different input with the same CRC.
MD5 and SHA-1 are broken for security. RFC 6151 explains that MD5 collisions can be made on purpose, and NIST has retired SHA-1. They are still fine for spotting accidental changes and for matching published checksums. For anything that must resist an attacker, use SHA-256 or longer.
The tool hashes bytes, so text is first encoded as UTF-8. That is why line breaks matter: a file saved on Windows ends its lines with CR and LF, one saved on Linux or macOS with LF alone, and the hashes differ. The line break options make them consistent first. Everything runs in your browser; large text and files are hashed in a background worker.
Worked example
The SHA-256 digest of abc is ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad. That is 256 bits, written as 64 hexadecimal characters, and it is the value the standard itself gives for this message.
Changing one letter to abd gives a52d159f262b2c6ddb724a61840befc36eb30c88877a4030b65cbe86298449c9: 58 of the 64 characters differ. Adding a line break at the end of abc gives edeaaff3f1774ad2888673770c6d64097e391bc362d7d6fb34982ddf0efd18cb, which is why copied text with a trailing line break does not match.
With MD5, the same abc gives 900150983cd24fb0d6963f7d28e17f72, only 128 bits; SHA-512 gives 512 bits. The HMAC-SHA-256 of “The quick brown fox jumps over the lazy dog” with the key “key” is f7bc83f430538424b13298e6aa6fb143ef4d59a14946175997479dbc2d1a3cd8.
Understanding the result, and common mistakes
- Not for security
- Shown next to MD5 and SHA-1, whose collisions can be made on purpose. Use them to match published checksums, not for signatures or passwords.
- Checksum only
- CRC-32 detects accidental damage only. It has no secret key and is easy to forge.
- Match
- The hash you pasted equals one made here, in hexadecimal of either case or in Base64. The message names the algorithm, so you also learn which one the publisher used.
- A trailing line break or space. Turn on trimming, or check what the publisher hashed.
- Different line breaks. Set line breaks to LF or CRLF to match the original file.
- Hexadecimal pasted as text. If the input is bytes written as hex, set the input to hex bytes.
- Storing passwords with a plain hash. Password storage needs a slow, salted function such as bcrypt, scrypt or Argon2, not a single SHA-256.
Frequently asked questions
Is my text or file uploaded?
No. Hashing runs in your browser, and the text, key and files never leave your device.
Can a hash be reversed?
Not by calculation. Short or common inputs such as simple passwords can still be guessed by trying many values, which is why passwords need slow, salted hashing.
How do I check a downloaded file?
Drop the file into the Files area and paste the hash published with it into “Check against a hash”. A match means the file is the one that was published.
Which hash should I use?
SHA-256 for most purposes. Use the one a publisher or API names when you need to match theirs.
Why does my hash differ from another tool’s?
Usually the bytes differ: a trailing line break, different line breaks, or a different text encoding. This tool always encodes text as UTF-8.
Sources
- FIPS 180-4: Secure Hash Standard (SHS)National Institute of Standards and Technology · retrieved Nov 14, 2026
- RFC 1321: The MD5 Message-Digest AlgorithmRFC Editor · retrieved Nov 14, 2026
- RFC 2104: HMAC: Keyed-Hashing for Message AuthenticationRFC Editor · retrieved Nov 14, 2026
- RFC 6151: Updated Security Considerations for the MD5 Message-Digest and the HMAC-MD5 AlgorithmsRFC Editor · retrieved Nov 14, 2026
- NIST Retires SHA-1 Cryptographic AlgorithmNational Institute of Standards and Technology · retrieved Nov 14, 2026
About these results
- Hashing runs in your browser. Nothing you enter or open is uploaded.