Hash generator
Get the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hash of some text or a file, with an optional HMAC key.
About Hash Generator
A hash turns any input into a short fixed-length fingerprint. The same input always gives the same fingerprint, and a one-character change gives a completely different one. This page calculates five common hashes at once, for typed text or a file of up to 100 MB. MD5 is written out in plain JavaScript and the SHA family uses your browser's built-in crypto. Your text and files are read on your own device and are never sent to us.
- Checking that a downloaded file matches the checksum its publisher lists.
- Making a signature for an API request with an HMAC key.
- Comparing two files without opening them.
- Producing a quick fingerprint for a cache key or a test fixture.
How to use Hash Generator
Step 1
Type or paste text, or switch to File and pick one.
Step 2
Choose hex or Base64 output, and tick HMAC if you have a secret key.
Step 3
Copy the hash you need, or paste a known hash into the compare box to see if it matches.
Good to know
- MD5 and SHA-1 are fine for spotting accidental changes in a file. Do not use them to store passwords or to prove who wrote something, because collisions can be made on purpose.
- Text is hashed as UTF-8. A trailing space or line break changes the result, which is the usual reason a hash does not match.
- Very large files are read into memory first, so a 100 MB file can be slow on an older phone.
Common questions
Can I turn a hash back into the original text?
No. A hash throws information away on purpose. Sites that seem to reverse hashes only look them up in a table of known words.
What is an HMAC?
It is a hash mixed with a secret key, so only someone who knows the key can produce the same value. It is used to sign messages between servers.
Is my file uploaded anywhere?
No. The file is read by your browser and hashed on your device.