Skip to main content
ToolsHub

Hash Generator

Enter text to instantly generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes side by side.

Updated

Files never leave your browser
Files never leave your browser

No hashes yet

Enter text or select a file to generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes.

How to use Hash Generator

The Hash Generator creates cryptographic hash digests from text or files in one click, supporting MD5, SHA-1, SHA-256, SHA-384 and SHA-512. Enter any string or upload a file and receive the corresponding hash immediately — ideal for generating ETags, building content-addressed caches, verifying download integrity and constructing HMAC signatures for API authentication.

  1. Select the hash algorithm from the dropdown (SHA-256 recommended for security).
  2. Choose whether to hash a text string or a local file.
  3. Enter the text or drag and drop a file onto the upload zone.
  4. Optionally toggle uppercase/lowercase hex output.
  5. Click Generate Hash and copy the resulting digest.
  6. To verify a file, paste the expected checksum and click Verify — the tool confirms a match or mismatch.

Your data never leaves your device — 100% private processing.

Using hashes for file integrity verification

Software download pages typically publish a SHA-256 or SHA-512 checksum alongside each binary. After downloading, you compute the hash of the local file and compare it with the published value. An identical digest proves the file was not corrupted in transit and has not been tampered with by a man-in-the-middle. This is particularly important for installers and OS images where a compromised file could silently install malware.

HMAC and keyed hashes

HMAC (Hash-based Message Authentication Code) extends a cryptographic hash by incorporating a secret key, producing a value that can only be reproduced by a party who knows the key. HMAC-SHA256 is the signature algorithm used by AWS Signature Version 4, GitHub webhook payloads and many REST API authentication schemes. The key input prevents an attacker from forging a valid MAC even if they know the algorithm and message content.

Worked examples

MD5 of "hello"

Inputs: text 'hello' · MD5

Result: 5d41402abc4b2a76b9719d911017c592

SHA-256 of "hello"

Inputs: text 'hello' · SHA-256

Result: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Output length by algorithm

Inputs: same input, different algorithm

Result: MD5 32 hex · SHA-1 40 hex · SHA-256 64 hex

Hash algorithm comparison

Hash algorithm comparison
AlgorithmOutput lengthCollision statusUse today?
MD5128-bit (32 hex)Broken since 2004No — non-security checksums only
SHA-1160-bit (40 hex)Broken since 2017No — deprecated for signatures
SHA-256256-bit (64 hex)SecureYes — integrity, signatures, TLS
SHA-512512-bit (128 hex)SecureYes — high-security workloads

Glossary

SHA-256
A 256-bit cryptographic hash function from the SHA-2 family, widely used in TLS, code signing and blockchains.
HMAC
Hash-based Message Authentication Code — a keyed hash used to authenticate message integrity.
Hex encoding
Representing each byte of a digest as two hexadecimal digits, producing a string twice the byte length.
ETag
An HTTP header containing a hash of a resource's content, used for cache validation.
Key derivation
Using a hash function with added salt and iterations (bcrypt, Argon2) to safely derive keys from passwords.

Related reading

Free · No spam

Get weekly tool tips & updates

New tools, power-user tips, and productivity hacks — delivered free every Friday.

No spam, ever. Unsubscribe with one click.

Related Developer Tools

Explore all Developer Tools.