Hash Generator
Text to hash
MD5
—
SHA-1
—
SHA-256
—
SHA-384
—
SHA-512
—
Other tools in Developer Tools
About Hash Generator
A hash function takes any input — a word, a password, an entire file's contents — and produces a fixed-length string of characters (the hash, or digest) that acts as a kind of fingerprint for that exact input. Change even a single character of the input, and the resulting hash changes completely and unpredictably, which is exactly the property that makes hashes useful for verifying data integrity: if two files produce the same hash, they're virtually certain to be byte-for-byte identical.
This tool computes five hashes simultaneously from the same input text — MD5, SHA-1, SHA-256, SHA-384, and SHA-512 — using the Web Crypto API's built-in, browser-native implementations for the SHA family (a real cryptographic library, not a JavaScript reimplementation), plus a compact pure-JavaScript MD5 implementation, since MD5 isn't included in the standard Web Crypto API. Each algorithm produces a different length of output: MD5 produces 128 bits (32 hex characters), SHA-1 produces 160 bits (40 hex characters), and the SHA-2 family produces 256, 384, or 512 bits respectively.
It's essential to understand the security status of each algorithm before choosing one. MD5 and SHA-1 are both cryptographically broken — practical collision attacks exist for both, meaning an attacker can deliberately construct two different inputs that produce the same hash. Neither should ever be used for passwords, digital signatures, or any security-sensitive purpose. They're included here purely because many legacy systems, file checksums, and older APIs still expect them for non-security purposes like basic file integrity checks or checksums for de-duplication. SHA-256 and above remain cryptographically strong and are the standard choice for genuine security use cases (though even they should never be used alone for password storage — proper password hashing requires a dedicated algorithm like bcrypt or Argon2 with salting, which this general-purpose tool doesn't provide).
Common legitimate uses include verifying a downloaded file matches its published checksum, generating a consistent, deterministic identifier from a piece of text for caching or deduplication purposes, or understanding how hash functions behave for educational purposes.
How it works
- Enter your text. Type or paste the text you want to hash.
- View all five hashes. MD5, SHA-1, SHA-256, SHA-384, and SHA-512 are computed simultaneously.
- Copy whichever you need. Each hash has its own copy button for quick use.
Examples
Hashing the word "hello"
Input
hello
Output
SHA-256: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824