Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes from text. Every algorithm is computed at once, using your browser's native crypto so nothing is transmitted.
- Files never leave your device
- Free, no signup
- No watermarks
- Works offline once loaded
How to hash generator
- 1
Enter your text
Type or paste anything — hashes update as you type.
- 2
Read the results
MD5, SHA-1, SHA-256, SHA-384 and SHA-512 are all shown together.
- 3
Copy
One click copies any hash to the clipboard.
What a hash actually guarantees
A cryptographic hash function takes an input of any size and produces a fixed-length output — 256 bits for SHA-256, regardless of whether the input was one character or one gigabyte — with two properties that make it useful: the same input always produces exactly the same output, and even a single-bit change to the input produces a completely different, unpredictable output rather than a slightly different one. This is what makes a hash useful for verification: comparing two hashes tells you with overwhelming confidence whether two pieces of data are identical, without needing to compare the data itself byte by byte.
What a hash function explicitly does not do is compress or represent the data in a way that could be reversed — it is a one-way function by design. There is no operation that takes a SHA-256 output and reconstructs the original input, which is fundamentally different from encoding schemes like Base64 that are trivially reversible.
Why MD5 and SHA-1 still exist despite being broken
A cryptographic hash is considered "broken" specifically when someone demonstrates a way to find two different inputs that produce the same output — a collision — faster than brute force would predict. Practical collision attacks against MD5 have existed since 2004, and a real, practical collision against SHA-1 was demonstrated in 2017, which is why neither should be trusted anywhere an adversary might deliberately try to forge matching data, such as digital signatures or certificate validation.
They remain in wide use anyway for a narrower, non-adversarial purpose: verifying that a downloaded file matches a checksum the publisher listed, or detecting accidental corruption during a transfer. Nobody is trying to deliberately construct a colliding file in that scenario, and both algorithms remain entirely reliable at catching accidental differences — the vulnerability is specifically about deliberate, engineered collisions, not everyday integrity checking.
Why a raw hash is the wrong tool for passwords
SHA-256 and its relatives are deliberately fast — that speed is a feature for verifying downloads, where you want the checksum computed instantly, and a serious liability for password storage, where speed is exactly what an attacker wants. Modern consumer hardware can compute billions of SHA-256 hashes per second, which means a stolen database of raw SHA-256 password hashes can be brute-forced or checked against precomputed tables at enormous speed. Purpose-built password hashing algorithms like bcrypt, scrypt and Argon2 are deliberately slow and computationally expensive per attempt, specifically to make that same brute-force attack impractically slow even with significant computing power thrown at it — a fundamentally different design goal from a general-purpose checksum function.
Frequently asked questions
Is MD5 safe to use?
Not for anything security-related. Practical collision attacks against MD5 have existed since 2004, and SHA-1 has been broken since 2017. Both remain useful for non-adversarial checks — verifying a download matches a published checksum, or detecting accidental corruption. Use SHA-256 or better whenever an attacker might be involved.
Can a hash be reversed back into the original text?
No — hashing is one-way by design. But short or common inputs can be found by brute force or in precomputed rainbow tables, which is why passwords must be hashed with a slow, salted algorithm like bcrypt or Argon2 rather than a raw SHA.
Should I hash passwords with this?
No. Password storage needs a deliberately slow algorithm with a per-user salt — bcrypt, scrypt or Argon2. A raw SHA-256 is far too fast: modern hardware tries billions of guesses per second against it.
Is my input sent anywhere?
No. SHA hashes use the browser's built-in Web Crypto API and MD5 runs in JavaScript on this page. Nothing is transmitted, which is why the tool keeps working offline.
Why does the same text give a different hash elsewhere?
Almost always a trailing newline or a different character encoding. This tool hashes exactly the bytes of your input as UTF-8 — command-line tools like `echo` append a newline unless you pass `-n`.
Common hash generator tasks
You might also need
Base64 Encoder & Decoder
Encode and decode Base64 and Base64URL
JWT Decoder
Decode and inspect JSON Web Tokens
UUID Generator
Generate v4 and v7 UUIDs in bulk
CSS Formatter
Beautify or minify stylesheets
CSS Minifier
Shrink stylesheets with a real CSS-aware minifier
HTML Formatter
Beautify and indent HTML properly
JavaScript Formatter
Format JS and TypeScript with a real parser
JS Minifier
Shrink JavaScript with real minification, not regex