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.

Processed locally in your browser. Your data is not uploaded to our servers.

What to compute

Your text stays in this page: it is never uploaded or sent to analytics. Text is hashed as UTF-8 bytes.

A chosen file is used instead of the text. It is read in your browser and never uploaded. Up to 100 MB.

SettingsDefault settings

Paste a published checksum to see whether it matches. Hexadecimal (any case, spaces and colons ignored), Base64 and Base64URL are recognised.

Result

Examples

Reference values you can check against any other tool:

InputMD5SHA-256
(empty text)d41d8cd98f00b204e9800998ecf8427ee3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
abc900150983cd24fb0d6963f7d28e17f72ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
The quick brown fox jumps over the lazy dog9e107d9d372bb6826bd81d3542a419d6d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592

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-512

Text 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

  1. Choose Hash for a checksum or HMAC for a hash with a secret key.
  2. Type or paste text, or choose a file. For an HMAC enter the key and its format.
  3. Pick how the result is written: hexadecimal, Base64 or Base64URL.
  4. Read the results for all five algorithms. Paste an expected value to check for a match.
  5. 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: