How to use Hash Generator
- Type or paste your text in the box. All five hashes update as you type.
- Tick "Uppercase hex" or "Show as Base64" to change the format.
- Click the Copy button under the hash you need.
Features
- MD5, SHA-1, SHA-256, SHA-384 and SHA-512 at once
- SHA hashes use the browser’s Web Crypto API
- Text is encoded as UTF-8 before hashing
- Hex (lowercase or uppercase) or Base64 output
- Runs in your browser, so the text is never uploaded
Supported formats and limits
- Maximum input: 10,000,000 characters
Examples
| Input | Result |
|---|---|
| hello | MD5: 5d41402abc4b2a76b9719d911017c592 SHA-1: aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d SHA-256: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 |
| (empty text) | SHA-1: da39a3ee5e6b4b0d3255bfef95601890afd80709 |
Limitations
- MD5 and SHA-1 are cryptographically broken. Use them only for checksums and compatibility, never for passwords or signatures.
- This tool hashes text only, not files, and does not compute HMACs.
- Hashes cannot be reversed to recover the text.
Learn more
A cryptographic hash function maps input of any length to a fixed-length fingerprint. Good hash functions are deterministic, fast to compute, and designed so that finding two inputs with the same hash, or an input for a given hash, is practically impossible.
The algorithms here differ in age and strength. MD5 (128 bits) and SHA-1 (160 bits) were widely used but practical collision attacks exist, so they are considered broken for security. The SHA-2 family, which includes SHA-256, SHA-384 and SHA-512, is specified in FIPS 180-4 and has no known practical attacks.
Hashes are used to verify downloads, detect changes, deduplicate data and build digital signatures. They are not encryption, and because they are fast they are not suitable on their own for protecting passwords; use a slow, salted password hashing function for that.
Frequently asked questions
Which hash should I use?
For integrity checks and general use, SHA-256 is a good default. MD5 and SHA-1 are only for legacy systems. For passwords use a dedicated algorithm such as Argon2 or bcrypt.
Why are the hashes different lengths?
Each algorithm has its own output size: MD5 is 128 bits (32 hex characters), SHA-1 160 bits (40), SHA-256 256 bits (64), SHA-384 384 bits (96) and SHA-512 512 bits (128).
Is a hash the same as encryption?
No. Encryption can be undone with a key. A hash is one-way: there is no key and no way to recover the text.
Is my text uploaded?
No. All hashes are computed in your browser.
Sources
Last reviewed: September 30, 2026