SHA-1 Hash Generator
Generate a SHA-1 hash of any text or file. 40-character hex digest, computed in your browser. Free and private.
Part of the free Hash Generator. Runs in your browser — nothing is uploaded.
SHA-1 Hash Generator
SHA-1 produces a 160-bit digest written as 40 hex characters. It is still used to identify Git commits and older checksums, but it is not safe for signatures or passwords.
Worked example: SHA-1 of a short string
Input
hello
Hash
aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
Practical tip
Prefer SHA-256 for new checksums. Git still uses SHA-1 (and is migrating to SHA-256) for historical reasons, not because SHA-1 is a good modern choice.
How to use this Hash Generator
- 1Use the live tool above — it runs entirely in your browser and never uploads your data.
- 2Paste the sample from the worked example, or use your own input.
- 3Copy the result, then adapt the same steps in your editor, script, or pipeline.
SHA-1 Hash Generator FAQs
Is SHA-1 secure?
No. Chosen-prefix collisions are practical. Do not use SHA-1 for signatures, certificates or password storage.
How long is a SHA-1 hash?
160 bits, 40 hexadecimal characters.
More Hash Generator pages
- SHA-512 Hash GeneratorGenerate a SHA-512 hash online. 128-character hex digest of text or files, computed locally in your browser.
- HMAC-SHA256 GeneratorCreate an HMAC-SHA256 signature from a message and a secret key. Used for webhooks, API request signing and JWTs.
- File Checksum CalculatorCalculate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 checksums of a local file. The file never leaves your browser.
- Verify a File ChecksumCheck whether a file matches a published MD5, SHA-1 or SHA-256 checksum. Paste the expected hash and compare locally.
- SHA-384 Hash GeneratorGenerate a SHA-384 hash of text or a file. 96-character hex digest, computed in your browser.
- Generate a Hash From a StringHash any string with MD5, SHA-1, SHA-256, SHA-384 and SHA-512 at the same time. Instant, private, in-browser.
- Compare Two Hash ValuesCompare two hex hashes and see if they match. Useful when a vendor checksum and your local digest disagree.
- Hash Text Online FreeFree online text hasher. MD5, SHA-1, SHA-256, SHA-384 and SHA-512 as you type. No signup, nothing uploaded.
- Checksum Generator for DownloadsGenerate a SHA-256 or MD5 checksum to publish next to a download. Hash the release file locally and copy the digest.