Hash generator
Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes for text or a file — entirely in your browser, nothing is uploaded anywhere.
MD5 and SHA-1 are no longer considered cryptographically secure and shouldn't be relied on to protect anything sensitive — they're included here for checksums and compatibility with older systems. For anything security-critical, use SHA-256 or higher.
How to use the hash generator
Switch between text and file mode. For text, type or paste directly into the box. For a file, click to choose one or drag it in. Hashes for MD5, SHA-1, SHA-256, SHA-384, and SHA-512 all appear at once, ready to copy.
How hashing works
Each algorithm runs your input through a one-way mathematical function that produces a fixed-length string — the same input always produces the same hash, but there's no way to reverse the hash back into the original input. Everything runs using your browser's built-in cryptography support, so files and text are processed locally and never uploaded.
Frequently asked questions
Which hash algorithm should I use?
SHA-256 or higher is recommended for anything security-critical. MD5 and SHA-1 are no longer considered cryptographically secure and shouldn't be relied on to protect sensitive data — they're included mainly for checksums and compatibility with older systems.
Is my file uploaded to a server?
No — the file is read and hashed entirely in your browser. It's never uploaded anywhere.
What is a hash used for?
A hash is a fixed-length fingerprint of your input — the same text or file always produces the same hash, and even a tiny change produces a completely different one. That makes hashes useful for verifying a file wasn't corrupted or tampered with, and for storing passwords without keeping the original text.
Can two different files have the same hash?
In theory, yes — this is called a collision — but for modern algorithms like SHA-256, it's computationally infeasible to find or engineer one. MD5 and SHA-1, by contrast, have known practical collision weaknesses, which is part of why they're considered insecure.