(empty)
da39a3ee5e6b4b0d3255bfef95601890afd80709
The SHA-1 hash of empty input is a well-known constant.
Generate a SHA-1 hash from text online. Type or paste a message to calculate its 160-bit digest as a 40-character lowercase hexadecimal string, then copy the result. Processing runs locally in your browser with the Web Crypto API. SHA-1 remains useful for legacy compatibility but should not protect new security-sensitive systems.
(empty)
da39a3ee5e6b4b0d3255bfef95601890afd80709
The SHA-1 hash of empty input is a well-known constant.
hello world
2aae6c35c94fcfb415dbe95f408b9ce91ee846ed
Short input produces a fixed 40-character hex string.
Hello world
7b502c3a1f48c8609ae212cdfb639dee39673f5e
A single bit flip (lowercase h → uppercase H) yields a completely different hash.
The quick brown fox jumps over the lazy dog
2fd4e1c67a2d28fced849ee1bb76e7391b93eb12
A widely used test vector for checking that a SHA-1 implementation returns the expected digest.
SHA-1 (Secure Hash Algorithm 1) is a cryptographic hash function standardized in 1995. It converts input of any length into a fixed 160-bit (20-byte) digest, normally written as 40 hexadecimal characters. This online SHA-1 calculator displays the digest in lowercase hex.
SHA-1 is deterministic and one-way, but it is no longer collision-resistant enough for modern security. Practical collision attacks can create different inputs with the same SHA-1 digest. Use this generator for compatibility, testing, and non-adversarial identification—not for new signatures, certificates, or other collision-sensitive designs.
SHA-1 remains in legacy protocols, existing Git repositories, older HMAC-SHA-1 integrations, and data sets whose identifiers cannot be changed easily. It can also reproduce a published legacy checksum or help detect accidental corruption when no malicious actor is involved.
Do not choose SHA-1 for new digital signatures, certificate signatures, tamper-resistant checksums, or content identifiers exposed to hostile input. A collision attack does not reveal an original message, but it breaks the assumption that one digest uniquely identifies one input. Prefer SHA-256, SHA-512, SHA-3, or another modern algorithm when you control the format.
The calculator hashes the exact UTF-8 bytes of your text. Letter case, spaces, punctuation, Unicode characters, and line endings are significant, so preserve them when reproducing or verifying a hash. An empty input is valid and produces the standard SHA-1 empty-string digest. You can switch the menu to compare the same text with SHA-256, SHA-512, SHA-3, BLAKE2, MD5, or CRC32.
SHA-1 encodes the message as bytes, appends padding and the original bit length, and divides the result into 512-bit blocks. Each block passes through 80 rounds of 32-bit operations, modular additions, constants, and an expanded message schedule. Five 32-bit state words form the final 160-bit digest.
A small input change normally alters many output bits—the avalanche effect. However, collision resistance is a separate property, and practical chosen-prefix collision techniques make SHA-1 unsuitable when an attacker can craft both inputs. SHA-1 preimage attacks are still not practical, but that does not restore its safety for signatures or adversarial integrity checks.
Calculate a SHA-256 hash from text locally in your browser.
Generate an HMAC from text with a secret key in your browser.
Calculate a SHA-512 hash from text locally in your browser.
Calculate an MD5 hash from text locally in your browser.
Calculate a SHA3-256 hash from text locally in your browser.
Calculate a SHA3-512 hash from text locally in your browser.