Hash Generator
The Hash Generator gives the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or a file at once, in your browser. Hashing is one-way: it does not encrypt text or let you recover the original.
Files are hashed on your device and never uploaded. Up to 200 MB.
Hashes update as you type.
- MD5
–- SHA-1
–- SHA-256
–- SHA-384
–- SHA-512
–
MD5 and SHA-1 are fine for checking downloads, but not for passwords or security. Use SHA-256 or stronger.
What is the Hash Generator?
The Hash Generator calculates a cryptographic digest from text so you can compare values or check the output of your code. It converts your text to UTF-8 bytes, then applies a hash algorithm to produce a fixed-length result. The same bytes and algorithm always produce the same digest, but changing a space, letter or line break changes the input. Developers use hashes in tests, students use them to learn about cryptography, and IT teams use them when checking data. This free tool runs in your browser and needs no subscriptions.
Who it is for: For developers, students, software testers, system administrators and cybersecurity staff comparing text digests.
How to use the Hash Generator
- Type or paste your text, or choose a file. Try with sample data loads the word hello.
- Read the five hashes; they update as you type.
- To check a download, paste the expected hash in the compare box and look for Match.
- If values differ, check the algorithm, capital letters, spaces and line breaks.
Why use it
- Keep input localHash calculations run in your browser rather than sending your text to a server.
- Check your codeCompare a generated digest with the output of your application using the same algorithm and input.
- Spot input differencesUse hashes to check whether text values match byte for byte.
- Work offlineUse the tool without a connection after opening it on your device.
At a glance
- What you put in
- Text (UTF-8) or a file up to 200 MB
- What you get
- MD5, SHA-1, SHA-256, SHA-384 and SHA-512 in hex, plus a match check
- Limits
- Not encryption or password storage; files up to 200 MB
- Privacy
- Runs in your browser. Nothing you enter is uploaded or stored.
- Price
- Free for everyone. No subscriptions, no payments, no watermark.
- Works offline
- Yes, once the page has loaded
- Last checked
- by AK Shine
Worked example
hello
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
SHA-256 of the five UTF-8 bytes in lowercase hello, with no trailing space or newline.
When to use something else
- For huge files over 200 MB, use your system checksum tool, such as certutil on Windows or shasum on Mac and Linux.
- For password storage, use a dedicated password-hashing scheme such as Argon2id rather than a single fast hash.
- For message authentication, use HMAC or digital signatures; a plain checksum alone does not prove who supplied the data.
Questions people ask
How do I generate a SHA-256 hash?
Enter your text and use SHA-256, then read the resulting digest. SHA-256 produces 256 bits, normally displayed as 64 hexadecimal characters.
Why does my hash not match another tool?
Check that both tools use the same algorithm and exactly the same input bytes. Encoding, trailing spaces, Unicode normalization and line endings can all explain a mismatch.
Do uppercase letters or a trailing newline change the hash?
Yes, changing input capitalization or adding a newline changes the bytes being hashed. Text is processed as UTF-8 without trimming spaces or adding a newline.
Can I reverse or decrypt a hash?
A hash is not encryption and has no decryption operation. Someone can still guess possible inputs and compare their hashes, which makes short or common inputs easier to discover.
Should I use MD5 or SHA-1?
Use MD5 or SHA-1 only when a legacy workflow explicitly requires them, not for new security-sensitive designs. Both have known collision weaknesses; use SHA-256 when you need a modern general-purpose digest.
Can I use SHA-256 to store passwords?
Do not store passwords as a single SHA-256 digest, even with a salt. Use a password-hashing scheme such as Argon2id with a unique salt and appropriate memory and time settings.
How do I check a downloaded file's checksum?
Choose the file here, paste the checksum from the publisher's site into the compare box, and the tool tells you which hash matches. Get the checksum from a trusted page, since an attacker could change both the file and a copied hash.
What is the difference between a hash and HMAC?
A plain hash uses no secret key and does not authenticate the sender. HMAC combines a shared secret key with a hash function to authenticate a message, so use a dedicated HMAC tool when a protocol requires it.