How to Make an MD5 or SHA-256 Hash
Security · Step-by-step guide · 4 steps · 2 min read
A hash is a short fingerprint of text or a file. If the file changes, the hash changes too. Use it to check that a download is not damaged or changed.
Open the Hash Generator (SHA-1, SHA-256, SHA-512, MD5)
In the pictures, orange letters like A show where to look. Each step tells you its letter.
Step 1: Type text or choose a file
In 1 What to hash, type in Text. Or use Or choose a file. See A in the picture.
Step 2: Pick the type of hash
In 2 Algorithm, pick All. Or pick one, like SHA-256 or MD5. See B in the picture.
Step 3: Press Generate Hash
Your browser works out the hashes. See C in the picture.

Step 4: Read or compare the results
Each hash shows in the table. To check a download, paste the website's hash into Expected hash in 3 Check a hash. The tool tells you if they match. See D in the picture.

Tips and questions
Which hash should I use?
Use SHA-256 for most jobs. MD5 and SHA-1 catch mistakes. But they are not safe against people who change files on purpose.
Can I turn a hash back into text?
No. A hash only works one way. That is why it works as a fingerprint.
What is HMAC?
It mixes a secret key into the hash. Only people with the key can make or check it. Tick Use a secret key (HMAC) under Advanced options.
Is a hash the same as a lock?
No. A locked file can be opened with the password. A hash cannot be undone. To lock a file, use the Encrypt & Decrypt tool.
Privacy
Text and files are hashed on your own device. Files are never sent to us, even big ones.
Try it now
The Hash Generator (SHA-1, SHA-256, SHA-512, MD5) is free. You do not need an account.
Open the Hash Generator (SHA-1, SHA-256, SHA-512, MD5)