How to use SHA-256 Generator
- Paste the text to hash.
- Select the output format.
- Paste an expected hash to verify a match.
- Copy or download the digest.
SHA-256 Generator features
- SHA-256 computed with WebCrypto — fast and fully local
- Lowercase/uppercase hex, Base64, Base64url and binary output
- Compare against an expected digest (accepts "sha256=" prefixes)
- Whitespace trimming to match printf-style inputs
- Live hashing with input size and byte count
SHA-256 Generator example
SHA-256 of "abc"
Input:
abcOutput:
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015adFrequently asked questions about SHA-256 Generator
Is SHA-256 suitable for storing passwords?
Not on its own. It is fast, which helps attackers. Use a purpose-built password hash (Argon2id, bcrypt or scrypt) with a salt. SHA-256 is ideal for integrity checks, content addressing, HMAC and signatures.
How do I verify a downloaded file's checksum?
Paste the published hash in "Compare with expected hash". For files, compute the digest with "sha256sum file" (Linux/macOS) or "Get-FileHash file" (PowerShell) and compare — this tool hashes text, not uploaded files.
Uppercase or lowercase hex — does it matter?
They represent the same bytes. Most tools print lowercase; the comparison here ignores case and also accepts Base64.
What is the output size?
256 bits: 64 hex characters or 44 Base64 characters (43 without padding).
Technical notes
SHA-256 belongs to the SHA-2 family standardised in FIPS 180-4 and is the default choice for integrity checks, HMAC, TLS and code signing. The digest is deterministic: the same UTF-8 bytes always produce the same 256-bit value.