SHA-1 Generator

The SHA-1 hash of any text or file

Hashed as UTF-8, exactly as typed, including spaces and line breaks.

Hashes

SHA-1
20389f1318db6ef51b7dd2e158c9fe14e5382ac6
MD5
f62efd51eb85ca300e399c00f7522cb5
SHA-256
a5f70d3622ba5a285b0c983a1f0e3e912b558c2f78ca5f8a12500d817479142d
SHA-384
4f0925131437a06988a62cf34b59a00e1217cbbe613342e0ea7e30051f24dd68c4eabaeafa8b6281ae2ef35fd598dad4
SHA-512
af632db506bf270f4422d8bfd14386add5cfe557e6cad90cd55a3512793ce79b4d3b6161830163e4c73ca86e862589053c1d2015b3903aa87a98549f8f28d366

SHA-1 Generator guide

SHA-1 produces a 160-bit hash, written as 40 hex characters. It was the standard hash for years and still turns up in Git, older checksums, and legacy systems.

Is SHA-1 still safe?

Not for security. In 2017 the SHAttered attack produced two different PDF files with the same SHA-1 hash, and browsers no longer accept SHA-1 certificates. Use SHA-256 for anything new; SHA-1 remains fine for non-security uses such as detecting accidental changes.

SHA-1 in Git

Git names every commit, file, and tree by the SHA-1 hash of its contents, which is where commit IDs such as a1b2c3d come from. Newer versions of Git can use SHA-256 instead.

Checking a download

Click Hash a file and choose the file, then paste the checksum published by the site you downloaded it from into Check against a hash. A match means your copy is identical to the original, byte for byte.

Example

hello

// SHA-1

aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d

Frequently asked questions

How long is a SHA-1 hash?
160 bits, written as 40 hexadecimal characters.
Why was SHA-1 deprecated?
Collisions, two inputs with the same hash, became practical to produce in 2017, so it can no longer guarantee that signed data hasn't been swapped.
Is my text or file sent anywhere?
No. Hashing happens in your browser, and nothing is uploaded.