Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes online for free: type text or drop a file and get all five at once, with HMAC, hex or Base64 output and a compare mode to verify a hash. 100% in your browser, nothing is uploaded.
0 characters · 0 bytes
Type text above, or drop a file, to see all five hashes.
Which hash should you trust?
MD5 and SHA-1 are broken for security: collisions can be crafted, so use them only for simple checksums. SHA-256 is the everyday default; SHA-384 and SHA-512 are stronger. Never store passwords as plain MD5 or SHA-1.
🔒 Privacy: everything runs in your browser. Your text and files are never uploaded, stored or seen by anyone else.
More developer tools
How this calculator works
A hash generator turns any text or file into a short fixed-length fingerprint, called a hash or digest, that changes completely when even one character of the input changes. The same input always produces the same hash, and the hash cannot be reversed back into the original text, which is why hashes show up everywhere: verifying a downloaded file against its published checksum, storing passwords safely (as a salted slow hash, never plain MD5), signing API requests with HMAC, and checking that a document has not been altered. Type or paste text here, or drop a file, and this tool computes five hashes at once: MD5, SHA-1, SHA-256, SHA-384 and SHA-512.
The five algorithms are not equal, and picking the right one matters. MD5 (128 bits) and SHA-1 (160 bits) are fast and still fine for simple checksums, but both are broken for security: researchers can craft two different files with the same MD5 or SHA-1 hash, so never trust them to prove a file is genuine or a password is safe. SHA-256 (256 bits) is the everyday default for checksums, file verification and most API signatures, while SHA-384 and SHA-512 are its stronger siblings for cases that need a longer digest. HMAC mode adds a secret key to the hash, which is how servers prove a request really came from someone holding the key, and the compare mode pastes an expected hash, guesses its algorithm from the length, and tells you plainly whether it matches or not.
Everything runs in your browser: the SHA family uses your browser's built-in Web Crypto, MD5 runs on a small pure JavaScript implementation in this page, and no text or file is ever uploaded, stored or seen by anyone else. That privacy is the point: you can hash a document, a config file or a secret string without sending it to a server. Copy any single hash, copy all five at once, or switch the output between hex (the usual lowercase letters and digits) and Base64 (shorter, handy for APIs). If you need to turn text into a reversible encoding instead, use the Base64 Encoder, and if you need a random secret to use as an HMAC key, generate one with the Password Generator.
