Home / Guides / How to Verify Copied Files Using Checksums on Windows
Organization / KNOWLEDGE BASE

How to Verify Copied Files Using Checksums on Windows

Knowing how to verify copied files using checksum comparisons can prevent a damaged video transfer, incomplete backup or incorrect client delivery from becoming a costly problem. Windows includes tools that calculate a fingerprint from a file's contents. Comparing the source fingerprint with the destination fingerprint helps establish whether their bytes agree. This guide covers single-file SHA-256 verification, folder inventories, PowerShell commands, mismatch troubleshooting and media transfer reports without deleting or modifying original footage.

File copy verification methods compared

File copy verification methods compared
MethodWhat it checksBest use
Size and timestampBasic properties, not content equalityPreliminary screening
PowerShell Get-FileHashCryptographic digest of file bytesRepeatable verification
Certutil -hashfileDigest of one fileManual command-line check
Folder checksum manifestRelative paths, sizes and hashesProject archives and deliveries
Playback testPractical usabilityMedia handoff after integrity verification

Scroll the table horizontally on smaller screens.

How to verify copied files using checksum comparisons: what a hash proves

A checksum is a value calculated from data to help detect changes. A cryptographic hash such as SHA-256 maps a file's bytes to a fixed-length digest, normally displayed as 64 hexadecimal characters. Change even a small part of a file and the resulting digest will generally be very different. When two independently read files produce the same SHA-256 value, their contents are overwhelmingly likely to match.

A matching file hash does not establish that the original was correct, authorized or free of malware. A normal file hash reads the primary data stream, not the filename, access permissions, timestamps, alternate data streams or surrounding directory structure. If those properties matter to your backup or evidence workflow, verify them separately.

File size is useful as a preliminary check, but two files can contain the same number of bytes while having different content. A matching filename or modification date is weaker still. A copy utility can report that a transfer finished without independently comparing cryptographic digests. Hash verification is a separate check performed after copying.

For a media archive, first agree on what belongs in the archive, preserve the source, and choose the verification level appropriate to the value of the footage. A disposable preview does not necessarily need the same process as irreplaceable camera originals or a contractual client delivery.

Choose SHA-256 for file integrity verification

SHA-256 is a sensible default for new file verification workflows. Windows PowerShell's Get-FileHash command supports it directly and returns the digest, algorithm and file path. SHA-512 is also a strong algorithm, but both parties must use the same algorithm and compare values for the same file version.

Older manifests may contain MD5 or SHA-1 values. They can still reveal many accidental changes, but both algorithms have known collision weaknesses and should not be relied on for adversarial integrity or authenticity checks. Use SHA-256 for new manifests unless a documented receiving specification requires a different method.

Distinguish integrity from authenticity. If a software publisher supplies an expected SHA-256 value through an independently trusted channel, a match helps establish that the downloaded bytes correspond to the reference. A hash copied from the same untrusted site as an installer does not establish who published it. Inspect digital signatures where available.

For ordinary video, music and project backups, calculate the reference digest from the trusted original before releasing or retiring that original. Keep the digest with the inventory and protect the inventory from unauthorized modification. If both the file and reference can be replaced, a match may provide false reassurance.

Method 1: Verify a copied file in Windows PowerShell

Windows PowerShell is included with Windows 10 and Windows 11. Open it from the Start menu. You do not normally need administrator privileges to hash files you can already read. Wait until the transfer has finished and no recorder, editor or synchronization service is changing either file. Replace the sample paths below with your own, keeping the single quotes around them.

The following commands calculate SHA-256 for a source video and destination copy and compare the digest values. LiteralPath prevents wildcard characters in filenames from being interpreted as patterns. Stop-on-error ensures an unreadable file is not mistaken for a match.

$ErrorActionPreference = 'Stop'
$source = Get-FileHash -LiteralPath 'C:\Media\interview.mp4' -Algorithm SHA256
$copy = Get-FileHash -LiteralPath 'E:\Backup\interview.mp4' -Algorithm SHA256
if ($source.Hash -eq $copy.Hash) {
    'MATCH: SHA-256 hashes agree'
} else {
    'MISMATCH: keep the original and investigate'
}

