Developer Tools

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

Output format:

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.

Frequently asked questions

How do I generate a hash online?
Type or paste your text into the box, or switch to File mode and drop a file. MD5, SHA-1, SHA-256, SHA-384 and SHA-512 appear instantly, each with its own copy button, plus a copy-all button. Nothing is uploaded: every hash is computed in your browser.
Which hash algorithm should I use?
SHA-256 is the everyday default: strong, widely supported and the right choice for file checksums, verification and most signatures. Use SHA-384 or SHA-512 when you need a longer digest. MD5 and SHA-1 are only for compatibility with old checksums, because both are broken for security and can be faked with collisions.
What is the difference between MD5 and SHA-256?
MD5 produces a 32-character hex hash and is fast but broken: attackers can craft two different files with the same MD5. SHA-256 produces a 64-character hex hash, is much stronger, and no practical collision is known. For anything security-related, always use SHA-256 or stronger, never MD5.
How do I verify a file with a hash?
Drop the file into File mode and copy the hash for the algorithm the publisher used, usually SHA-256. Compare it with the checksum the publisher listed: if every character matches, the file is intact. The compare mode does this for you: paste the expected hash and it tells you MATCH or NO MATCH, and guesses the algorithm from the hash length.
What is HMAC and when do I need it?
HMAC mixes a secret key into the hash, so only someone holding the key can produce the same result. APIs use HMAC-SHA-256 to sign requests and prove they came from a trusted sender. Turn on HMAC mode, type your secret key, and the tool computes HMAC-MD5, HMAC-SHA-256, HMAC-SHA-384 and HMAC-SHA-512 for your input.
Is my text or file uploaded anywhere?
No. Hashing runs entirely in your browser: the SHA family uses Web Crypto and MD5 runs in plain JavaScript on this page. Your text and files are never sent to a server, stored or seen by anyone else, so private documents and secrets stay on your device.
Disclaimer: Results are estimates for planning purposes only and are not financial advice. Actual loan terms, taxes and investment returns vary. Consult a qualified professional before making financial decisions.