Hash Generator
Generate SHA-256, SHA-384, and SHA-512 hashes from text, right in your browser.
5 characters · 5 bytes (UTF-8)
Hashing runs in your browser through its built-in Web Crypto API. Your text is not sent to a server.
How it works
Your text is encoded as UTF-8 and passed to the browser's built-in digest function, which returns a fixed-length fingerprint shown here in hexadecimal. The same input always produces the same digest, and changing even one character produces a completely different one.
Example
SHA-256(“hello”) = 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
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.