A match means the content comparison succeeded for the files read at that moment. A mismatch means the files differ or changed during the check; it does not identify which file is wrong. Check the paths, file sizes and expected versions before deciding what to do. Do not automatically overwrite either copy.

An error such as access denied or file not found means the comparison did not complete, even if an earlier run showed a match. This technique works with WAV recordings, MP4 exports, ZIP archives, documents and other ordinary local files. The commands read file contents; they do not repair or change them.

Method 2: Check a SHA-256 file hash with Certutil

Certutil is another Windows command-line tool that can calculate a file hash. Open Command Prompt or PowerShell and run these commands separately, replacing the example paths with your own.

certutil -hashfile "C:\Media\interview.mp4" SHA256
certutil -hashfile "E:\Backup\interview.mp4" SHA256

Compare the hexadecimal values displayed by the two successful commands. Ignore differences in letter case or visual spacing, but not a changed digit. Confirm both commands succeeded and used SHA256. A failed command is not a valid comparison.

Certutil is convenient for manual checks. PowerShell is easier when you need structured output, a folder inventory or automated mismatch detection. Do not use unrelated certificate-management options when your only goal is to read a file hash.

Graphical checksum tools are another option. Choose a reputable publisher, confirm the algorithm, and test the application with a known copied file before using it for a large project. Avoid uploading private footage to a website merely to calculate a checksum; verification can be done locally.

Method 3: Verify an entire copied folder with a SHA-256 manifest

A folder verification needs more than a list of hashes. A copy can contain correct bytes while placing files in the wrong subfolder, omitting assets or including unwanted extras. A useful manifest records the relative path, size in bytes and SHA-256 for each regular file. Relative paths let you compare folders on different drives.

Use two separate, stable, ordinary local folders containing the intended project files. Close applications that write to them. This PowerShell function walks each folder, includes hidden items, stops on unreadable items and refuses reparse points such as junctions and symbolic links. It is not intended for network shares, special filesystem objects, actively synchronized folders or untrusted path lists.

Run this function first. It only reads the selected folders and emits file records.

