Text Hash Generator (MD5/SHA)
Type or paste a text and instantly get its MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes, calculated in parallel as you type. Unlike the File Hash Generator, this tool hashes text directly, not uploaded files.
How it works
- Type or paste the text you want to hash into the input panel.
- All five hashes (MD5, SHA-1, SHA-256, SHA-384, SHA-512) are calculated automatically and update in real time as you type.
- SHA-256, SHA-384, and SHA-512 are calculated with crypto.subtle.digest, the browser's native cryptographic API (Web Crypto API).
- MD5 is calculated with a custom JavaScript implementation, since Web Crypto doesn't include native support for that algorithm.
- Copy any of the hashes individually with the copy button next to each result.
Use cases
- Generate a quick checksum of a piece of text to verify it hasn't been altered.
- Compare whether two texts are exactly the same by comparing their SHA-256 hashes, without checking them character by character.
- Get the MD5 hash of a string for compatibility with legacy systems that still require it.
- Generate test hashes for APIs, scripts, or technical documentation.
Use cases
- Generate a quick checksum of a piece of text to verify it hasn't been altered.
- Compare whether two texts are exactly the same by comparing their SHA-256 hashes, without checking them character by character.
- Get the MD5 hash of a string for compatibility with legacy systems that still require it.
- Generate test hashes for APIs, scripts, or technical documentation.
Common mistakes
- Using MD5 or SHA-1 to protect passwords or other sensitive information.MD5 and SHA-1 are cryptographically broken: known techniques exist to generate collisions. Use them only for checksums or compatibility with legacy systems, never for security. For passwords, use algorithms designed for that purpose, like bcrypt or Argon2.
- Confusing this tool with the File Hash Generator.This tool calculates the hash of the text you type directly into the field, not of an uploaded file. If you need the hash of a file, use the File Hash Generator.
- Expecting two texts with just a single space or capitalization difference to produce similar hashes.Any cryptographic hash function produces a completely different result from even the smallest change in input (the avalanche effect), by design. A similar hash doesn't indicate similar text.
Frequently asked questions
So you can compare or pick the one you need without switching tabs or recalculating: MD5, SHA-1, SHA-256, SHA-384, and SHA-512 are all calculated in parallel every time you change the text.
Not for security purposes. Both algorithms are cryptographically weak, and collisions (two different inputs with the same hash) can be generated with known techniques. They're still useful as a quick checksum or for compatibility with legacy systems, but shouldn't be used to protect passwords or verify integrity in security contexts. For that, prefer SHA-256 or stronger algorithms.
This tool calculates the hash of text you type or paste directly. The File Hash Generator, on the other hand, calculates the hash of the contents of a file you upload. They're different inputs (text vs. binary file), even though the available algorithms are similar.
No. All hashes are calculated locally in your browser, using the native Web Crypto API for SHA-256/384/512 and a custom JavaScript implementation for MD5. Your text never leaves your device.
Alternatives
In the terminal, commands like md5sum, sha1sum, or sha256sum calculate the same thing over files or text (echo -n 'text' | sha256sum), and almost every programming language includes these functions in its standard or cryptographic library. This tool is useful for getting all five hashes at once without opening a terminal, as you type.