Generate MD5 and SHA Hashes
- MD5
… - SHA-1
… - SHA-256
… - SHA-384
… - SHA-512
…
MD5 and SHA-1 are broken for security purposes. Use them only to compare files or for legacy systems, and never to store passwords.
Get the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hash of any text at once. Add a secret key to create HMAC signatures, for example to test a webhook.
- Free
- Runs in your browser
- 5 algorithms + HMAC
- No sign-up
How It Works
Hash text in three steps.
Enter the text
Every character counts, including spaces and line breaks.
Add a key if needed
With a key, the SHA rows become HMAC-SHA signatures.
Copy a hash
Each algorithm has its own copy button.
What is a hash function?
A hash function turns any input into a fixed-length fingerprint. The same input always gives the same hash, and changing a single character changes the hash completely. That makes hashes useful for checking that data was not altered and for comparing values without storing them. You cannot reverse a hash to get the text back, but weak algorithms can be attacked in other ways.
For passwords, none of these is suitable on its own. Use a slow, salted password hash such as bcrypt, scrypt or Argon2 in your application.
Five algorithms
MD5 (128 bits), SHA-1 (160), SHA-256 (256), SHA-384 (384) and SHA-512 (512), shown together.
HMAC
Combines the text with a secret key, as used to sign webhooks and API requests (GitHub and Stripe use HMAC-SHA256).
UTF-8 input
Text is hashed as UTF-8 bytes, matching what most programming languages do by default.
Browser crypto
SHA hashes use your browser's built-in Web Crypto; MD5, which Web Crypto lacks, is implemented in the page.
Convert PDF Files and File Formats
Find the perfect online tool to combine PDF files, compress documents, and handle your daily workflow effortlessly.
PDF Tools
All your PDF needs in one place
- Merge PDF
- Organize PDF
- Split PDF
- Compress PDF
- Convert to Word
- Convert to Image
Image Tools
Edit and optimize your images
- Resize Image
- Compress Image
- Convert Format
- Crop Image
- Add Watermark
- Remove Background
Word Tools
Work with Word documents
- Convert to PDF
- Merge Documents
- Split Documents
- Compress File
- Edit Text
- Add Watermark
Excel Tools
Process Excel spreadsheets
- Convert to PDF
- Convert to CSV
- Merge Sheets
- Split Sheets
- Compress File
- Clean Data
Why Use This Hash Generator
All the common hashes at once.
Side by side
All five algorithms are calculated together, so you do not have to switch.
Test webhooks
Recreate an HMAC-SHA256 signature to check your verification code.
Upper or lower case
Some systems expect upper-case hex; switch with one tick.
Private
Secrets and keys you enter are never sent anywhere.
Frequently Asked Questions
Questions people ask about the Hash Generator.
Usually a hidden difference in the input: a trailing newline, a space, or a different encoding. Many command-line examples add a newline (echo adds one unless you use echo -n). The tool hashes exactly what is in the box, as UTF-8.
This tool hashes text. To check a download, use the checksum command on your system: certutil -hashfile on Windows, shasum -a 256 on macOS or sha256sum on Linux.
Not for security. Researchers can create two different inputs with the same MD5 hash, and SHA-1 has the same problem. They are still used as quick checksums. For anything security-related, use SHA-256 or stronger.
No. Hashing is one-way. Sites that "decrypt" MD5 look up the hash in a large table of hashes of common words and passwords, which is why short or common inputs are easy to recover.
Related Text & Developer Tools
More small utilities that run in your browser.
SHA-256 Hash Generator
Get the SHA-256 hash of text or a file and verify a download.
MD5 Hash Generator
Get the MD5 hash of text or a file and check a checksum.
HMAC Generator
Sign a message with HMAC-SHA256 or SHA-512 and a secret key.
SHA-1 Hash Generator
Get the SHA-1 hash of text or a file and check a checksum.
AES Encrypt & Decrypt
Encrypt text with a password using AES-256-GCM.