LocalExcelTool
Get started

Hash Suite

Generate SHA-1/256/384/512 at once — add a secret to get HMAC too.

Runs in your browserNo account neededFree

What is Hash Suite

This hash suite computes SHA-1, SHA-256, SHA-384 and SHA-512 in one run. Provide a secret and it also outputs HMAC-SHA256 / HMAC-SHA512 per RFC 2104. Everything runs through the browser's Web Crypto API — your input never leaves the page.

🔒 Everything runs in your browser. Nothing is uploaded.

What this tool actually does with your file

Where it runs
In your browser, on this page
Upload
None — the file never leaves your device
Offline
Works with the network disconnected

Four digests in one pass over the same bytes

SHA-1, SHA-256, SHA-384 and SHA-512 are computed from the same UTF-8 input so the lengths can be compared side by side: 40, 64, 96 and 128 hex characters. Seeing all four together makes it obvious that these are different functions of different widths, not one hash at different quality settings.

A digest is not a ranking of security. SHA-384 and SHA-512 are not 'stronger than SHA-256' in a way that matters here; they are wider hash functions with different internal block sizes. Collision resistance is already far beyond practical attack at 256 bits, so the choice is driven by what the other side of the protocol accepts.

HMAC is a different construction, not a keyed hash

Supplying a secret switches the output to HMAC per RFC 2104: the key is padded or hashed to the block size, XORed with two constants, and the hash is applied twice. The result is not 'SHA-256 of the key plus the message' — that naive concatenation is length-extendable and insecure.

HMAC-SHA256 is what webhook signatures, API request signing and TOTP-based schemes use. Two things cause interop failures: the message encoding (hex versus raw bytes) and whether the comparison is constant-time. This page shows the hex digest for inspection; a verifier must compare in constant time to avoid leaking the expected value through timing.

Which to pick

SHA-256 for integrity and signatures, SHA-512 when a protocol specifies it, SHA-1 only to satisfy a legacy format that still demands it — git object names, for instance. SHA-1 collisions have been produced in public, so a SHA-1 digest is a change detector, not a security boundary.

If the goal is password storage, stop: none of these four are appropriate, keyed or not. Use Argon2id or bcrypt with a per-user salt and a cost setting high enough to be measurable. The reason is speed, and it is the whole reason those algorithms exist.

How to use it

  1. 1.Enter your text
  2. 2.Add a secret if you need HMAC
  3. 3.Run and copy all hashes

How Hash Suite works under the hood

Encoding tools convert between representations of the same bytes: Base64, percent-encoding, hex, HTML entities, Unicode escapes. A correct encoder is reversible; a lossy one silently changes the data.

  1. 1

    Get the exact bytes

    Text is encoded to UTF-8 bytes with TextEncoder first; binary input is read as an ArrayBuffer. Encoding the wrong byte sequence is the most common cause of a wrong result.

  2. 2

    Apply the encoding rule

    Each format has an exact specification: Base64 uses a 64-symbol alphabet with padding, percent-encoding escapes reserved characters as UTF-8 bytes.

  3. 3

    Decode back to verify

    Round-tripping the output back to the input is the only honest proof that an encoder is correct. The tool keeps the reverse path available on the same page.

  4. Processing pipeline

Base64 is not encryption

Base64 increases size by about a third and hides nothing: anyone can decode it. It exists to carry binary data through text-only channels such as JSON, email headers and data URLs. If you need confidentiality, use encryption with a key, not an encoding.

Where encoders break

Percent-encoding applied twice turns %20 into %2520; Base64 without padding fails strict decoders; UTF-16 input decoded as UTF-8 produces replacement characters that cannot be recovered. When output looks wrong, check the byte sequence before checking the tool.

Verify it yourself

Encoders are pure functions over bytes. Decode the output again and you should get the input back exactly.

  1. 1.Open DevTools on this page and switch to the Network tab
  2. 2.Keep the filter on Fetch/XHR and run the tool
  3. 3.Confirm no request carries your file — you should see only page assets and fonts

Frequently asked questions

Is MD5 included?

No — Web Crypto does not provide MD5. It is also easy to craft collisions for, so for anything security related prefer SHA-256 or above.

What HMAC naming is used?

Per RFC 2104: HMAC with hash SHA-256 is written as HMAC-SHA256, ready to verify API signatures directly.

What this kind of conversion cannot keep

Encoding and hashing run through the browser's Web Crypto API or a pure-JavaScript implementation. The output is deterministic: the same input always produces the same digest, so you can verify a result against any other tool.

Go deeper

More in Encoding