SHA-256 hash generator
Compute SHA-256, SHA-512, SHA-384, and SHA-1 hex digests directly inside your browser using native Web Crypto API—nothing leaves your device.
Output appears here.
Tips & common uses
- Uses your browser’s built-in window.crypto.subtle.digest() engine to compute SHA-256, SHA-512, SHA-384, and SHA-1 hex strings simultaneously in milliseconds.
- Input is encoded as strict UTF-8 bytes—watch out for accidental trailing newlines when comparing hashes against command-line tools like echo -n | shasum -a 256.
- Ideal for verifying API webhook payloads, cache keys, and checksums without pasting internal strings into cloud hash sites.
Frequently asked questions
Does this SHA-256 generator send my text to a server?
No. Hashing runs directly inside your browser via the native Web Crypto API (crypto.subtle.digest) with zero network traffic.
Why does my SHA-256 hash differ from running "echo text | sha256sum" in bash?
Bash "echo" appends a hidden newline (\n) by default. Use "printf %s "text" | shasum -a 256" in your terminal to match exact text hashing without a trailing newline.
Can you reverse or decrypt a SHA-256 hash?
No. SHA-256 is a one-way cryptographic digest function—you cannot recover the original input from its 64-character hex output.