Hash Generator
Generate SHA-1/256/384/512 hashes of text (Web Crypto).
What is the Hash Generator (SHA)?
The hash generator hashes your input text with four algorithms at once: SHA-1, SHA-256, SHA-384, and SHA-512, and shows all the results together. A hash is a one-way function that turns arbitrary-length data into a fixed-length hexadecimal string, widely used for file integrity checks, data fingerprints, and checksum comparisons.
This tool computes hashes using the browser-standard Web Crypto API (crypto.subtle.digest). Input is encoded as UTF-8 before hashing, and results are shown as lowercase hexadecimal. MD5 is intentionally excluded because it isn't part of the browser standard and is cryptographically weak.
Hashing runs entirely inside your browser and the text you enter is never sent to a server. Even when you need to check the hash of a sensitive string like a password or API key, the value stays on your machine, so you can use it with confidence.
How to use
- Type or paste the text you want to hash into the input box (it's processed as UTF-8).
- As soon as you type, the SHA-1, SHA-256, SHA-384, and SHA-512 hashes are computed automatically and shown side by side.
- Use the copy button next to each result to place the hash for your chosen algorithm on the clipboard.
Frequently asked questions
- Why is MD5 missing?
- MD5 isn't supported by the browser's Web Crypto standard (subtle.digest), and it's vulnerable to collision attacks, so it's not recommended for security purposes. That's why it's excluded here. For integrity checks, prefer at least SHA-256.
- Which algorithm should I pick?
- For general data fingerprints or integrity checks, SHA-256 is the standard choice. If you need a longer digest, use SHA-384 or SHA-512. Treat SHA-1 as for backward compatibility or matching legacy systems only, and avoid it for new security uses.
- Can I safely store passwords with these hashes?
- Plain hashes like SHA are not suitable for password storage. Passwords should be handled server-side with purpose-built algorithms that include a salt and iteration, such as bcrypt, scrypt, or Argon2. This tool is for quick checks and comparisons.
- Why does the same-looking text sometimes give a different hash?
- It's due to invisible differences. Leading or trailing spaces, line endings (the difference between \n and \r\n), or a different Unicode normalization form change the UTF-8 bytes, which completely changes the hash. If values differ, check for hidden characters.