SHA-256 Hash Generator
About this tool
About SHA-256 Hash Generator
SHA-256 is the workhorse hash of modern software: it secures TLS certificates, Git's newer object format, Bitcoin, package lockfiles, Subresource Integrity and countless API signatures. Enter any text and its 64-character SHA-256 digest appears instantly, computed by your browser's built-in Web Crypto, with MD5, SHA-1, SHA-384 and SHA-512 listed underneath for comparison. The input is hashed as UTF-8, matching sha256sum, Python's hashlib.sha256 and Node's createHash on UTF-8 text, and you can hash raw hex or Base64 bytes instead. Choose hex for checksums, or Base64 for formats such as Subresource Integrity attributes. Tick HMAC to produce HMAC-SHA256, the scheme used to sign webhooks and API requests, with a key given as text, hex or Base64. Paste the signature you received into Compare with expected hash to confirm it matches, without your secret or data leaving your device.
Built and maintained by Abhi JainUpdated
How to Generate a SHA-256 Hash
- 1
Enter text
Type or paste into Text to hash. Use Input is for hex or Base64 bytes.
- 2
Set options
Pick the Output format. Tick HMAC (keyed hash) and enter the Secret key for HMAC-SHA256.
- 3
Copy or compare
Copy the SHA-256 row, or paste a value into Compare with expected hash.
SHA-256 Hash Generator: questions and answers
How long is a SHA-256 hash?
256 bits, which is 32 bytes, written as 64 hexadecimal characters or 44 Base64 characters with padding.
Can SHA-256 be reversed?
No. There is no known way to get the input back from a SHA-256 digest other than guessing inputs and hashing them, which is impractical for anything that is not short or predictable.
How do I verify a webhook's HMAC-SHA256 signature?
Hash the raw request body exactly as received, using HMAC-SHA256 with your webhook secret, and compare it with the signature header in the encoding the provider uses, usually hex or Base64. Any change to the body, even whitespace, changes the result.
Is SHA-256 good for storing passwords?
Not on its own. It is designed to be fast, which helps attackers try billions of guesses. Store passwords with a slow, salted algorithm such as Argon2id, scrypt or bcrypt.
More Hash Generator presets
Related tools
- File Checksum CalculatorMD5, SHA-1, SHA-256, SHA-384 and SHA-512 of any file, checked against the published hash.
- JWT GeneratorCreate and sign JWTs with HS, RS, PS, ES or EdDSA, with one-click exp and iat claims.
- Base64 EncoderEncode and decode Base64 for text and files, with URL-safe, MIME and data URL options.
- Password GeneratorStrong random passwords with a live strength and entropy estimate.
- UUID GeneratorGenerate UUID v4 or time-ordered v7 in bulk, and validate or decode any UUID.