SHA1 Hash Generator
Developer & Author —Egor VolchenkoGenerate SHA-1 hashes from text for legacy checksum comparisons or testing older integrations. The tool also offers Auto / Live updates, multiple input encodings, and an optional HMAC-SHA1 mode.
How to Generate a SHA-1 Hash
Use this online SHA1 calculator to hash text as entered or to interpret an encoded byte sequence before hashing. The steps below match the controls shown in the tool.
- Type or paste your content in the Input text editor.
- Open Input Encoding and choose the representation of your input, such as UTF-8, UTF-16, Hex, or Base64 where available. Leave UTF-8 selected for ordinary text.
- Keep Auto / Live enabled to update the hash while editing, or switch it off and press Run to calculate manually.
- Under Separator, select Hex (lower), Hex (UPPER), or Base64. Read the value in SHA-1 Hash Result, then use Copy to copy it or Clear to reset your input.
For a quick test, enter abc with UTF-8 and Hex (lower). The SHA-1 result is a9993e364706816aba3e25717850c26c9cd0d89d.
Input Encoding vs. Hash Output
Input Encoding determines which bytes are hashed. UTF-8 and UTF-16 represent text differently; Hex and Base64 can represent byte data in text form. Choose the encoding used by the original system when checking an existing digest.
The Separator choices control the display format of the same digest, despite that label in the interface. Switching between Hex (lower), Hex (UPPER), and Base64 changes how the 20 result bytes are written, not the SHA-1 value itself.
Generate an HMAC-SHA1 Value
Turn on Enable HMAC-SHA1 when you need a keyed message authentication code rather than an ordinary SHA-1 digest. HMAC combines the message with a secret key, so the same text produces a different result when a different key is used.
Enter your message in Input text. HMAC requires a shared secret key, which must match the key used by the system you are checking. Configure it in the HMAC settings, choose the input and output formats, and use Run if live calculation is off.
What Is a SHA-1 Hash?
SHA-1 (Secure Hash Algorithm 1) computes a fixed 160-bit message digest from input bytes. A digest contains 20 bytes; it takes 40 hexadecimal characters to write those bytes in Hex. Base64 provides another representation of the same result.
When a SHA-1 Calculator Is Still Useful
SHA-1 remains relevant when matching old checksums, investigating legacy software, or reproducing expected results in a test. Exact bytes matter: even a trailing space, a different line ending, or another input encoding changes the hash.
SHA-1 vs. SHA-256: Security Considerations
SHA-1 is vulnerable to practical collision attacks and is not suitable for new digital signatures or systems that rely on collision resistance. For new applications, use SHA-256 or an appropriately selected modern alternative. HMAC-SHA1 is a separate keyed construction and may still appear in established protocols; follow the security requirements of the system you are integrating with.
A SHA-1 hash is not encryption. It cannot be decrypted back into the input, and plain SHA-1 should not be used to store passwords.
SHA-1 Hash Generator FAQ
SHA-1 always produces a 160-bit (20-byte) digest, regardless of input length. It is typically displayed as 40 hexadecimal characters, or as a Base64 string when that output option is selected.
Hi! I’m a WordPress developer with over 10 years of experience. I love Tailwind CSS, clean code, and intuitive interfaces. I’m currently working on million.tools — a service with convenient online tools for everyday tasks. I’m building it from scratch with great attention to detail and user experience.