Hash Generator
Get MD5 and SHA hashes of any text, instantly.
- 100% Free
- No Sign Up
- Works in Your Browser
Hash generator
MD5, SHA-1, SHA-256 and SHA-512 hashes
More Developer Tools
View all tools- UUID generatorGenerate random v4 or time-ordered v7 UUIDs
- Password generatorCreate strong random passwords
- Random string generatorRandom strings, tokens and IDs
- HMAC generatorSign a message with an HMAC key
- Lorem ipsum generatorPlaceholder text for layouts
- JSON formatterPretty-print and indent JSON
- Base64 encode/decodeEncode and decode Base64 text
- JWT decoderDecode a JSON Web Token
- Timestamp converterConvert Unix epoch time to dates
Every everyday developer tool, right in your browser.
No installs. No uploads. No signup.
Browse all 36 tools- Developer tools
- 36
- Cheat sheets
- 10
- Bytes uploaded
- 0
How to use the hash generator
Three steps, all in your browser.
- 1
Choose what you need
Pick the type and how many. Results appear straight away.
- 2
Set the options
Choose the length, count or algorithm. The output updates instantly.
- 3
Copy the result
Copy the output in one click. Nothing is saved or sent anywhere.
Hash Generator: what to know
The hash generator computes MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of your text or of a file on your device, shown as hexadecimal or Base64, and can compare the result with an expected checksum. The SHA family uses the browser's Web Crypto API and MD5, which Web Crypto doesn't offer, uses SparkMD5. Text is hashed as UTF-8 bytes, which matches what tools such as sha256sum and md5sum produce for the same bytes.
A hash function turns any input into a fixed-length fingerprint, and any change to the input, even one character, gives a completely different result. That makes hashes ideal for checksums, cache keys, deduplication and verifying that a download or file hasn't changed.
Security is another matter. MD5 and SHA-1 are broken: attackers can create two different inputs with the same hash, so they must not be used for signatures or certificates. And no fast hash, SHA-256 included, is suitable for storing passwords, because attackers can try billions of guesses per second. Use Argon2id, bcrypt or scrypt for passwords, and HMAC when a hash must prove a message came from someone with a key.
Popular uses
- Checking a download against a published checksum
- Creating cache keys and ETags
- Comparing whether two texts are identical
- Learning how hash algorithms behave
Tips for the best result
- A trailing newline changes the hash: echo adds one unless you use echo -n.
- Compare hashes in full; matching the first few characters proves little.
- For message authentication, use the HMAC generator instead of hashing a secret together with the message.
Read how JustYourDev works and our privacy details. Code, data and files you use here are processed in your browser and are never sent to our server.