Hash Generator
Compute SHA-1, SHA-256, SHA-384, SHA-512, and MD5 cryptographic hashes.
Client-Side Execution & Privacy Guarantee
This utility executes 100% locally in your web browser. Your inputs, tokens, queries, and data payloads are never transmitted to any external server or backend.
A cryptographic hash function maps an arbitrary amount of data to a fixed-length digest. The same input always produces the same digest, and even a one-bit change produces a completely different result.
This tool calculates the digest of the text you supply. It supports the common algorithms MD5, SHA-1, SHA-256, SHA-384, and SHA-512. All computation happens inside the browser.
Algorithm characteristics
MD5 produces a 128-bit digest and is no longer considered collision-resistant. SHA-1 produces 160 bits and is also deprecated for security purposes. Both remain useful for non-security checksums and compatibility with older systems.
SHA-256, SHA-384, and SHA-512 belong to the SHA-2 family. They are currently recommended for integrity checks, digital signatures, and password storage when combined with a proper key-derivation function.
Text encoding
The tool treats the input as a UTF-8 string and hashes the resulting bytes. Different encodings of the same characters produce different digests, so the encoding must be consistent between parties.
Leading or trailing whitespace is included in the hash. If you need to hash a file’s raw bytes rather than its text representation, use a file-hash utility instead.
Hexadecimal output
Results are shown as lowercase hexadecimal strings. MD5 is 32 characters, SHA-1 is 40, SHA-256 is 64, SHA-384 is 96, and SHA-512 is 128 characters long.
Some systems emit uppercase hex or Base64-encoded digests. Convert the case or re-encode if you need to match an external value exactly.
When to use this tool
- Verifying the integrity of a downloaded snippet or configuration
- Generating a checksum for a short piece of text
- Comparing two strings without revealing their content
- Testing hash implementations during development
- Creating a non-secret fingerprint of a value
How to use the Hash Generator
- Paste or type the text you want to hash.
- Select the algorithm (MD5, SHA-1, SHA-256, SHA-384, or SHA-512).
- Click the generate or compute button.
- Copy the hexadecimal digest.
- Compare it with a known-good value if you are verifying integrity.
- Change the algorithm and recompute if you need multiple digests of the same input.
- Clear the input when the text contains secrets.
Worked examples
MD5 of a short word
hello
5d41402abc4b2a76b9719d911017c592
This is the standard MD5 digest of the UTF-8 bytes of the word hello.
SHA-256 of the same word
hello
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
SHA-256 produces a longer digest. The value is deterministic for the identical input.
Common mistakes and tips
- Never use a plain hash as a password store. Use a slow key-derivation function such as Argon2, scrypt, or PBKDF2 with a unique salt.
- MD5 and SHA-1 are fine for checksums of non-adversarial data but should not be used where collision resistance matters.
- The hash of an empty string is well-defined. MD5 of the empty string is d41d8cd98f00b204e9800998ecf8427e.
- Unicode normalization can affect the digest. NFC and NFD forms of the same visual text produce different hashes.
- For large files, hash the file itself rather than pasting its content into a text box.
Frequently asked questions
Are these hashes secure for passwords?
No. A single fast hash is not a password hash. Use a dedicated password-hashing algorithm with a salt.
Why do I get a different result than another tool?
The most common causes are different character encodings, extra whitespace, or uppercase versus lowercase hex output.
Can I hash binary data?
The tool hashes the UTF-8 encoding of the text you enter. For raw binary, convert the bytes to a text representation first or use a file-based tool.
Is the computation done locally?
Yes. The Web Crypto API performs the hash inside the browser. Nothing is sent to a server.
What is the hash of an empty string?
MD5 is d41d8cd98f00b204e9800998ecf8427e, SHA-256 is e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.