Hash & HMAC Generator
Compute the hash of text or a file, or an HMAC with a secret key, with all five common algorithms at once. SHA hashes use your browser’s Web Crypto; MD5 and SHA-1 are marked as legacy because they are no longer safe against deliberate collisions. Everything runs locally: your text, files and keys are never uploaded.
Result
| Algorithm | Result | Copy |
|---|
MD5 and SHA-1 are legacy algorithms: fine for checksums and compatibility, but do not use them where an attacker could craft collisions (signatures, certificates, password storage).
Examples
Reference values you can check against any other tool:
| Input | MD5 | SHA-256 |
|---|---|---|
| (empty text) | d41d8cd98f00b204e9800998ecf8427e | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 |
abc | 900150983cd24fb0d6963f7d28e17f72 | ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad |
The quick brown fox jumps over the lazy dog | 9e107d9d372bb6826bd81d3542a419d6 | d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592 |
Formula & Methodology
A hash function turns any input into a fixed-size fingerprint; the same input always gives the same hash, and a tiny change gives a completely different one. An HMAC mixes a secret key into the hash (RFC 2104), so only someone who has the key can produce or check it.
HMAC(K, m) = H((K′ ⊕ opad) ∥ H((K′ ⊕ ipad) ∥ m))H = MD5 | SHA-1 | SHA-256 | SHA-384 | SHA-512Text is converted to UTF-8 bytes first. SHA-1, SHA-256, SHA-384 and SHA-512 are computed by the browser’s Web Crypto; the HMAC wrapper and MD5 are small functions in this page, checked against the official RFC test vectors.
Notes and limitations
- A hash is not encryption and cannot be reversed, but short or common inputs can be guessed. Never store passwords with a plain fast hash.
- MD5 and SHA-1 are shown only for checksums and compatibility. Use SHA-256 or stronger for anything security related.
- Files up to 100 MB are accepted. Very large files depend on your device’s memory and may take a few seconds.
- SHA algorithms need a secure (https) page. If your browser blocks Web Crypto, those rows show an error and MD5 still works.
- SHA-3, BLAKE and CRC checksums are not included.
How to Use
- Choose Hash for a checksum or HMAC for a hash with a secret key.
- Type or paste text, or choose a file. For an HMAC enter the key and its format.
- Pick how the result is written: hexadecimal, Base64 or Base64URL.
- Read the results for all five algorithms. Paste an expected value to check for a match.
- Copy one result or all of them, or download them as a text file.
Frequently Asked Questions
Are my text, files and keys uploaded?
No. Hashes and HMACs are computed in your browser. Nothing you enter or choose is sent to ToolQuarter, analytics or any other service, including HMAC keys.
Which algorithm should I use?
Use SHA-256 (or SHA-384/SHA-512) for anything that matters. MD5 and SHA-1 are marked legacy because collisions can be created deliberately; they are still common for checksums and for matching older systems.
What is the difference between a hash and an HMAC?
A hash is a fingerprint anyone can compute. An HMAC also uses a secret key, so it proves the message came from someone who knows the key and was not changed. It is used to sign API requests and webhooks.
How do I check a downloaded file?
Choose the file, paste the checksum published by the vendor into the expected-value box and look for “Match”. Use the same algorithm the vendor published.
Why do I get a different hash than another tool?
Usually the input differs: a trailing line break, different spaces, another text encoding or a hexadecimal key typed as text. This tool hashes the exact UTF-8 bytes of what you enter.
Last updated: