How to Generate a Hash From Text
Paste or type your text
Enter any string into the input box - a password candidate, an API payload, a configuration value, or a block of plain text. Hashing starts as soon as you type, so there is no separate upload or submit step and the text stays in your browser.
Read all four digests at once
The tool computes MD5, SHA-1, SHA-256, and SHA-512 in parallel and lists each algorithm next to its hexadecimal output. You do not have to pick an algorithm first; compare them side by side and use the one your task requires.
Copy or clear the result
Press the Copy button on any row to place that digest on your clipboard for pasting into a checksum field, commit message, or script. Use Clear to wipe both the input and the results before working with a new value.
MD5 vs SHA-1 vs SHA-256 vs SHA-512
This generator outputs all four algorithms from the same input so you can match the digest length and security profile to your use case. SHA digests are computed with the browser native Web Crypto API; MD5 is computed with a built-in JavaScript implementation since modern browsers no longer expose it.
| Algorithm | Output Length | Hex Characters | Collision Resistance | Typical Use |
|---|---|---|---|---|
| MD5 | 128-bit | 32 | Broken | Non-security checksums, cache keys, legacy file fingerprints |
| SHA-1 | 160-bit | 40 | Broken | Legacy Git object IDs, older systems still requiring it |
| SHA-256 | 256-bit | 64 | Strong | Integrity verification, signatures, general-purpose hashing |
| SHA-512 | 512-bit | 128 | Strong | High-assurance integrity, longer digests on 64-bit systems |
| All four | Mixed | 32 to 128 | Varies | Comparing a file checksum when you are unsure which was published |
Which Hash Should You Use
Verifying a download
Match the algorithm the publisher listed. If a release page shows a SHA-256 string, paste the same content here and compare the SHA-256 row character by character to confirm the data was not altered.
Security and integrity
Choose SHA-256 or SHA-512. Both remain collision resistant and are the standard choice for signatures, tokens, and integrity checks where MD5 and SHA-1 are no longer trusted.
Fast non-security checksums
MD5 is fine for cache keys, deduplication, or short fingerprints where you only need a stable identifier and an attacker is not part of the threat model.
Matching a legacy system
Some older tools and Git internals still emit SHA-1 or MD5. Use the matching row so your digest lines up with what the existing system expects.
Common Problems and Fixes
My hash does not match the published one
Hashes change with every byte, so a trailing newline, an extra space, or a different character encoding will produce a completely different digest. This tool hashes the exact text in the box as UTF-8; make sure your input matches the original source precisely, including line endings.
The Copy button did nothing
Clipboard access requires a secure context and permission. Make sure the page is loaded over HTTPS and that your browser is not blocking clipboard access, then click Copy again. You can also select the digest text manually and copy it.
I need to hash a file, not text
This generator works on text input typed or pasted into the box, not uploaded files. To fingerprint a file, paste its contents as text, or use a dedicated file checksum utility that reads binary data.
The SHA rows stay empty
SHA digests rely on the browser Web Crypto API, which only runs in a secure context. If the page is opened from a plain file path or an insecure connection, load it over HTTPS in a current version of Chrome, Firefox, Safari, or Edge.