A download page prints two long strings side by side, one labelled MD5 and one labelled SHA-256, and leaves you to guess which one matters. The short answer is: check SHA-256 when you can, and treat MD5 as the fallback for older publishers. But the reasons are worth understanding, because MD5 is not useless and SHA-256 is not magic, and each one has a job it genuinely does well.

This guide compares the two fingerprints, explains where each one holds up and where one of them gives way, and shows how the free File Hash and Info Report on Ovatly computes both in your browser, so you never have to choose blind.

Contents

  • Quick answer
  • The two fingerprints side by side
  • Where MD5 breaks: collisions
  • Where MD5 is still the right tool
  • How the report computes each one
  • How to check both, step by step
  • Worked example: the same file, two fingerprints
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion
  • References

Quick answer

If the publisher lists SHA-256, verify against SHA-256. MD5 collisions, two different files producing the same fingerprint, are practical to construct, so MD5 works as an identification checksum and a corruption check, not as a security proof. The File Hash and Info Report computes both locally and shows them side by side, so when both are published you can check the stronger one at no extra cost.

The two fingerprints side by side

Both are hash functions: each reads a file's bytes and produces a fixed-length string. The same bytes always produce the same string, changing even one byte produces a completely different string, and the file cannot be reconstructed from its fingerprint.

The visible difference is length. An MD5 fingerprint is 32 characters long; a SHA-256 fingerprint is 64. MD5 is the older of the two by many years, which is why it still appears on download pages, in older documentation and in the habits of publishers who set their release process up long ago. SHA-256 is the modern standard, defined in the Secure Hash Standard published by NIST, and it is the one new publishers reach for.

Length alone is not the argument, though. The real difference is what researchers have managed to do to each algorithm, and that is the next section.

Where MD5 breaks: collisions

A collision means two different files that produce the same fingerprint. For a hash used in verification, collisions are the whole game: if an attacker can build a harmless-looking file and a harmful file that share one MD5, then the published MD5 vouches for both, and your check passes the wrong file.

For MD5, this is not theory. Collisions are practical to construct with published techniques, which is why MD5 is now described as an identification checksum: good at saying whether a file matches a value, not good at resisting someone determined to fool it. SHA-256 has no practical equivalent. Nobody can currently craft two different files with the same SHA-256, so a match against a published SHA-256 is a far stronger statement.

Where MD5 is still the right tool

None of that makes MD5 worthless. Most verification is not about adversaries at all. A download that dropped halfway, a file copied to a drive that is starting to fail, an archive that got truncated in transit: MD5 catches all of these reliably, because accidental corruption does not arrange itself into a collision.

MD5 is also sometimes the only fingerprint on offer. Plenty of older publishers list nothing else, and an MD5 check against their published value is far better than no check. And when you are comparing files of your own, checking whether the copy on the backup drive matches the original on your machine, there is no attacker in the picture at all, and MD5 answers the identification question completely.

How the report computes each one

Choose any file and the report shows both fingerprints together, alongside the file's name, size, type, extension and last-modified date. Nothing is uploaded; your browser reads the file locally.

The two computations behave a little differently. MD5 is read in 4 MB slices with a progress bar, so large files show steady progress. SHA-256 reads the file as one block, which means very large files take longer and use more memory while they work. That is a practical difference worth knowing before you point the tool at a file of several hundred megabytes, not a difference in trustworthiness.

One honest note: the type field shows the type your browser reports, which usually comes from the file's extension rather than from inspecting its contents. The hashes, by contrast, are computed from the actual bytes. When the file is readable text, up to 512 KB, the report also shows a preview of the contents.

How to check both, step by step

  1. Find the checksums on the publisher's download page or in the release notes, and note which algorithms they list.
  2. Open the File Hash and Info Report and choose the downloaded file. It stays on your device.
  3. Wait for both fingerprints to be computed and read the report.
  4. If SHA-256 is published, compare that string, in full. Use the MD5 line as a secondary check if you like, not as the deciding one.
  5. If only MD5 is published, compare the MD5 string in full and treat a match as strong evidence against corruption or a wrong copy, with the collision caveat understood.

Worked example: the same file, two fingerprints

The difference is easiest to see on one tiny input. Create a text file containing exactly the three characters abc, with no newline at the end, and run it through the tool. It reports a size of 3 bytes and both fingerprints:

MD5:     900150983cd24fb0d6963f7d28e17f72
SHA-256: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

Same 3 bytes, two strings, 32 characters against 64. These are the standard published test vectors for abc, so they double as a sanity check on the tool itself. If your file produces anything else, the usual cause is a hidden newline your editor added, one extra byte quietly changing both fingerprints.

Limitations and honest tradeoffs

A hash check of either kind proves identity, not safety. A matching SHA-256 proves your copy is byte for byte the file the publisher hashed; it says nothing about whether the publisher is honest or the file was clean from the start. Verification and trust in the source are two separate habits.

There is also the practical cost noted above: SHA-256 reads the file as one block, so very large files are slower and heavier on memory, while MD5 streams in slices with a progress bar. And MD5 carries its ceiling everywhere it goes: fine for identification and corruption checks, never a security proof, no matter how carefully you compare the string.

Common mistakes

  • Verifying against MD5 when SHA-256 is listed. The stronger fingerprint is right there. Use it.
  • Reading an MD5 match as a security guarantee. Collisions are practical. An MD5 match rules out accidents, not adversaries.
  • Reading a SHA-256 match as a safety certificate. It proves the copy is unchanged, not that the original was good.
  • Comparing only the first few characters. Both hashes are all or nothing. Thirty-one matching characters out of thirty-two is a mismatch.
  • Dismissing MD5 entirely when it is the only checksum published. An identification check beats no check. Use it, and understand exactly what it does and does not prove.

FAQs

Which hash should I check if the publisher lists both? SHA-256. It has no practical collision weakness, while two different files sharing an MD5 can be deliberately constructed. When both are printed on the download page, the SHA-256 comparison is the one that settles the question.

Is MD5 useless, then? No. MD5 is a perfectly good identification checksum: it catches corrupted, truncated and wrongly copied files reliably. What it cannot do is stand up to someone deliberately crafting a file to match a published MD5.

Why does the tool show both hashes? Because publishers still list both. Older download pages often carry only MD5, so the report computes it for comparison, and it computes SHA-256 alongside so you can use the stronger fingerprint whenever it is offered.

Can two different files really have the same MD5? Yes. Producing two different files with the same MD5 is practical with published techniques, which is why MD5 is described as an identification checksum rather than a security proof. No equivalent practical attack exists for SHA-256.

Does checking a hash upload my file somewhere? No. Both hashes are computed in your browser from the file on your device. Nothing is uploaded, which matters when the file you are checking is one you have not decided to trust yet.

Conclusion

The choice is simpler than the two strings make it look: SHA-256 whenever it is offered, MD5 understood for what it is when it is all you have. The File Hash and Info Report computes both in your browser and uploads nothing, so the stronger check costs you nothing extra. For the full walkthrough of matching a download against the string on a publisher's page, see our guide to verifying a downloaded file against its published checksum. For more guides in this series, see our File and Data Conversion guides.

References