SHA-1 Hash Generator
Make the SHA-1 hash (40 hexadecimal characters) of any text, in your browser.
SHA-1 hash
Type or paste text. The hash updates as you type.
Result
SHA-1 hash
2fd4e1c67a2d28fced849ee1bb76e7391b93eb12
40 hex characters
Length of the hash
43
Input size (UTF-8 bytes)
Private: Everything runs in this page. Nothing you type is sent anywhere or saved.
On this page
SHA-1 examples
| Text | SHA-1 hash |
|---|---|
| (empty text) | da39a3ee5e6b4b0d3255bfef95601890afd80709 |
| abc | a9993e364706816aba3e25717850c26c9cd0d89d |
| hello | aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d |
| Hello, World! | 0a0a9f2a6772942557ab5355d76af442f8f65e01 |
| The quick brown fox jumps over the lazy dog | 2fd4e1c67a2d28fced849ee1bb76e7391b93eb12 |
Formula
SHA-1(text) = 160-bit digest, written as 40 hex digits
How the sha-1 hash works
- Step oneType or paste the text into the box.
- Step twoThe SHA-1 hash appears under it and changes on every key press.
- Step threeCopy the hash. The same text always gives exactly the same hash; a change of even one character gives a completely different one.
What this tool does not do
- SHA-1 cannot be turned back into the text, and this tool does not try to.
- It is not safe against deliberate collisions: do not use it for signatures or certificates.
- It hashes the UTF-8 bytes of the text; another text encoding gives another hash.
Frequently asked questions
What is SHA-1?
SHA-1 is a hash function published by NIST in the SHA family (FIPS 180-4). It gives a 160-bit value, written as 40 hexadecimal characters.
Is SHA-1 safe to use?
Not for security. In 2017 researchers published two different files with the same SHA-1 hash, so it must not be used where an attacker could choose the input. It is fine for spotting accidental changes.
Is my text sent anywhere?
No. The hash is worked out inside this page, so the text is not uploaded or saved.