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.
- Select the hash algorithm from the dropdown (SHA-256 recommended for security).
- Choose whether to hash a text string or a local file.
- Enter the text or drag and drop a file onto the upload zone.
- Optionally toggle uppercase/lowercase hex output.
- Click Generate Hash and copy the resulting digest.
- 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
| Algorithm | Output length | Collision status | Use today? |
|---|---|---|---|
| MD5 | 128-bit (32 hex) | Broken since 2004 | No — non-security checksums only |
| SHA-1 | 160-bit (40 hex) | Broken since 2017 | No — deprecated for signatures |
| SHA-256 | 256-bit (64 hex) | Secure | Yes — integrity, signatures, TLS |
| SHA-512 | 512-bit (128 hex) | Secure | Yes — 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
Frequently Asked Questions
Why use Hash Generator?
- Generate SHA-256 and SHA-512 file checksums for release verification workflows
- Verify a downloaded file against a published hash with a one-click match result
- Produce HMAC-ready digests for constructing API request authentication signatures
- Toggle between uppercase and lowercase hex output to match any downstream format
Common use cases
- Generate a SHA-256 checksum for a build artifact to publish alongside a release
- Verify that a config file was not altered between environments by comparing hashes
- Create a content hash to use as a cache-busting query string for a static asset
- Compute an MD5 digest for an S3 object to match the ETag expected by the AWS SDK
- Hash a shared secret string before storing it in a non-sensitive application settings file
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
Base64 Encoder & Decoder
Encode text or files to Base64, or decode Base64 strings back to text in seconds. Free, private, and fully in-browser now.
JWT Decoder
Decode and inspect JSON Web Tokens (JWT) online. View header, payload, and expiry. 100% client-side — your token never leaves your browser.
HMAC Generator
Generate HMAC signatures with SHA-1, SHA-256, SHA-384, or SHA-512 and a secret key. Uses the Web Crypto API. Free and private.
Bcrypt Hash Generator & Checker
Generate bcrypt password hashes and verify a password against a hash online. Adjustable cost factor. Free, private bcrypt tool in your browser.
Password Strength Tester
Test how strong a password is with an entropy score and estimated crack time. Get tips to improve it. Runs locally — Free and private.
JSON Formatter & Validator
Format, validate, and minify JSON instantly. Includes syntax highlighting, error detection, and a collapsible tree view — free, private, in-browser.
Explore all Developer Tools.