function New-MediaManifest {
    param([Parameter(Mandatory)][string]$Folder)
    $root = Get-Item -LiteralPath $Folder -ErrorAction Stop
    if (-not $root.PSIsContainer -or
        ($root.Attributes -band [IO.FileAttributes]::ReparsePoint)) {
        throw 'Choose an ordinary local folder.'
    }
    $prefix = $root.FullName.TrimEnd('\') + '\'
    $pending = New-Object 'System.Collections.Generic.Stack[string]'
    $pending.Push($root.FullName)
    while ($pending.Count -gt 0) {
        $dir = $pending.Pop()
        foreach ($item in Get-ChildItem -LiteralPath $dir -Force -ErrorAction Stop) {
            if ($item.Attributes -band [IO.FileAttributes]::ReparsePoint) {
                throw "Reparse point requires manual review: $($item.FullName)"
            }
            if ($item.PSIsContainer) {
                $pending.Push($item.FullName)
            } else {
                [pscustomobject]@{
                    RelativePath = $item.FullName.Substring($prefix.Length)
                    Bytes = $item.Length
                    SHA256 = (Get-FileHash -LiteralPath $item.FullName -Algorithm SHA256 -ErrorAction Stop).Hash
                }
            }
        }
    }
}

Next run the comparison in the same session. Change the folder paths. Empty inventories require review rather than automatic acceptance. Run the entire block together and stop if any error occurs.

$ErrorActionPreference = 'Stop'
$source = @(New-MediaManifest -Folder 'C:\Media\Project')
$copy = @(New-MediaManifest -Folder 'E:\Delivery\Project')
if ($source.Count -eq 0 -or $copy.Count -eq 0) {
    throw 'An inventory is empty; check the folder and scope.'
}
$differences = @(Compare-Object -ReferenceObject $source -DifferenceObject $copy -Property RelativePath,Bytes,SHA256 -CaseSensitive)
if ($differences.Count -eq 0) {
    'MATCH: inventoried file paths, sizes and hashes agree'
} else {
    $differences | Format-Table -AutoSize
}

Compare-Object shows source-only records with the indicator <= and destination-only records with =>. A changed file at the same relative path can appear as two rows because its size or hash differs. Investigate both records together. Case-sensitive comparison exposes changes in path capitalization.

This procedure does not verify empty directories, permissions, timestamps, alternate streams or hard-link relationships. Nor does it prevent another process from modifying files while being read. Stable data, sufficient permissions and an agreed scope are prerequisites. For critical data use an appropriate snapshot or professionally validated backup process.

Create a CSV file integrity report for media transfers

A verification report is useful when a project contains many recordings or is being delivered to another editor. Save manifests outside the checked folders so the reports do not become unexpected extra files. Create the reports directory first and choose unused filenames to preserve previous approved manifests.

Run the following optional commands only after the comparison completed successfully. If no differences are present, record that result separately; an empty export may not contain a usable header.

$source | Sort-Object RelativePath | Export-Csv -LiteralPath 'C:\Reports\source-manifest.csv' -NoTypeInformation -Encoding UTF8
$copy | Sort-Object RelativePath | Export-Csv -LiteralPath 'C:\Reports\delivery-manifest.csv' -NoTypeInformation -Encoding UTF8
$differences | Export-Csv -LiteralPath 'C:\Reports\verification-differences.csv' -NoTypeInformation -Encoding UTF8

A recipient should know which algorithm was used, when the verification occurred, which roots were compared, and whether any special objects were excluded. Record a result such as match, missing, extra, mismatch or not verified. Do not assign a match to a file that was skipped or could not be read.

Manifests may contain client names, internal projects or personal information in filenames. Keep them in approved storage and retain a protected reference copy. A recipient can independently calculate hashes against the manifest, but should not blindly run scripts that trust arbitrary paths from an untrusted CSV.

Verify large video files after copying to USB, SSD or external drives

Large camera files, audio masters and project archives benefit from verification because replacing lost footage can be difficult. Copy the selected files, wait for completion and calculate digests from both sides. For a portable drive, follow safe-removal guidance before disconnecting it; when appropriate, reconnect and independently reread the destination.

Hashing requires reading the data. Verification time depends on file size, drive performance and concurrent activity. A slow mechanical hard drive or USB connection can take longer than an SSD. Avoid starting competing read jobs on a drive already struggling with errors. Matching hashes do not predict future drive health.

Robocopy can copy large directory trees and keep transfer logs. Its normal selection and reporting behavior is not equivalent to independently comparing every destination file's SHA-256 digest. Review copy failures, then perform a separate verification. Avoid destructive mirror or purge options unless their consequences have been reviewed and backups protected.

When checking cloud transfers, confirm whether a local file is a placeholder or a fully available copy. A local digest does not prove that a remote service retained the same bytes. Verify the actual recipient-side download when delivery requires end-to-end confidence.

Troubleshoot a checksum mismatch, missing file or access error

Confirm you are comparing the correct original and intended destination. The source may have been edited since copying, or a delivery version may differ by design. A transcoded video, updated metadata tag or remuxed container may have a different digest while remaining usable. Only exact copies are expected to share a file hash.

If an exact copy is expected, compare sizes and inspect copy warnings. Verify available storage and ensure neither file is open for writing. Recalculate both digests after the files are stable. If the mismatch persists, keep the original and create a fresh copy at a separate location. Check it before discarding any existing version.

An access-denied error is not a mismatch; it is incomplete verification. Obtain legitimate access rather than bypassing restrictions. An unexpected reparse point, unavailable cloud placeholder or interrupted read should likewise be recorded as not verified.

Repeated read failures, disappearing files or unusual drive noises warrant caution. Stop unnecessary writes, protect accessible originals and consider qualified recovery help for irreplaceable media. A hash detects a difference; it cannot repair damaged storage or recover missing bytes.

Worked example: verify a video editing project before client handoff

Imagine a hypothetical interview project with three camera recordings, a WAV audio master, an editable project file and an approved MP4. The agreed delivery contains these six files under the original folder layout. The editor copies the approved assets into a separate versioned directory and calculates a manifest for each tree.

Five paths have identical sizes and SHA-256 values. The sixth, the approved MP4, appears on both sides with different hashes. The editor discovers an older preview was accidentally placed in the delivery folder. Instead of modifying the original or accepting the difference, the editor copies the approved version and repeats verification.

After every expected record agrees, the editor opens the final MP4, tests sound and captions, and confirms the project opens with the intended source footage. The manifest is retained with a delivery note. The recipient can independently verify the package against the agreed version.

A byte-for-byte copy of an incompatible video remains incompatible; a playable preview can still be the wrong version. UMD's planned project media manager, inventory and reviewed-copy workflows are being developed to support organized delivery. The Windows methods here work independently of the unreleased application.

Build a repeatable verification and backup routine

For routine work, define files that require exact copies, record their original digests and verify copies before accepting a transfer or retiring a working version. Keep source files separate from proxies, exports and temporary data. Use meaningful project names and relative paths so later comparisons identify the expected version.

Duplicate media detection is related but serves a different purpose. Equal hashes identify byte-identical candidates even if filenames differ. A protected backup, separate delivery or deliberately repeated asset may still be required. Never delete files solely because a duplicate detector reports matching digests.

A good workflow includes independent backups, access controls and periodic restore tests. A manifest records what was checked and provides a reference for later comparisons. It cannot replace a recoverable backup or prove that all editing dependencies are present.

If you need to know how to verify copied files using checksum comparisons repeatedly, start with a representative file and practice on disposable test folders before checking important projects. Record exceptions and retain trusted originals until complete acceptance criteria are met.

Quick checklist

  • Define the source, destination and expected file scope.
  • Wait until copying and modifications are complete.
  • Use SHA-256 consistently on both sides.
  • Compare relative paths, sizes and digests for regular files.
  • Review missing, extra, unreadable and mismatched records.
  • Store verification reports separately from checked folders.
  • Test playback and project relinking when needed.
  • Retain protected originals and backups until acceptance is confirmed.

Frequently asked questions

How do I verify copied files using checksums on Windows?

Use Get-FileHash -LiteralPath with SHA256 on each file and compare the Hash values after both commands succeed. For folders, compare per-file relative paths, sizes and SHA-256 digests.

Does Windows have a built-in checksum checker?

Yes. Windows PowerShell includes Get-FileHash, and Certutil provides a hashfile command. Both calculate SHA-256 locally.

Can two files of the same size have different checksums?

Yes. A file can contain altered data without changing its length. Equal file size does not establish equal bytes.

Is SHA-256 better than MD5 for verifying a file?

SHA-256 is a better default for modern verification because MD5 has known collision weaknesses. Both sides must use the same algorithm.

Does Robocopy verify files with SHA-256 automatically?

Its usual copy and file-selection operations are not a separate SHA-256 readback comparison. Use a dedicated verification step when content integrity matters.

How can I verify all files in a folder?

Build manifests of regular file relative paths, sizes and hashes on both sides, and compare all records. Investigate missing, extra, unreadable and changed files.

Does a matching checksum mean my video will play?

No. It is extremely strong evidence of equal bytes, not that the original is playable or compatible with the intended editor. Test playback separately.

Should I delete an original after its copy matches?

Not solely on that basis. Retain protected originals and appropriate backups until acceptance and retention requirements are satisfied.

References and further reading

Back to top ↑ · Browse all guides

Put this guide into practice

Use these free browser tools with compatible local files you have permission to process. They do not download media from websites.

File & feed utilities

SRT to VTT converter

Convert UTF-8 SubRip captions into normalized WebVTT for browser video tracks, with optional timing corrections.

Open tool
Browse all free tools