Skip to content
QuicklySorted

SHA-256 Hash Generator

Get the SHA-256 hash of any text, add a secret key for HMAC-SHA256, and check the result against a checksum you already have. Made on your device with your browser's own cryptography.

0 characters · 1,000,000 remaining

Optional. With a key, the results become HMACs, which are used to sign and verify messages.

Optional. Paste a hash you were given, such as a download checksum, to see if it matches the text.

The hashes appear here as you type.

Type or paste text to see its hashes. The text and key never leave this device.

On this device

No signup. Your input is never uploaded.

How to use the SHA-256 Hash Generator

  1. Type or paste your text. The SHA-256 hash appears as you type.

  2. Add a secret key to get an HMAC-SHA256 instead.

  3. Paste a hash you already have to check whether it matches.

  4. Copy the hash, in lower or upper case.

An example

Hashing two words

You enter

hello world

You get

SHA-256: b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9

How the SHA-256 Hash Generator works

Your text is turned into UTF-8 bytes and hashed by your browser's built in Web Crypto functions. With a secret key, the same functions make an HMAC-SHA256 instead. The SHA-1, SHA-384, and SHA-512 hashes are shown alongside.

Limits to know about

  • Up to 1 million characters of text, and a secret key of up to 10,000 characters.
  • It hashes text you type or paste, not files.
  • A fast hash alone is not a safe way to store passwords. Use a slow password hashing method for that.

See also: SHA-1 vs SHA-256 vs SHA-512: which to use and why

Questions about the SHA-256 Hash Generator

A hash function from the SHA-2 family. It turns any input into a 256 bit value, written as 64 hexadecimal characters. The same input always gives the same hash, and changing one character changes it completely.

No. A hash is not encryption, and there is no key that reverses it. The only way back is to guess inputs and compare hashes, which is why short or common passwords can still be found from their hashes.

A SHA-256 hash mixed with a secret key. Only someone with the key can make the same value, so services use it to sign webhooks and API requests. Type the key in the secret key box to get it.

Usually the text differs in a way you cannot see, such as a line break at the end, an extra space, or another character encoding. This tool hashes the text as UTF-8, exactly as typed.

Last updated

Missing a tool?

Tell us what you wanted to do. Your ideas decide which tools we build next.

Suggest a tool on wisemensoft.com