# SHA1 Hash Generator > Generate SHA-1 hashes online with this free SHA1 Hash Generator. Choose UTF-8, UTF-16, Hex or Base64 input, HMAC-SHA1, and Hex or Base64 output. u003cpu003eGenerate SHA-1 hashes from text for legacy checksum comparisons or testing older integrations. The tool also offers u003cemu003eAuto / Liveu003c/emu003e updates, multiple input encodings, and an optional HMAC-SHA1 mode.u003c/pu003e ## Overview & Metadata - **Canonical URL:** https://million.tools/sha1/ - **Markdown Copy (.md.txt):** https://million.tools/sha1.md.txt - **Plain Text Copy (.txt):** https://million.tools/sha1.txt - **API Endpoint:** https://million.tools/api/v1/run/sha1 (POST, Keyless, 60 req/min) - **SEO Title:** SHA1 Hash Generator – Free Online SHA-1 Calculator - **Alternative Names:** Generate SHA1 Hashes Online, SHA-1 Hash Calculator, SHA-1 Hash Generator, SHA1 Generator, SHA1 Hash Calculator, SHA-1 Calculator, HMAC SHA1 Generator - **Category:** [Hash](https://million.tools/hash/) - **Tags:** [#SHA1](https://million.tools/tag/sha1/) - **Application Category:** `DeveloperApplication` - **Platform:** Web (All modern desktop and mobile browsers, requires JavaScript) - **Price:** Free ($0.00 USD, no registration or sign-up required) - **Live Calculation:** Supported (`Auto / Live` toggle enabled by default) - **Usage Statistics:** 8 uses · 514 views - **Published:** 2026-10-28 - **Last Updated:** 2026-11-10 - **Author:** Egor Volchenko (Developer & Author) ## Key Features - Calculate 160-bit SHA-1 hashes from text - Select UTF-8, UTF-16, Hex, or Base64 input representation - Switch between Auto / Live and manual Run calculation - Generate HMAC-SHA1 values using Enable HMAC-SHA1 - Display results as Hex (lower), Hex (UPPER), or Base64 - Copy the result or clear the input ## Parameters & Interface Controls ### Input Parameters & Options - `input_text`: Input text. - `hmac_key`: HMAC Secret Key. - `input_encoding`: `Hex` | `Hex (Ignore Non-Hex Characters)` | `Base64` | `UTF-8` | `UTF-16LE` | `UTF-16BE` | `Windows-1251 (Cyrillic)` | `Windows-1252 (Latin 1)` | ... (42 options) - `output_format`: `Hex (lower)` | `Hex (UPPER)` | `Base64` - `hmac_enabled`: Boolean. Enable HMAC-SHA1. - `hmac_encoding`: `Hex` | `Hex (Ignore Non-Hex Characters)` | `Base64` | `UTF-8` | `UTF-16LE` | `UTF-16BE` | `Windows-1251 (Cyrillic)` | `Windows-1252 (Latin 1)` | ... (42 options) ### Output Fields & Metrics - `result`: SHA-1 Hash Result. - **Controls:** `Run`, `Clear`, `Copy`, `Fill test data`, `Auto / Live` ## Interactive Example (Test Vector) **Settings:** - Input Encoding: `Hex` - Output Format: `Hex (lower)` - Key Encoding (Search/Type): `UTF-8` **Input text:** ```text 616263 ``` **SHA-1 Hash Result:** ```text a9993e364706816aba3e25717850c26c9cd0d89d ``` ## 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. 1. Type or paste your content in the **Input text** editor. 2. 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. 3. Keep **Auto / Live** enabled to update the hash while editing, or switch it off and press **Run** to calculate manually. 4. 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 ### How long is a SHA-1 hash? 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. ### Why does the same text give me a different SHA-1 hash? The underlying bytes may differ. Check **Input Encoding**, extra spaces, line breaks, capitalization, and Unicode characters. For a valid comparison, the original data and the selected encoding must match exactly. ### What is the difference between SHA-1 and HMAC-SHA1? Plain SHA-1 hashes the message alone. **HMAC-SHA1** uses SHA-1 within a keyed authentication method, so calculating or verifying the result requires a secret key as well as the message. ### Does changing Hex to Base64 change the SHA-1 hash? No. *Hex (lower)*, *Hex (UPPER)*, and *Base64* only change how the same 20-byte digest is displayed. Uppercase and lowercase hexadecimal digits represent identical byte values. ### What happens if I select Hex or Base64 for input? Those options are for input represented as encoded data rather than ordinary text. For example, the hexadecimal bytes `616263` represent `abc`; selecting Hex is different from hashing the six literal characters `616263` as UTF-8 text. ### Can a SHA-1 hash be decrypted or reversed? No. SHA-1 is a one-way hash function, not an encryption algorithm. A known digest may be compared against hashes of possible inputs, but the digest itself does not contain a reversible copy of the original data. ### Is SHA-1 secure for passwords or digital signatures? No. Practical collision attacks make SHA-1 inappropriate for new digital signatures and other collision-sensitive uses. Store passwords using a dedicated password-hashing algorithm such as Argon2id, bcrypt, or scrypt, and prefer [SHA-256](https://million.tools/sha256/) or a stronger approved hash for new general-purpose cryptographic designs. ## Related Tools - [Bcrypt Verify](https://million.tools/bcrypt-verify/): Check a candidate password against an existing encoded Bcrypt hash. Read the match result and check format or parameter limits when verification fails. - [Bcrypt Hash Generator](https://million.tools/bcrypt/): Generate a salted Bcrypt password hash from text or encoded bytes. Copy the complete encoded string for development fixtures and password-verification tests. - [BLAKE3 Hash Generator](https://million.tools/blake3/): Calculate a 256-bit BLAKE3 digest from text or encoded bytes. Choose Hex or Base64 output and inspect the separate HMAC option. - [BLAKE2s Hash Generator](https://million.tools/blake2s/): Calculate a 256-bit BLAKE2s digest from text or encoded bytes. Choose Hex or Base64 output and inspect the separate HMAC option. - [BLAKE2b Hash Generator](https://million.tools/blake2b/): Calculate a 512-bit BLAKE2b digest from text or encoded bytes. Choose Hex or Base64 output and inspect the separate HMAC option. ## About the Author **Egor Volchenko** — *Developer & Author* 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. - **Links:** [x.com](https://x.com/egorleet) · [github.com](https://github.com/egorleet) · [t.me](https://t.me/egorleet) · [instagram.com](https://www.instagram.com/egorleet) · [facebook.com](https://www.facebook.com/egorleet/) · [egorleet.blog](https://egorleet.blog/) · [mastodon.social](https://mastodon.social/@egorleet) · [twitch.tv](https://www.twitch.tv/egorvolchenko) · [stackoverflow.com](https://stackoverflow.com/users/31679135/egor-volchenko) · [reddit.com](https://www.reddit.com/user/Vegetable_Window9185/) · [youtube.com](https://youtube.com/@egor-volchenko)