Hash Generator
A cryptographic hash is a fixed-length fingerprint, not a lock. The same bytes always produce the same digest; one flipped bit does not. Developers use that to confirm a download, a backup, or a cache key without shipping the whole file. It is not a way to store passwords or to hide data you need back.
Storing passwords in your own app? Check new ones the way NIST asks, in the browser and on your server: add the password field SDK.
What the hash generator is for
A cryptographic hash turns any input into a fixed-length fingerprint. The same input always produces the same fingerprint, and changing a single bit changes the output completely, which makes hashes the standard way to verify that data arrived intact.
Developers reach for hashes constantly: confirming a download was not corrupted or tampered with, comparing two files without reading both, generating cache keys, and checking that a value has not changed between systems.
Common uses
- Verifying a downloaded ISO or installer against the checksum a vendor published
- Confirming a file transferred between systems without corruption
- Producing deterministic cache or deduplication keys
- Comparing two large files quickly by fingerprint rather than byte by byte
What the output means in the real world
The hex (or Base64) digest is what you compare to a vendor checksum or to a digest you computed on another machine. Copy both values into a diff tool if your eyes glaze. A single differing character means the inputs are not identical. Do not treat the digest as a secret; it is a public integrity label.
How this fits into real work
Linux ISOs and language runtimes publish SHA-256 sums next to the download. Attackers who tamper with a mirror cannot keep the published digest unless they also own the vendor page. Always check the sum from HTTPS on the vendor's own host.
MD5 and SHA-1 still appear on old package pages. Collision attacks against both are practical, so they must not prove authenticity. Use them only when an ancient manifest forces the comparison.
Password storage is a different problem. Fast hashes let GPU farms test billions of guesses per second. Use bcrypt, Argon2, or another slow KDF for credentials; use this page for integrity, not for logins.
How to use this tool
- Paste or type the text you want to hash into the input box.
- Choose an algorithm. SHA-256 is the right default; use SHA-512 where a longer digest is required.
- Read the digest, then compare it character by character with the value you are checking against — or paste both into our diff checker.
- Remember that any difference at all, however small, means the inputs are not identical.
Tips
- MD5 and SHA-1 are broken for security purposes. Attackers can construct two different files with the same digest, so never use them to prove authenticity.
- Hashing is not encryption — it cannot be reversed, and it is not a way to protect data you need to read back.
- Never store user passwords with a plain hash like SHA-256. Use bcrypt or Argon2, which are deliberately slow.
Privacy & how it works
Everything happens inside your browser. The values you type are held in page memory only, are never sent to a server, and disappear when you close the tab. You can confirm this in your browser's network tab: the only request a tool makes is one that names the tool for a usage count, with nothing you typed in it. The tools also work with the internet disconnected. Hashes are computed with the browser's built-in SubtleCrypto implementation.
Frequently asked questions
- Which hash algorithm should I use?
- SHA-256 for almost everything. Choose SHA-512 when a specification calls for it. Avoid MD5 and SHA-1 for any security purpose, as practical collision attacks exist against both.
- Can a hash be reversed?
- Not directly — hashing discards information. But common inputs can be looked up in precomputed tables, which is why passwords need a slow, salted algorithm rather than a plain hash.
- Why do two identical-looking texts produce different hashes?
- Almost always invisible differences: a trailing newline, a space, or different line endings between Windows and Unix. Hashes are exact, so those count.
Browse other tools
All tools run entirely in your browser — nothing you type is sent to a server, except the optional HIBP 5-character hash prefix.