Hash Generator
Generate cryptographic hashes of text or files using the browser's Web Crypto implementation, so results match any standard library.
Loading tool…
Hashing runs in your browser through the Web Crypto API. Neither your text nor your file is uploaded.
What the Hash Generator does
The hash generator on this page will generate cryptographic hashes of text or files using the browser's Web Crypto implementation, so results match any standard library. Everything runs inside this page, so the work happens on your own device rather than on a server. It is most often used for verifying a downloaded file against its published checksum. Companion tools to this one live on FreeToolsWorld.org.
How to use it
- Type or paste text, or drop a file onto the file area.
- Hashes for every supported algorithm are calculated at once.
- Copy any hash with the button beside it.
- Compare against a published checksum to verify a download.
How it works
Hashing uses SubtleCrypto, the browser's native cryptographic implementation, rather than a JavaScript reimplementation. That means the output is bit-identical to what sha256sum, Python's hashlib or any other standard library produces for the same input.
Files are read with the File API and hashed in memory on your device. Nothing is uploaded, so you can verify a downloaded ISO or archive against its published checksum without sending the file anywhere. Large files are limited by available memory rather than by any quota we impose.
SHA-1 is included because older systems still publish SHA-1 checksums, but it is cryptographically broken — practical collision attacks have been demonstrated. Use it only to verify against an existing SHA-1 value, never for new security work. MD5 is deliberately not offered, since the browser does not provide it and implementing a broken algorithm by hand would only encourage its use.
A hash is one-way. It cannot be reversed to recover the input. Services claiming to "decrypt" a hash are looking it up in a table of precomputed common inputs, which is why passwords must be salted before hashing.
When to use it
- Verifying a downloaded file against its published checksum.
- Generating a content fingerprint for deduplication or caching.
- Checking that two files are byte-identical.
Common mistakes to avoid
- Using a plain hash for password storage — passwords need a slow, salted function such as bcrypt, scrypt or Argon2.
- Relying on SHA-1 for anything security-related.
- Comparing hashes of files with different line endings and concluding the content differs.
Frequently asked questions
Why is MD5 not offered?
The Web Crypto API does not provide it, and that is the right call — MD5 has been broken for collision resistance since 2004. Implementing it by hand would make it easy to use where it should not be used.
Can a hash be reversed?
No. Hash functions are one-way by design. Sites that appear to reverse one are matching it against a precomputed table of common inputs, which is exactly why password hashes must be salted.
Does it match sha256sum on the command line?
Yes, for the same bytes. Note that hashing text here uses its UTF-8 encoding with no trailing newline, whereas echo adds one — use printf or hash a file if you need to compare exactly.