How to generate a SHA-256 hash of a string
Generate the SHA-256 hash of any text instantly in your browser. Free, private, nothing uploaded.
SHA-256 is a one-way cryptographic hash that turns any input into a fixed 64-character (256-bit) hex digest. Paste your text into a hash tool to get it — for example, the SHA-256 of "hello" is 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824.
Input
hello
Output
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
The same input always yields the same digest; the smallest change produces a completely different one.
Open the Hash Generator → Free · runs in your browser · nothing uploaded
Steps
- Open the Hash tool and paste your text.
- Read the SHA-256 digest (also available: MD5, SHA-1, SHA-512, CRC32).
- Copy the 64-character hex digest.
- For keyed integrity (HMAC), use the HMAC tool with a secret key instead.
Frequently asked questions
- Can a SHA-256 hash be reversed?
- No. SHA-256 is one-way — you cannot recover the input from the digest. Identical inputs always hash to the same value, which is what makes hashes useful for integrity checks and lookups.
- Should I use SHA-256 to store passwords?
- No. Plain SHA-256 is too fast for passwords. Use a slow, salted password hash such as bcrypt, scrypt, or Argon2 designed to resist brute-force attacks.