Hash Generator
Generate secure hashes for your text strings completely client-side.
About cryptographic hashes
A cryptographic hash function takes an arbitrary input and produces a fixed-size output (the "digest") such that even a single-bit change in the input produces a wildly different output. Hashes power password storage (when combined with a salt and a slow function like bcrypt), file integrity verification, content-addressable storage, digital signatures (such as those used in JWTs), and blockchain transactions.
This tool computes the most common hash digests of any text you paste — MD5, SHA-1, SHA-256, SHA-384 and SHA-512 — entirely in your browser using the Web Crypto API. None of your input is uploaded. Hashes are deterministic, so identical input always yields the same digest, but you cannot recover the input from the digest.
Never use MD5 or SHA-1 for passwords
Both algorithms are cryptographically broken — practical collision attacks exist for each. For password storage use a slow, salted password-hashing function such as bcrypt, scrypt or argon2id. For general-purpose hashing prefer SHA-256 or SHA-512.How to use
- Paste any text into the input field.
- Each supported algorithm computes its hash live as you type.
- Copy any digest with the button next to it.
- For binary input, encode it as Base64 first using our Base64 tool, then hash the encoded string.
Common use cases
- Verifying that a downloaded file matches the SHA-256 digest published by its author.
- Computing ETags for cache validation in HTTP responses.
- Generating deterministic identifiers from canonical content.
- Sanity-checking that two strings are byte-for-byte identical without printing them.
Frequently asked questions
Should I use MD5 to hash passwords?
Can two different inputs produce the same hash?
Are these computed in my browser or sent to a server?
Advertisement