Skip to content
Free security tool

SHA-1 hash generator

This tool calculates the 160-bit SHA-1 hash of text and shows it as 40 hexadecimal characters. Developers use it to match checksums from older systems and APIs that still use SHA-1.

  • Runs in your browser
  • Free, no account needed
  • Copy or download the result

Your input

43 characters

Letter case

Result

2fd4e1c67a2d28fced849ee1bb76e7391b93eb12

The short answer

SHA-1 turns any input into a 160-bit fingerprint, shown as 40 hexadecimal characters. It is still seen in older systems and checksums, but it is no longer considered safe against deliberate collisions, and NIST has announced its retirement. Use SHA-256 or SHA-512 for new work.

FormulaSHA-1(message) = 160-bit digest, written as 40 hex digits whatever the input length

Worked exampleThe UTF-8 text The quick brown fox jumps over the lazy dog hashes to 2fd4e1c67a2d28fced849ee1bb76e7391b93eb12.

Example

Input
The quick brown fox jumps over the lazy dog
Result
2fd4e1c67a2d28fced849ee1bb76e7391b93eb12

How to use the sha-1 hash generator

  1. Type or paste your text into the Text to hash box.
  2. Choose the Letter case: Lowercase or Uppercase.
  3. The hash updates as you type. Use Copy result to copy it.

How it works

Your text is encoded as UTF-8 and hashed with the SHA-1 function built into your browser (Web Crypto).

SHA-1 is not collision resistant: researchers have produced two different files with the same SHA-1 hash. Do not use it for signatures, certificates or passwords; choose SHA-256 or SHA-512 instead.

Lowercase and uppercase hex letters describe the same hash, so pick the form the other system expects.

Text with an unpaired surrogate (half of an emoji) is rejected, and the limit is 1,000,000 characters.

Everything runs in your browser. Your input is not uploaded or stored.

Questions and answers

Is SHA-1 still safe?

Not for security. A practical SHA-1 collision was published in 2017, so SHA-1 should only be used for compatibility with older systems.

How long is a SHA-1 hash?

160 bits, shown as 40 hexadecimal characters.

What should I use instead of SHA-1?

Use SHA-256 for general hashing. For passwords, use a slow password hashing function such as bcrypt, scrypt or Argon2, not a plain hash.

Is my text uploaded?

No. It runs in your browser, and nothing you paste is sent to a server.

Last updated November 1, 2026. Maintained by SnowRock. How our tools work

All 220 SnowRock tools