MD5 Hash Generator
Get the MD5 hash of text or of a file up to 1 GB, and compare it with a checksum you were given. Calculated in your browser; nothing is uploaded.
0 characters
Runs in your browser. Nothing you enter is uploaded.
How to use
This page works out the MD5 hash of a piece of text or of a file: 32 hexadecimal characters that change completely when a single byte of the input changes.
- Stay on Text and type or paste, or switch to File and choose a file of any kind. The MD5 appears under it at once.
- Press Copy beside the hash. Output switches between lowercase hex, uppercase hex and Base64, for systems that want one or the other.
- Checking a download? Paste the MD5 its publisher lists into Compare with an expected hash. The page says whether it matches, and why not when it doesn't.
- HMAC with a key gives HMAC-MD5, which a few older APIs still sign requests with.
- Show the other hashes too lists SHA-256 and the rest for the same input.
What MD5 is still good for: spotting accidental damage in a download or a backup, finding duplicate files, keying a cache, and talking to older systems that expect it. It is quick, and every platform has it.
What it isn't good for: anything an attacker might want to fake. Two different files with the same MD5 can be manufactured on a laptop, so it proves nothing about who made a file, and password hashes stored as MD5 are cracked by the billion. For those jobs use SHA-256 or a password hashing scheme.
Text is hashed as UTF-8, exactly as typed, with no line break added at the end.
Frequently asked questions
Is MD5 still safe to use?
For catching accidental changes, yes: a damaged download won't keep its MD5 by chance. Against a person trying to fool you, no. Collisions have been practical since 2004, so use SHA-256 when it matters that nobody tampered with the file.
Why does my MD5 differ from the one md5sum prints?
Usually a line break. In a terminal, echo adds one to the text unless you write echo -n, and that changes every character of the hash. Windows line endings (CR LF) and a different text encoding do the same. For a file, the two should always agree.
Can I get the MD5 of a large file, such as an ISO?
Yes, up to 1 GB. The file is read on your device in a background thread, so the page stays usable while it works, and nothing is sent anywhere. Bigger files need a command-line tool such as md5sum or certutil.
Related tools
- SHA-256 hash generator Calculate the SHA-256 of text or a file, check a download against its published checksum, or sign with HMAC-SHA256.
- Hash generator Get CRC32, MD5, SHA-1, SHA-256 and SHA-512 hashes of text or files, make HMACs, and check a download against its checksum or a SHA256SUMS file.
- Base64 encoder Encode text or files to Base64 and decode Base64 back to text or a file.
More encoding tools
- URL encoder Percent-encode or decode URLs and query strings in your browser.
- JWT decoder Decode a JSON Web Token to see its header, payload and expiry, check its signature with a secret or public key (RS256, ES256), and sign a changed one.