Hash Generator MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes — computed locally as you type.

SHA-1 Hash Generator

Generate a 160-bit SHA-1 hash from any text — instant, free, and computed locally in your browser.

All hashing happens locally in your browser — your text is never uploaded to any server.

What is SHA-1?

SHA-1 (Secure Hash Algorithm 1) was published by the NSA in 1995. It maps any input to a 160-bit digest — 40 hexadecimal characters — and for two decades it was the world's default hash for certificates, signatures and software fingerprints.

Example: the SHA-1 hash of hello is aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d — the tool above is pre-filled so you can see it live.

Is SHA-1 secure?

No. In 2017 researchers demonstrated the first practical SHA-1 collision — the SHAttered attack, two different PDF files with the same SHA-1 hash. Browsers and certificate authorities have since rejected SHA-1 certificates, and NIST has deprecated it for digital signatures. Do not use SHA-1 anywhere collision resistance matters.

Common uses of SHA-1

For new designs choose SHA-256 or stronger.

Other hash generators

Need a different digest? Pick another algorithm — each has its own page:

Or go back to the Hash Generator homepage to see all five hashes at once.

Why does my hash not match another tool?

Hashes are computed over bytes, not characters, so two inputs that look identical can still produce different digests. The three usual causes:

Digest sizes at a glance

Every algorithm has a fixed output length, so a quick character count tells you whether a pasted hash is complete or truncated:

AlgorithmBitsHex characters
MD512832
SHA-116040
SHA-25625664
SHA-38438496
SHA-512512128

Letter case is only display formatting: toggling Uppercase hex does not change the underlying value, and two digests that differ only by case are the same hash.

Frequently asked questions

Is SHA-1 broken?

Yes. The SHAttered attack (2017) produced the first practical collision, and later chosen-prefix attacks made it cheaper still. SHA-1 is deprecated for signatures and certificates; major browsers have rejected SHA-1 certificates since 2017.

How many characters is a SHA-1 hash?

A SHA-1 hash is always 40 hexadecimal characters, representing 160 bits, regardless of the input size.

Why does Git still use SHA-1?

Git chose SHA-1 in 2005 to name objects, long before practical collisions existed. Because Git hashes content with a header, attacking a repository is harder than the raw SHAttered attack suggests, but the project is nonetheless transitioning to SHA-256.