How to use the hash generator
- Type or paste your text into the input box.
- Choose an algorithm and press Generate, or generate all five at once.
- To check a hash, paste the text and the hash into the Verify Hash box. The tool tries every supported algorithm and tells you whether one matches.
Everything runs in your browser. Nothing you type is sent to our servers. SHA hashes use your browser's built-in Web Crypto; MD5 uses a small built-in implementation checked against standard test values.
What a hash is
A hash function turns any amount of data into a fixed-length fingerprint. The same input always gives the same hash, and changing a single character changes the whole result. You cannot work backwards from a hash to the text, which is why hashes are used to check data rather than to hide it.
Text is hashed as UTF-8 bytes, the same as command line tools and programming libraries, so accented letters and emoji give the standard result. Watch for invisible differences: "hello" and "hello" followed by a new line have completely different hashes.
| Algorithm | Length | Hash of "hello" | Use it for |
|---|---|---|---|
| MD5 | 128 bits, 32 hex characters | 5d41402abc4b2a76b9719d911017c592 | Non-security checksums and legacy systems only |
| SHA-1 | 160 bits, 40 hex characters | aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d | Legacy systems such as older Git object IDs |
| SHA-256 | 256 bits, 64 hex characters | 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 | File checksums, signatures, general use |
| SHA-384 | 384 bits, 96 hex characters | 59e1748777448c69… | Where a standard requires it, such as some TLS suites |
| SHA-512 | 512 bits, 128 hex characters | 9b71d224bd62f378… | General use; can be faster than SHA-256 on 64-bit machines |
Do not use these to store passwords
MD5, SHA-1 and SHA-2 are designed to be fast, which is the opposite of what you want for passwords: a modern graphics card can try billions of guesses a second. Store passwords with a slow, salted algorithm made for the job, such as Argon2id, bcrypt or scrypt, using your language's standard library or a well-known package.
MD5 and SHA-1 are also broken for security in general. Practical MD5 collisions were published in 2004, and Google showed a SHA-1 collision in 2017, so neither should be trusted to prove a file has not been tampered with. SHA-256 has no such weakness.
Checking a hash on your own computer
To check a downloaded file against a published checksum, use the command line rather than pasting the file's contents here.
shasum -a 256 file.zip # macOS
sha256sum file.zip # Linux
printf 'hello' | sha256sum # text, without a trailing new line
Get-FileHash file.zip -Algorithm SHA256 # Windows PowerShellWhen you would use it
- Comparing a published SHA-256 checksum with text or a small value you have.
- Generating a stable key for caching or deduplication from a piece of text.
- Checking which algorithm produced a hash you found in a database or config file.
Frequently asked questions
Can a hash be decrypted?
No. Hashing is one-way. Sites that claim to reverse MD5 are looking the hash up in tables of hashes of common words, which only works for short, common inputs.
Why does my hash not match another tool's?
Almost always the input differs: a trailing new line (echo adds one, printf does not), a space, different line endings (Windows uses CR LF) or a different text encoding. This tool hashes exactly what is in the box, as UTF-8.
Does it support bcrypt or Argon2?
No. Those are password hashing schemes with their own salt and cost settings, and they belong in your application code rather than an online tool.
Is MD5 still useful?
Only where security does not matter, such as spotting accidental corruption or matching a legacy system. For anything an attacker could influence, use SHA-256.
Are hashes in upper or lower case?
Hex hashes are case-insensitive: 5D41 and 5d41 are the same value. This tool shows lower case, and the verify box accepts either.