Hash Generator
MD5, SHA-1, SHA-256 and more
Generate
Digest text or a file with five algorithms at once.
Enter some text or pick a file — the digests appear here instantly.
Verify
Check a checksum against the input's digests.
Paste a checksum and we'll tell you which algorithm (if any) produced it.
Examples
SHA-256 of text
The quick brown fox jumps over the lazy dog
d7a8fbb3…7db06c53 (64 hex chars)
MD5 of empty input
(no text)
d41d8cd98f00b204e9800998ecf8427e
What is Hash Generator?
Hash Generator is a free, browser-based tool that computes cryptographic hashes - also called digests or checksums - for any text or file. It supports the most common algorithms in one place: MD5, SHA-1, SHA-256, SHA-384 and SHA-512.
A hash function takes an input of any size and produces a fixed-length string of hexadecimal characters. The same input always yields the same digest, while even a one-character change produces a completely different result. Hashes are one-way: you cannot reverse a digest back into the original data. That makes them ideal for verifying integrity, fingerprinting content and comparing files without revealing their contents.
Paste a string or drop a file and the digests appear instantly. Everything happens on this page - your data never leaves your device.
Why use an online hash generator?
You can hash on the command line with md5sum, shasum -a 256 or certutil, but that is friction when you just need a quick digest. An online tool is faster for one-off jobs, works on any machine without a terminal, and shows every algorithm side by side.
The usual concern with web tools is privacy. Many services POST your input to a server to do the work, which is a problem when the input is a private document, an internal config or a customer file. Dev Nexus is different: hashing runs entirely in your browser using the native Web Crypto API (crypto.subtle) plus a local MDundefined implementation. Nothing is uploaded, logged or retained. That means you can safely hash sensitive files, and it keeps working even when you are offline.
How to generate a hash
Hashing text is immediate: type or paste into the input and the selected digests appear alongside it, updating as you type. Copy any digest with a single click.
For files, drag one onto the drop zone. The tool reads the raw bytes locally and computes the digest of the file exactly as it exists on disk - the same value you would get from shasum in a terminal. This is how you fingerprint a download or confirm two files are byte-for-byte identical.
Because several algorithms can run at once, you can compute an MD5 and a SHA-256 for the same input in a single pass - handy when a checksum is published in one format but you prefer another.
Common use cases
Hashes show up all over software work:
- Verifying downloads: compare a file's
SHA-256against the checksum a project publishes to confirm the download is complete and untampered. - Deduplication: use a digest as a fingerprint to detect duplicate files or unchanged content.
- Cache keys and ETags: derive a stable key from content so caches invalidate only when the content actually changes.
- Data integrity: store a hash alongside a record and re-check it later to detect corruption or tampering.
- Git and build tooling: object IDs, lockfile integrity fields and content-addressed storage all rely on hashing.
When you need a reversible text encoding rather than a one-way fingerprint, reach for the Baseundefined Tool; when you need a random unique identifier, use the UUID Generator.
Tips & best practices
Keep a few things in mind to get correct, safe results:
- Hashing is not encryption. A digest is one-way and has no key, so it cannot be decrypted back into the original data. It proves integrity, it does not provide confidentiality.
- Use SHA-undefined for security.
MD5andSHA-1are cryptographically broken - practical collisions exist - so avoid them anywhere an attacker could benefit. PreferSHA-256or stronger for signatures and security checks. - MDundefined is fine for non-security checksums. Detecting accidental corruption or deduping your own files is a legitimate use where speed matters more than collision resistance.
- Compare hashes case-insensitively. Hex digests are the same value whether shown in upper or lower case, so normalise before comparing.
- Never hash a bare password. For stored credentials use a slow, salted password hash like bcrypt or Argonundefined, not a raw fast hash.
Frequently asked questions
Is my data uploaded to a server?
No. All hashing happens locally in your browser using the Web Crypto API and a local MD5 implementation. Your text and files never leave your device, so it is safe for sensitive or internal data and works offline.
Can I hash a file, not just text?
Yes. Drop any file onto the tool and it reads the raw bytes locally to compute the digest, giving you the same value you would get from shasum or certutil in a terminal.
Is a hash the same as encryption?
No. Hashing is one-way and has no key, so a digest cannot be reversed back into the original data. Encryption is reversible with a key. Use hashing to verify integrity, not to keep data secret.
Which hash algorithm should I use?
Use SHA-256 for anything security-related - it is fast, widely supported and collision-resistant. MD5 and SHA-1 are broken for security and should only be used for non-security checksums like detecting accidental corruption.
Why do MD5 and SHA-1 still appear if they are broken?
They remain useful for non-security tasks such as verifying downloads against a legacy checksum, deduplication and cache keys, where speed matters and an attacker is not part of the threat model.
Why is my digest different from another tool's?
Almost always because the input differs - a trailing newline, different text encoding, or a different algorithm. The same bytes through the same algorithm always produce the same digest. Also note hex output may be shown in upper or lower case, which is the same value.
Can I hash passwords with this tool?
You can, but you should not store credentials this way. Fast hashes like MD5 or SHA-256 are unsuitable for passwords. Use a slow, salted algorithm such as bcrypt or Argon2 designed to resist brute-force attacks.
Related guides
How to Generate an MD5 or SHA-256 Hash Online
A quick, practical walkthrough for turning any text or file into an MD5 or SHA-256 digest right in your browser.
Read articleHow to Verify a File Checksum
A published checksum only helps if you actually check it - here is how to hash a download and compare it correctly.
Read articleMD5 vs SHA-256: Which Should You Use?
MD5 is fast but broken; SHA-256 is the safe default - here is when each one is the right tool.
Read article