Generate a SHA-1 Hash
…Get the 40-character SHA-1 hash of text or a file, for example to compare with an older checksum, a Git object or a legacy API signature. Files stay on your device.
- Free
- Runs in your browser
- Text or file
- No sign-up
How It Works
Get a SHA-1 hash in three steps.
Choose text or file
Type text, or pick a file of up to 1 GB.
Read the hash
The 40-character SHA-1 appears straight away.
Compare
Paste the expected value to check it.
What is SHA-1 used for today?
SHA-1 produces a 160-bit hash, written as 40 hexadecimal characters. It was the standard for years, and you still meet it in older software checksums, some APIs and as the way Git names objects (although Git is moving to SHA-256). Since 2017 researchers have produced different files with the same SHA-1, so it should not be used where someone might tamper with data on purpose.
Git hashes a file with a short header in front ("blob <size>\0"), so a file's SHA-1 here differs from its Git object ID. That is expected.
Web Crypto
Hashed with your browser's built-in SHA-1 implementation.
Files up to 1 GB
Read and hashed on your device.
Checksum check
Paste an expected value; extra text after the hash, such as a file name, is ignored.
Legacy only
For new work, use SHA-256.
Convert PDF Files and File Formats
Find the perfect online tool to combine PDF files, compress documents, and handle your daily workflow effortlessly.
PDF Tools
All your PDF needs in one place
- Merge PDF
- Organize PDF
- Split PDF
- Compress PDF
- Convert to Word
- Convert to Image
Image Tools
Edit and optimize your images
- Resize Image
- Compress Image
- Convert Format
- Crop Image
- Add Watermark
- Remove Background
Word Tools
Work with Word documents
- Convert to PDF
- Merge Documents
- Split Documents
- Compress File
- Edit Text
- Add Watermark
Excel Tools
Process Excel spreadsheets
- Convert to PDF
- Convert to CSV
- Merge Sheets
- Split Sheets
- Compress File
- Clean Data
Why Use This SHA-1 Tool
Checksums for older systems.
Files and text
Hash either with one switch.
Compare
Match or No match at a glance.
Private
Nothing is uploaded.
Case option
Upper or lower-case hex.
Frequently Asked Questions
Questions people ask about the SHA-1 Hash Generator.
Not for security. Practical collisions were shown in 2017, and browsers and certificate authorities stopped trusting SHA-1 certificates. It is still fine for detecting accidental changes.
sha1sum file on Linux, shasum file on macOS and certutil -hashfile file SHA1 on Windows.
Git adds a header before hashing, so the Git ID of a file is not the plain SHA-1 of its contents.
SHA-256 for checksums and signatures, and a password hashing algorithm such as bcrypt or Argon2 for passwords.
Related Text & Developer Tools
More small utilities that run in your browser.
SHA-256 Hash Generator
Get the SHA-256 hash of text or a file and verify a download.
MD5 Hash Generator
Get the MD5 hash of text or a file and check a checksum.
Hash Generator
Make MD5, SHA-1, SHA-256 and SHA-512 hashes of text.
HMAC Generator
Sign a message with HMAC-SHA256 or SHA-512 and a secret key.
JWT Generator
Create and sign HS256, HS384 or HS512 test tokens.