HomeAll toolsHash / HMAC

Hash / HMAC

Calculate SHA hashes and HMAC signatures for text or files.

Data is processed only in your browser
Input text
—

How to use

Hash / HMAC supports calculating SHA-1, SHA-256, SHA-384, SHA-512 hash values and keyed HMAC message authentication codes. Supports both text input and file uploads. All computation runs locally in your browser.

How to use: Paste text into the input field, or click "File Import" to upload a file. Select the hash algorithm and click calculate. For HMAC, also enter a key.

Hash Algorithm Comparison

AlgorithmOutput LengthSecuritySpeedRecommended For
SHA-1160-bit (40 chars)⚠️ InsecureFastNon-security uses only (e.g. deduplication)
SHA-256256-bit (64 chars)✅ SecureModerateDigital signatures, certificates, passwords
SHA-384384-bit (96 chars)✅ High securityModerateHigh-security requirements
SHA-512512-bit (128 chars)✅ Highest securityFast (64-bit)Long-term security, large file verification

Hash vs HMAC

Hash: Computes a fixed-length digest from data — anyone can calculate and verify. Used for file integrity checks and password storage.

HMAC: Adds a secret key to the hash — only someone with the same key can compute and verify the result. Used for API request signing and message authentication.

Troubleshooting

File hash is slow? Large files (hundreds of MB) take a few seconds to hash — this is normal. Browsers have performance limits on file reading and computation.

HMAC result doesn't match server? Check that key encoding matches (UTF-8 vs Latin-1) and that input data doesn't contain invisible characters (newlines, BOM headers).

Frequently asked questions

What's the difference between SHA-256 and SHA-512?

SHA-256 produces a 256-bit (32-byte) digest, SHA-512 produces a 512-bit (64-byte) digest. SHA-512 is more secure but slightly slower. SHA-256 is sufficient for most use cases.

What's the difference between HMAC and regular Hash?

HMAC uses a secret key to sign data — only someone with the same key can verify the result. Regular Hash has no key and anyone can compute and verify it.

Can it calculate file hashes?

Yes. Upload a file and the tool computes its hash locally in the browser, useful for file integrity verification.

See all questions

Go deeper

Related tools