SHA-256 Hash Generator

Hash UTF-8 text to get a lowercase hexadecimal SHA-2 digest. Spaces, Unicode characters and line breaks are part of the input and can change the result.

Workspace

Hexadecimal digest

Your result will appear here.

How to use it

  1. Paste the text to hash, including any spaces or line breaks you need to preserve.
  2. Select SHA-256, SHA-384 or SHA-512 to match the system you are checking against.
  3. Generate the hash and compare the complete output with the expected digest.

Worked example

Input
hello
Output
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Frequently asked questions

How long is a SHA-256 hash in hexadecimal?

SHA-256 produces a 256-bit digest, displayed as 64 hexadecimal characters. SHA-384 and SHA-512 produce 96 and 128 hexadecimal characters respectively.

Why does the hash differ from another tool?

Compare the algorithm, text encoding, and exact input. An extra newline or a different Unicode encoding changes the bytes being hashed.

Can I reverse a SHA-256 hash to get the original text?

SHA-256 has no decoding operation. To compare a known input with a digest, hash the input with the same algorithm and compare the outputs.