Hash Generator MD5, SHA-256: Secure Your Data Fast
Quickly generate MD5, SHA-1 or SHA-256 hashes to secure and verify your data.
Hash generator
Generated hash
Complementary tools
Tools often used with Hash Generator
Tools in the same category
List of tools similar to Hash Generator
Popular tools
List of popular tools related to Hash Generator
Related articles
Articles related to the tool Hash Generator
Generate an MD5 or SHA hash: how to use it
The tool computes the hash of the text you enter with the CryptoJS library, right in your browser: the text is not uploaded. The same input always gives the same hash, and the slightest change to the text changes it completely.
How to use it
- Type or paste the text.
- Choose the algorithm: MD5, SHA-1 (selected by default), SHA-256, SHA-384 or SHA-512.
- Copy the resulting hexadecimal hash.
Available algorithms
| Algorithm | Hash length | Use |
|---|---|---|
| MD5 | 32 hex characters (128 bits) | non-sensitive checksums; avoid for security |
| SHA-1 | 40 characters (160 bits) | legacy checksums; no longer considered secure |
| SHA-256 | 64 characters (256 bits) | file integrity, signatures, blockchain |
| SHA-384 | 96 characters (384 bits) | longer variant of the SHA-2 family |
| SHA-512 | 128 characters (512 bits) | longest SHA-2 variant |
Check the result
Reference values published in the standards: the MD5 hash of “abc” is 900150983cd24fb0d6963f7d28e17f72 and its SHA-256 hash is ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad.
Why two hashes of the “same” text differ
A hash changes as soon as a single byte changes. Mismatches almost always come from invisible details:
- a trailing newline:
echo "abc" | sha256sumhashes “abc” followed by a line break; useecho -norprintfto compare with the tool; - spaces at the start or end of the text;
- the encoding: the tool hashes text as UTF-8, where “é” takes two bytes; a program using another encoding gets a different hash.
Checking a downloaded file
This tool hashes text. To check a file (installer, ISO image) against the hash published by its maker, use your system’s command: certutil -hashfile file.iso SHA256 on Windows, shasum -a 256 file.iso on macOS, sha256sum file.iso on Linux. If both hashes match, the file is intact.
Frequently asked questions
Is a hash a form of encryption?
No: a hash cannot be “decrypted”. You can only compare the hash of a text with a known hash.
Can I hash passwords with this tool?
To store passwords, use a function designed for it, such as bcrypt or Argon2, with a salt. MD5 and SHA alone are too fast and vulnerable to dictionary attacks.
Which algorithm should I choose?
SHA-256 for anything new: integrity checks, signatures, identifiers. Use MD5 or SHA-1 only to match an existing system that requires them, as both have known collision attacks.