Hash Generator — SHA-1, SHA-256, SHA-384, SHA-512 Online
Compute SHA-1, SHA-256, SHA-384, and SHA-512 hashes of any text as lowercase hex, all at once. Generate checksums and content fingerprints to verify a file or string is unchanged.
Examples
hello
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
Exactly the same five characters always produce this same 64-character hex digest.
Hello
185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969
Capitalizing one letter changes nearly every digit — there is no resemblance to the hash of "hello".
How to use this tool
- Type or paste your text.
- View the hashes for each algorithm.
- Copy the hash you need.
What is Hash Generator?
Hash Generator runs your text through the SHA family of one-way hash functions via the browser Web Crypto API and shows the resulting digests as lowercase hexadecimal. A hash is a fixed-length fingerprint: the same input always yields the same digest, but the function cannot be reversed to recover the input. SHA-256 produces 64 hex characters, SHA-512 produces 128. Hashes are the standard way to make a checksum, detect that content changed, or compare two values without storing the originals.
Specifications
| Algorithms | SHA-1, SHA-256, SHA-384, SHA-512 |
|---|---|
| Output | Lowercase hexadecimal |
| Digest length | SHA-256 → 64 hex chars; SHA-512 → 128 |
| Direction | One-way (cannot be reversed) |
Tips & gotchas
- Hashing is not encryption — it is one-way, so there is no key and no way to get the original text back from the hash.
- MD5 and SHA-1 are broken for security; never use them to hash passwords or for anything where collisions matter — prefer SHA-256 or stronger.
- For storing passwords, a plain SHA hash is still unsafe; use a slow, salted algorithm like bcrypt, scrypt, or Argon2 instead.
- The same input always gives the same digest, so identical hashes mean identical input — but to detect tampering you must compare against a trusted reference hash.
Features
- SHA-1, SHA-256, SHA-384, and SHA-512 at once
- Lowercase hexadecimal output
- Powered by the browser Web Crypto API
- Copy any hash with one click
- Same input always yields the same hash
When to use it
- Generating a checksum to confirm a downloaded file matches the publisher's posted SHA-256.
- Fingerprinting a config or payload so you can detect if it changed between two runs.
- Producing a stable cache key or ETag from the contents of a value.
- Comparing two long strings for equality by comparing their short hashes.
This tool runs in your browser. Your files and text are not uploaded to our servers, and we do not store your input.
Frequently asked questions
Which algorithms are supported?+
SHA-1, SHA-256, SHA-384, and SHA-512 are all generated from your input at once, as lowercase hex.
Can I get the original text back from a hash?+
No. Hashing is a one-way function with no key — it is not encryption. Given only the digest there is no way to recover the input.
Should I use SHA-1 or MD5 for passwords?+
No. SHA-1 and MD5 are not collision-resistant and are far too fast for passwords. Use a deliberately slow, salted hash such as bcrypt, scrypt, or Argon2 for credentials, and SHA-256 or stronger for checksums.
Why do I always get the same hash for the same text?+
Hash functions are deterministic by design: identical input produces an identical digest. That property is exactly what lets you use a hash as a fingerprint or integrity check.
Related tools
Related guides
Looking for more Developer Tools?
Browse the full collection of free, browser-based tools.