Hash Generator (SHA)
Last updated: 2026-06-25
The hash generator is a free tool that instantly produces SHA-1, SHA-256, SHA-384 and SHA-512 hash values of text as hexadecimal.
It computes hashes with the browser's built-in Web Crypto (SubtleCrypto), so your input text is never sent to a server.
Text input
Hash result
How to use
- Enter text — type the text you want to hash into the input box.
- Choose an algorithm — pick SHA-1, SHA-256, SHA-384 or SHA-512.
- Review and copy — click Generate hash to show the hexadecimal (hex) hash value, which you can copy.
Hash functions and the SHA algorithms
A hash function is a one-way function that maps input of any length to a fixed-length value. The same input always produces the same hash, and a tiny change to the input changes the result completely. These properties make hashes the basis for file and data integrity checks, deduplication and digital signatures.
| Algorithm | Output bits | Hex length |
|---|---|---|
| SHA-1 | 160 bits | 40 chars |
| SHA-256 | 256 bits | 64 chars |
| SHA-384 | 384 bits | 96 chars |
| SHA-512 | 512 bits | 128 chars |
This tool encodes the input as UTF-8 and computes the hash with crypto.subtle.digest, so the same text produces the same result as other standard tools. If you need encoding, use the Base64 encoder; to inspect tokens, use the JWT decoder.
Frequently asked questions (FAQ)
What technology is used to generate the hash?
It uses crypto.subtle.digest from the browser's built-in Web Crypto API. The input text is converted to UTF-8 bytes and then hashed with the selected SHA algorithm, all in the browser, so nothing is sent to a server.
What is the difference between SHA-256 and SHA-512?
Both are one-way hash functions in the SHA-2 family. SHA-256 produces a 256-bit (64 hex characters) result, while SHA-512 produces 512 bits (128 hex characters). SHA-512 is longer, but SHA-256 is the most common choice for general integrity checks.
Can I recover the original from a hash?
No. SHA hashes are one-way functions, so you cannot reverse a hash back to the original text. The same input always produces the same hash, but the hash alone reveals nothing about the input, which is why it is used for integrity checks and fingerprinting.
Can I use SHA-1 to store passwords?
It is not recommended. SHA-1 has known collision weaknesses and is unsuitable for security purposes. For storing passwords, use a dedicated salted hash such as bcrypt, scrypt or Argon2. This tool is suitable for integrity checks and learning.
Related tools & guides
Last updated: 2026-06-25