SHA-256 generator
Generate a SHA-256 hash for any string input.
About this tool
The SHA-256 generator turns any text into its SHA-256 hash: a 256-bit value, written as 64 hexadecimal characters. The same text always gives the same hash, and changing a single character changes the whole result. The text is hashed as UTF-8, exactly as you typed it, including spaces and line breaks, and it isn’t stored.
SHA-256 example
The SHA-256 hash of the word hello is:
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
SHA-256 at a glance
| Output | 256 bits, 64 hex characters |
| Family | SHA-2, designed by the NSA and published by NIST |
| Published | 2001 |
| Safe for security today | Yes |
Is SHA-256 secure?
Yes. No practical attack on SHA-256 is known, and it’s the default secure hash today. Like MD5 and SHA-1, it can be extended by a length-extension attack, so for message authentication use it as HMAC-SHA256 rather than hashing a secret and a message together.
What SHA-256 is used for
HTTPS certificates, code and app signing, Bitcoin, checksums on download pages, Git’s newer repository format and JWT signatures (HS256 and RS256).
Hashing passwords?
Don’t store passwords as a plain SHA-256 hash. Fast hashes like this one can be guessed millions or billions of times a second on a graphics card. Use a slow password hash made for the job, such as bcrypt or Argon2, which also adds a random salt to every password. The bcrypt generator makes and checks bcrypt hashes.