Home › SHA Hash Generator

SHA Hash Generator

Type or paste text to get its SHA-1, SHA-256, SHA-384 and SHA-512 hashes at once, or add a secret key to compute the HMAC instead.

Results

SHA-1
a9993e364706816aba3e25717850c26c9cd0d89d
SHA-256
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
SHA-384
cb00753f45a35e8bb5a03d699ac65007272c32ab0eded1631a8b605a43ff5bed8086072ba1e7cc2358baeca134c825a7
SHA-512
ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f
Input size (bytes)
3

How it works

The text is converted to UTF-8 bytes and passed to the Web Crypto API built into your browser, which returns the digest. A hash is a fixed-size fingerprint: the same input always gives the same output, and changing a single character changes the whole result. With a key, the tool computes an HMAC, a hash that can only be reproduced by someone who knows the key.

Rules and details

Worked example

The text “abc” has the SHA-256 hash ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad and the SHA-1 hash a9993e364706816aba3e25717850c26c9cd0d89d. For comparison, the HMAC-SHA-256 of “The quick brown fox jumps over the lazy dog” with the key “key” is f7bc83f430538424b13298e6aa6fb143ef4d59a14946175997479dbc2d1a3cd8.

Frequently asked questions

Can a hash be reversed to get the text back?

Not by computation, but short or common inputs can be found by guessing, so never rely on a plain hash to protect a password. Use a dedicated password hashing function with a salt on the server.

Why is MD5 not offered?

The browser’s crypto API does not provide MD5, and MD5 and SHA-1 are considered broken for security uses. They remain fine for non-security checks such as spotting accidental corruption.

Why do I get a different hash than in another tool?

Usually the input differs by an invisible character such as a trailing newline, or by encoding. This tool hashes the exact text in the box, encoded as UTF-8.

Tips

Related tools

All tools