Hash Generator — MD5, SHA-1, SHA-256, SHA-384 & SHA-512
Hash text or files with every common algorithm at once, create HMACs, and verify checksums — all in your browser.
Hash results
Quick answer
To generate a hash, type text into the KaviForge Hash Generator (or switch to "Hash a file"). MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes appear together as you type. Enable HMAC and enter a secret key to create HMAC signatures, or paste an expected hash into "Verify a checksum" to confirm a match.
A cryptographic hash function turns any input into a fixed-length fingerprint. The same input always gives the same hash, while even a one-character change produces a completely different result.
Hashes are used to verify downloads, detect file changes, deduplicate data, sign API requests (HMAC), and build cache keys. This tool shows all common algorithms side by side so you can use whichever your system expects.
How to Generate a Hash
- 1Choose "Hash text" and type or paste your input, or choose "Hash a file" and select a file.
- 2Read the MD5, SHA-1, SHA-256, SHA-384, and SHA-512 results — they update live.
- 3Toggle "Uppercase hex" if your system expects uppercase hashes.
- 4Enable "HMAC with secret key" and enter a key to generate HMAC signatures.
- 5Paste an expected hash in "Verify a checksum" to check for a match.
Features
Five Algorithms at Once
MD5, SHA-1, SHA-256, SHA-384, and SHA-512 side by side.
File Checksums
Hash files of any type locally to verify downloads and backups.
HMAC Signatures
HMAC-SHA1, HMAC-SHA256, HMAC-SHA384, and HMAC-SHA512 with your secret key.
Checksum Verification
Paste an expected hash to see instantly whether it matches.
UTF-8 Accurate
Text is hashed as UTF-8 so results match other languages and tools.
Private
Uses the Web Crypto API in your browser — nothing is uploaded.
When to Use the Hash Generator
Verify downloaded files
Compare a file’s SHA-256 with the checksum published by the vendor.
Sign webhooks and API requests
Generate HMAC-SHA256 signatures to test Stripe, GitHub, or Shopify webhook verification.
Create cache keys and ETags
Hash content to produce stable identifiers for caching.
Detect duplicate or changed files
Identical files have identical hashes.
About the Hash Generator
SHA-family hashes and HMACs use the browser’s built-in crypto.subtle API. MD5 is computed with the spark-md5 library because browsers do not provide MD5 natively.
MD5 and SHA-1 are broken for security purposes (collisions can be created). Use SHA-256 or stronger for integrity and signatures, and use a dedicated algorithm such as bcrypt or Argon2 for storing passwords.
Hash Generator FAQs
How do I generate a hash of a string?
Type or paste the string into the KaviForge Hash Generator. All five hashes are calculated as you type.
How do I get the checksum of a file?
Switch to "Hash a file" and choose the file. It is read locally and its MD5 and SHA hashes are displayed.
Which hash algorithm should I use?
Use SHA-256 for most purposes. SHA-512 offers a longer digest. Use MD5 or SHA-1 only for compatibility with legacy systems.
What is an HMAC?
An HMAC combines a hash function with a secret key to create a signature that proves a message was not altered and came from someone with the key.
Can a hash be reversed?
No. Hash functions are one-way. Short or common inputs can be found with lookup tables, which is why passwords need salted, slow hashing algorithms.
Are my files or text uploaded?
No. All hashing happens in your browser.
Related Tools
SHA-256 Hash Generator
Generate SHA-256 and HMAC-SHA256 hashes of text or files, and verify SHA-256 checksums.
MD5 Hash Generator
Create an MD5 hash of any text or file and verify MD5 checksums. Instant and private.
Base64 Encoder
Encode text, files, and images to Base64 or data URIs. UTF-8 safe, with URL-safe Base64URL option.