You exported the database on Friday and sent a copy to a colleague, a client or a backup drive. Now there are two files with similar names, both far too large to open and compare line by line, and a simple question nobody can answer by looking: are they actually the same export, byte for byte?

Opening both files and scrolling is not a check. Two files can look identical on screen while differing somewhere in the middle. The reliable answer comes from a hash: a short fingerprint computed from every byte in the file. This guide shows how to compare two export copies with the free Hash Checker on Ovatly, and how to read the result honestly.

Contents

  • Quick answer
  • Why eyeballing an export never works
  • What a hash comparison actually compares
  • The catch: both exports must be generated identically
  • How to check two export copies, step by step
  • Worked example: the abc test in miniature
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion
  • References

Quick answer

To check that two copies of a database export are identical: take the checksum of the copy you trust, or the value recorded when the export was made, then run the second copy through the Hash Checker with that value pasted in. Match means the two files are byte for byte identical. No match means they differ somewhere, which is often legitimate: a different export time, row ordering or trailing newline all produce a genuinely different file. The comparison only proves sameness when both exports were generated the same way from the same data.

Why eyeballing an export never works

A database export is a plain text file, usually CSV or SQL, and its size is exactly the problem. A file with a million rows cannot be reviewed by a person. Spot checks catch nothing useful either: the first hundred rows can match perfectly while row 400,000 differs, and file size alone is a weak clue.

What you need is a method that accounts for every byte, including the ones in the middle you will never scroll to. That is what a hash does: it reads the whole file, reduces it to a fixed-length value, and changing any byte changes that value completely.

What a hash comparison actually compares

The checker works simply. You select a file, paste the expected checksum, and the tool hashes your file locally, in your browser, then compares the result against the pasted value character by character. Nothing is uploaded.

Two details are worth knowing. First, the tool can auto-detect the algorithm from the length of the value you paste: 32 hex characters is MD5, 64 is SHA-256. Second, the comparison is forgiving about presentation: upper and lower case are treated the same, and spaces in the pasted value are ignored. It is not forgiving about the file itself, and it should not be. One extra byte anywhere, including an invisible one at the very end, is a different file.

A match proves one narrow thing: this copy's bytes are identical to the bytes behind the checksum. It says nothing about who produced the file or whether the source deserves trust.

The catch: both exports must be generated identically

Here is the wrinkle that catches most people. A hash comparison answers "are these the same file", not "do these files hold the same data". Exports make those two questions diverge easily.

Run the same export twice, a minute apart, and the second run may include rows the first did not, or stamp a different generation time into a header line. Export with different settings and the row ordering can change, or the file can end with a trailing newline the first copy lacked. Each of those produces a legitimately different file, and the checker will honestly report No match even though both exports describe the same database.

So the method works cleanly where it is meant to: verifying a copy survived a transfer intact, confirming a backup matches the export it was taken from, or checking the file a colleague received is the file you sent. Generate a fresh export instead of copying the file, and expect a fresh hash.

How to check two export copies, step by step

  1. Decide which copy is the reference. Ideally its checksum was recorded when the export was made. If not, hash the trusted copy first and keep that value.
  2. Open the Hash Checker and select the second copy, the one in question. The file is hashed locally and never leaves your device.
  3. Paste the reference checksum. Leave the algorithm on auto-detect unless you know it: the length gives it away, 32 hex characters for MD5, 64 for SHA-256.
  4. Run the check and read the verdict. Match closes the question. No match starts the short investigation in the mistakes section below.
  5. Record the result with the file name and date. A checksum written down beside the export it belongs to is what makes the next check, months later, possible at all.

Worked example: the abc test in miniature

The mechanic is easiest to see at the smallest scale. Take a text file containing exactly the three characters abc, with no trailing newline. Its SHA-256 checksum is:

ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

Check that file against that value and the result is Match. Now open it, press Enter once at the end, and save. The file looks unchanged on screen, but it now holds a fourth byte, and checking it against the same value returns No match.

A database export behaves identically, just at scale. The invisible newline stands in for every small generation difference: the timestamp in a header, rows in a different order, the final line ending. The hash does not know or care which byte changed; it only reports that something did, which is the honesty you want, provided you read a mismatch as "different file" rather than "corrupt file".

Limitations and honest tradeoffs

The file is read into memory to be hashed, so very large exports are slow to check. The verdict is still exact, but keep the tab open until a big file finishes.

The checker also cannot tell you where two files differ, or by how much. A mismatch might be one byte or a million rows. Finding what changed inside the data is a different job, done by importing both exports and comparing the tables, not by hashing.

Finally, a match is a statement about bytes, not about people. Whether the checksum's source is trustworthy is a question the tool does not answer.

Common mistakes

  • Comparing exports made at different times. New rows and a new generation timestamp make a different file. Compare a copy against the export it was copied from, not a fresh run.
  • Ignoring export settings. Ordering, quoting and line endings are part of the file. Exports with different settings should be expected to mismatch.
  • Treating No match as proof of corruption. A failed check usually means an interrupted download or the wrong file entirely. Rule those out first.
  • Pasting a checksum for a different file. A value recorded for last month's export will never match this month's. Label every checksum with its file name and date.
  • Expecting the hash to find the difference. It reports sameness or difference, nothing more. Locating a change inside the data is a separate comparison.

FAQs

What does a Match result actually prove? It proves the file you checked has exactly the same bytes as the checksum you pasted. It does not prove who produced the file or that the source is trustworthy, only that this copy matches that recorded value.

Why did two exports of the same database not match? Because they are probably not the same file. A later export time, a different row ordering, or even a trailing newline at the end changes bytes, and any changed byte produces a different hash and an honest No match.

Which algorithm should I use for a large export? SHA-256 is the sound default. The checker can auto-detect the algorithm from the length of the value you paste: 32 hex characters means MD5, 64 means SHA-256.

Is my export file uploaded to a server? No. The file is hashed locally in your browser and never uploaded. It is read into memory to do that, so a very large export can be slow to check.

What should I do when the check fails? A failed check usually means an interrupted download or the wrong file. Confirm you are checking the copy you meant to check, re-export or re-download it once, and only then treat the mismatch as a real difference.

Conclusion

Two copies of a database export are identical when their hashes match, and the Hash Checker gives you that verdict without uploading the file anywhere. Read a mismatch carefully before worrying: exports generated at different times or with different settings are different files, and the checker is right to say so. For more guides on keeping files safe, see our Security and Privacy guides. And if the file you are sending on is a social post rather than an export, our companion guide on finding the best hashtags for an Instagram post covers that side.

References