Hash Generator
Generate SHA-256, SHA-384, and SHA-512 hashes from text in your browser.
5 characters · 5 bytes (UTF-8)
Generating hash…
Hashing runs in your browser through its built-in Web Crypto API. Your text is not sent to a server.
Generate SHA hashes online
A cryptographic hash converts input data into a fixed-length digest. This tool generates SHA-1, SHA-256, SHA-384 and SHA-512 hashes from text using your browser's built-in Web Crypto API.
How to generate a hash
- Enter or paste the text you want to hash.
- Select a hashing algorithm.
- Generate the hash to see its hexadecimal digest.
- Copy the result for your development or verification task.
Supported hashing algorithms
- SHA-1: Produces a 160-bit digest. It has known collision weaknesses and should only be used for legacy compatibility or non-security purposes.
- SHA-256: Produces a 256-bit digest and is commonly used for integrity checks and digital security applications.
- SHA-384: Produces a 384-bit digest and belongs to the SHA-2 family.
- SHA-512: Produces a 512-bit digest and is another member of the SHA-2 family.
Example SHA-256 hash
The text hello produces this SHA-256 digest:
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
Common uses of hash functions
- Checking whether data has changed.
- Comparing file or text fingerprints.
- Verifying checksums provided by software publishers.
- Supporting digital signatures and security workflows.
Important security limitations
A plain SHA hash is not suitable for storing passwords. Password storage should use dedicated password-hashing algorithms such as Argon2, bcrypt or scrypt, with appropriate salts and parameters. Also, a matching hash is useful for checking integrity, but SHA-1 should not be relied on for security-sensitive verification.
Why do character and byte counts differ?
Text is encoded as UTF-8 before hashing. Some characters need multiple bytes, so the byte count can be higher than the number of visible characters. For example, an emoji can occupy four bytes in UTF-8.
Frequently asked questions
- Which algorithms are supported?
- SHA-256, SHA-384, and SHA-512 from the SHA-2 family, plus SHA-1 for compatibility with older systems. These come from your browser's Web Crypto API — no hashing code is hand-written here.
- Should I use SHA-1?
- Only for non-security purposes like matching a checksum from a legacy system. SHA-1 has known collision weaknesses and is not appropriate for signatures, certificates, or anything security-sensitive.
- Can I use this to hash passwords for storage?
- No. A plain SHA hash is not a suitable way to store passwords — purpose-built password hashing functions such as bcrypt, scrypt, or Argon2 exist for that, because they're deliberately slow and salted.
- Why do the character and byte counts differ?
- Hashing operates on bytes, and non-ASCII characters take more than one byte in UTF-8. An emoji, for example, is one character but four bytes.