SHA Hash Generator
Generate SHA-1, SHA-256, and SHA-512 hashes from text or files instantly in your browser. Uses the Web Crypto API — completely private and free.
Generate SHA-1, SHA-256, and SHA-512 hashes from text or files instantly in your browser. Uses the Web Crypto API — completely private and free.
SHA (Secure Hash Algorithm) is a family of cryptographic hash functions designed by the NSA and standardized by NIST. The family includes SHA-1 (160-bit, deprecated), SHA-2 family (SHA-224, SHA-256, SHA-384, SHA-512), and SHA-3 family (a different design accepted in 2015). SHA-256 is the most widely used member today, appearing in TLS certificates, Bitcoin's proof-of-work, Git's commit identifiers, and most modern cryptographic protocols.
Unlike MD5 and SHA-1, SHA-256 has no known practical collision attacks. It is considered cryptographically secure for the foreseeable future and is the default hash function for new cryptographic designs. SHA-384 and SHA-512 offer larger output for applications that benefit from the wider digest, with similar security properties.
This generator runs entirely in your browser using the browser's built-in SubtleCrypto API. The implementation is constant-time and side-channel resistant where the browser's crypto module supports those properties. No input or output is sent to any server.
SHA hashes are the standard for cryptographic integrity. Verifying that a file matches its published hash defends against transmission errors and tampering. Producing a SHA-256 of content lets others verify the content is exactly what you produced; tampering becomes detectable.
Modern systems use SHA-256 broadly: TLS certificate fingerprints, JWT signatures (with HMAC-SHA256), API request signing (AWS, GitHub), Git commit identifiers, IPFS content addresses, and Bitcoin block hashes. Working with any of these requires being able to compute SHA-256 reliably.
Paste input, choose variant, get the hash.
SHA-256 processes input in 512-bit blocks, similar to MD5 in structure but with stronger round functions and a larger output. Each block updates a 256-bit internal state through 64 rounds of additions, rotations, and bitwise operations. The final state is the digest.
SHA-512 processes 1024-bit blocks and maintains a 512-bit state through 80 rounds. SHA-384 is SHA-512 truncated to 384 bits with different initial state values, making it cryptographically distinct from a simple truncation.
Browser SubtleCrypto.digest implements all SHA-2 variants natively, typically using hardware-accelerated implementations on modern CPUs (Intel SHA Extensions, ARMv8 SHA instructions). Speed is comparable to MD5 in browsers that take advantage of the hardware support.