Hash Generator
Enter text or choose a file to get MD5, SHA-1, SHA-256, SHA-384, and SHA-512 at once. Paste an expected value to see which algorithm matches.
Hashes
Enter some text to see all five hashes here.
Hashing is one-way: a hash can't be turned back into the original. MD5 and SHA-1 can be deliberately made to collide, so use them only to check that a file is intact, never for signatures, certificates, or storing passwords.
How to Use
- Choose “Text” and type or paste something. All five hashes, MD5, SHA-1, SHA-256, SHA-384, and SHA-512, appear below. Text is hashed as UTF-8, so accented letters and emoji work too.
- Choose “File”, then press “Choose a file” or drop a file onto the box. The file is read in chunks with a progress bar, and hashing runs in the background so even large files won't freeze the page. Press “Cancel” to stop partway.
- To verify a download, paste the hash published on the official site into “Expected value”. Case, spaces, and line breaks don't need cleaning up. It's compared against all five algorithms and the matching row is marked “Match”; you're also told if nothing matches.
- Switch the output between lowercase hex, uppercase hex, and Base64 to match what other systems use. An expected value pasted in Base64 is compared too.
- Every row has a copy button. Only the output format is saved on this device, never your text, the files you chose, or the expected value.
The five hashes, and how long each one is
A hash condenses data of any length into a digest of fixed length. Whether the input is a single word or a multi-gigabyte disk image, a given algorithm always produces output of the same size, and changing one bit of the input gives a completely different result. This tool computes five algorithms at once. The table shows how long each output is and where each one stands today:
| Algorithm | Output bits | Hex characters | Base64 characters (with =) | Status |
|---|---|---|---|---|
| MD5 | 128 | 32 | 24 | Collisions can be forged on purpose, so it only suits checking for accidental damage |
| SHA-1 | 160 | 40 | 28 | Same limitation. Early Git used it for commit IDs |
| SHA-256 | 256 | 64 | 44 | The most common choice today, used by most published checksums and certificates |
| SHA-384 | 384 | 96 | 64 | Part of the SHA-2 family, common in subresource integrity tags on web pages |
| SHA-512 | 512 | 128 | 88 | Also SHA-2, and usually faster than SHA-256 on 64-bit processors |
When you meet an unfamiliar string of hex digits, counting the characters gives you a good first guess: 32 usually means MD5, and 64 usually means SHA-256. Other algorithms can share a length, though. SHA3-256 is also 64 characters, so treat the count as a clue and not as proof. Check the source’s documentation, or paste the value into “Expected value” and let the tool compare it against all five.
The easiest way to feel what a hash does is to change the input slightly. Here is SHA-256 for abc, for abd with one letter changed, and for Abc with only the case changed:
| Input | SHA-256 (first 16 characters) |
|---|---|
abc |
ba7816bf8f01cfea |
abd |
a52d159f262b2c6d |
Abc |
06d90109c8cce34e |
The three results show no visible similarity, and nothing about their values tells you the inputs were close. That is exactly why hashes work for comparison: if two values are identical, the content is almost certainly identical, and if even one character differs, you can see it at a glance.
Matching the output format to the system you’re checking against
One hash can be written in several ways. The content is the same and only the notation differs. The tool can switch the output between three formats, so pick the one the other system uses:
| Format | Example (MD5 of the text hello) | Where you’ll see it |
|---|---|---|
| Lowercase hex | 5d41402abc4b2a76b9719d911017c592 |
Linux sha256sum output, checksums published on download pages |
| Uppercase hex | 5D41402ABC4B2A76B9719D911017C592 |
PowerShell’s Get-FileHash and some installer documentation |
| Base64 | XUFAKrxLKna5cZ2REBfFkg== |
The integrity attribute in HTML, package manager lock files |
Each hex character carries 4 bits and each Base64 character carries 6, so Base64 is shorter, but its capitalization is meaningful and can’t be changed freely. The Base64 output here uses the standard alphabet with the trailing = padding, which matches how most systems publish it. In the “Expected value” box, hex is compared without regard to case, and all spaces and line breaks are ignored first. Base64 is case-sensitive, and the trailing = is optional. If you copy an integrity value from a page’s HTML, remove the prefix such as sha384- and paste only the part after it.
Text is hashed as UTF-8. Plain English letters take one byte each, but é takes two bytes in UTF-8 and one byte in an older encoding such as Windows-1252, so the two produce different hashes. If you’re trying to match a value that another program computed in Windows-1252 or UTF-16, pasting the text here won’t match. You need the same bytes it used.
Checking from the command line
If you’d rather not open a web page, the operating system can hash files itself. These commands give the same results as this tool, so you can compare the two:
| System | Command | Notes |
|---|---|---|
| Windows PowerShell | Get-FileHash filename -Algorithm SHA256 |
SHA-256 is the default; also accepts MD5, SHA1, SHA384, SHA512. Output is uppercase hex |
| Windows Command Prompt | certutil -hashfile filename SHA256 |
Output is lowercase hex |
| macOS | shasum -a 256 filename |
Use 1, 384, or 512 for other sizes; MD5 uses md5 |
| Linux | sha256sum filename |
Also md5sum, sha1sum, and sha512sum |
Be careful when hashing text this way. Many commands, echo included, add a trailing newline by default. To get exactly what this tool shows, use the form that suppresses the newline, such as echo with the -n option. The SHA-256 of empty input starts with e3b0c442, and choosing a 0-byte file here displays it. For the text hello, the MD5 without a newline starts with 5d41402a, and with a newline it starts with b1946ac9, so the first few characters tell you whether a stray newline crept in.
Hashing, encoding, and encryption are different things
These three words get mixed up in everyday conversation, and picking the wrong one causes real security problems.
| Technique | Can it be reversed? | Needs a key? | What it’s for |
|---|---|---|---|
| Encoding, such as Base64 | Yes, by anyone | No | Fitting data into places that only accept text |
| Hashing, such as SHA-256 | No | No | Checking whether data has been changed |
| Encryption, such as AES | Only with the key | Yes | Keeping content away from other people |
A hash doesn’t contain the original data, so someone who holds it can only compare, not read. That doesn’t mean it protects simple data, though. If the original has only a few possibilities, such as a four-digit code or a common password, an attacker can hash every possibility and compare the results, and the answer turns up quickly. That is why passwords shouldn’t be stored with a single round of SHA-256. Use a password hash that is deliberately slow and adds a random salt.
A plain hash also can’t prove that a message came from someone who holds a particular key, because anyone can recompute the hash of the same content. For that, use HMAC, which combines a key with a hash. This site has a separate HMAC Generator. If what you need is to keep people from reading the content at all, use AES Encryption and Decryption, or the Password-Protect Text tool.
A practical workflow for checking a download
Putting the pieces together, here is a sensible order for verifying a large download:
- Get the official value: take the checksum from the software’s official site and note which algorithm it names. If a site lists both MD5 and SHA-256, go by SHA-256.
- Choose the file, don’t paste its contents: switch to “File” and pick or drop the downloaded file. Copying the contents into the text box and hashing that introduces differences in line endings and character encoding that make the result mismatch.
- Paste the expected value: you don’t need to tidy the case or spaces. Look at whether the row for the matching algorithm is marked as a match. If none of the five rows match, the tool tells you so.
- If it doesn’t match: download the file again and recheck. If it still fails, make sure the checksum belongs to the same version and the same platform build as the file you downloaded.
Checking an archive before you unpack it is more reliable than checking the files afterward, because you are comparing against the exact package the publisher built. Only when the publisher lists checksums for the unpacked contents do you need to extract first and then check the files inside one by one.
FAQ
Can a hash be decrypted back to the original?
No. A hash condenses data of any length into a fixed-length digest and throws away most of the information along the way, so it's one-way. There's no key and nothing to decrypt. Sites that claim to “decrypt MD5” are really looking it up in a table of precomputed hashes of common strings, which only works for short, common inputs. Hashing isn't encoding or encryption either: anyone can reverse an encoding, encryption needs a key to reverse, and a hash can't be reversed at all.
Is it still OK to use MD5 or SHA-1?
Only to check that a file wasn't corrupted while downloading or copying. Both can be deliberately made to collide, meaning two different files with the same hash, so they can no longer prove a file wasn't tampered with and shouldn't be used for signatures, certificates, or storing passwords. Use SHA-256 or stronger when security matters, and a dedicated password hash such as bcrypt or Argon2 for passwords.
How do I check that a download hasn't been tampered with?
Find the checksum on the software's official site, usually labeled SHA-256 or SHA256SUMS. Choose “File” here, pick the downloaded file, and paste the official value into “Expected value”. If the SHA-256 row is marked as a match, your file is identical to what was published. Always take the checksum from the official site; a value from an unknown source proves nothing.
Why is my result different from another tool or command?
Usually the input really is different: a trailing newline (echo adds one by default), Windows versus macOS line endings, extra spaces at either end, or text hashed in a character encoding other than UTF-8. A single changed bit gives a completely different hash. When checking a file, choose the file itself instead of copying its contents as text.
Can it handle very large files? Is it slow?
Yes. Files are read 4 MB at a time, and the next piece is read only after the previous one is hashed, so memory never has to hold the whole file and multi-GB disk images are fine. Hashing runs on a background thread with a progress bar, so the page stays responsive. Speed depends on your device; all five algorithms run at once, so phones are slower than computers.
Are my files or text uploaded?
No. Text and files are read and hashed only in your browser and never sent to a server, so you can safely check internal documents or config files that contain keys. Only your output format is saved on this device. Your text, file names, and expected values are never stored, so the next person on a shared computer won't see them.
Related Tools
HMAC Generator
Enter a message and a key to get an HMAC with SHA-256, SHA-384, SHA-512, SHA-1, or MD5. The key can be text, hex, or Base64.
AES Encryption and Decryption
Encrypt or decrypt text with AES-128, 192, or 256 in CBC, GCM, CTR, or ECB mode. Enter the key and IV as text, hex, or Base64.
Base64 Encoder & Decoder
Type in either box to encode text as Base64 or decode Base64 back into text. UTF-8 safe, with a URL-safe alphabet option.
Text to Binary & Hex Converter
Type in either box to turn text into the binary, octal, decimal, and hex of each UTF-8 byte, or decode those bytes back into text.
Base Converter
Type in any field to convert between bases 2, 8, 10, 16, and any base from 2 to 36, with big numbers, negatives, repeating fractions, and two's complement.
Password Generator
Generate strong random passwords in one click. Choose the length and character types, up to 10 at a time.
URL Encoder & Decoder
Type in either box to percent-encode text for a URL, or decode %20-style sequences back into readable text.