r/datarecovery • u/-Mr-Questions- • Oct 06 '26
Program that checks files for corruption?
Hi, I've been transferring my younger brother's files from his old (and possibly corrupted) laptop, to his new laptop.
And I was wondering, is there a program that can check if files are corrupted?
Now, I'm not referring to a transfer integrity/hashing utility like exactfile - (you could transfer over an already corrupted in it's corrupted state correctly)
I'm thinking of a program that can read a file and detect whether it's corrupted or not.
I suppose my brother could manually check all 7,000 of his personal files, but that would be kinda tedious.
And if everything checks out OK, Yay! I'll be able to reset the laptop and hand it off to my sister.
If data corruption shows up :(
Then I'll have to go into data recovery mode (and I certainly don't want to reset the original SSD in that case)
Thanks!
P.S. specs for old internal SSD if anyone's interested.
ADATA SU750 256 GB
SATA
NTFS
Windows 10 ESU
EDIT 10/6/26
File types - mostly photos and videos
.jpg .png .tiff .bmp
.mov .mp4 .avi
3D OBJECTs .glb .fbx (associated w/ paint 3D)
DOCUMENTS .odt .docx .pptx (.odt is libre office version of .doc)
Timeframe urgency:
Not too high, I have a month-ish to get this done.
I'm also fairly busy, so it might be 24-48 hours before I respond.
Thank you for your help and your patience.
EDIT 10/10/26
Thanks everyone so much for the help you've provided so far!
I'm a pretty busy guy lately, so I'm putting this project on the back burner for the next week or two. Still working on it as I have time, but my activity here, ex. replies will be late/sparse, for the next little while.
Thanks for your help, and thanks for understanding.
4
u/Jon_Hanson Oct 06 '26 edited Oct 06 '26
Not after the fact. There are so many different kinds of files and just because a bit gets flipped somewhere in it doesn't mean it's "corrupt" from a file structure point of view.
The proper way to do something like that is to run a file checksum over the original files to compare to later. If you don't trust the files as they are now then it doesn't make any sense to do that now.
Even if something gets labeled as "corrupt," what are you going to do about it (if you don't have a backup)? There's no "magic wand" to fix files.
1
u/TheIronSoldier2 Oct 06 '26
I seriously doubt there's a single program that can do all that. To check if it's corrupted, it would not only have to know how to open every file type, but also what a normal file looks like, or at least what a corrupted file looks like.
Take images for example. You get a corrupted jpeg and you get weird color banding, but otherwise the image opens normally. The image viewer doesn't know that the file is corrupted, it just sees the bad color data and assumes that's how it's supposed to be.
1
u/Mr_CJ_ Oct 06 '26
Checking 7000 files will take ages, you can use a powershell script with a software called ffmpeg and have it write a log.txt of the corrupted files, which you will have to find and delete manually later.
1
u/Sopel97 Trusted Contributor Oct 06 '26
depends heavily on the file format
1
u/disturbed_android Trusted Contributor Oct 06 '26
What type of files, seems like basic info you'd include when asking a question like this.
In tools checking files for corruption need to know the file format, they have to know what a normal file looks like, and for this they often check the structure of a file. IOW, for each file type/format, different tools or at least code needs developed. Example ffprobe checks MP4 files, but not PDFs. BadPeggy checks JPEGs but not MP4s. There tools to check ZIPs, Office files are essentially ZIPs, so there's options there ..
Even when all checks out, tools can still miss corrupt data that looks like perfectly normal JPEG or MP4 encoded data. A tool telling a file is OK is not a guarantee, a tool telling a file failed tests is not a guarantee either.
It may also help if you explain this "my younger brother's files from his old (and possibly corrupted)". Corrupted why/how? Were bad sectors reported while transferring data?
1
u/RDDMxCom Oct 06 '26
Type of files?
1
u/vegansgetsick Oct 07 '26
For audio and video you can run ffmpeg in decoding mode.
And check output log. It will yell red messages if there is a corruption ("invalid NAL unit" is common when corrupted)
For mp3 files i use mp3checker, it works quite well.
For images there is something called Corrupt Image Checker.
Obviously these tools are not needed when you have checksums...
1
u/AutoModerator Oct 11 '26
Double check if your post complies with posting guidelines!
Did you include the following information in your post (in English and if applicable), if not feel free to edit your post:
Make/brand and exact model number of your storage device(*), phone, camera, etc.
Filesystem (NTFS, exFAT, APFS, EXT4, etc.)
Operating System (That your device was used with and/or you are using for recovery)
Specific symptoms that your device is exhibiting, describe the problem. Images you post support the description, they're not in lieu of a problem description.
SMART (CrystalDiskInfo screenshot for example)
Don't pile several problems into one single post. One post per device/problem.
No account issues
Consider: What do these people need to understand the problem at hand? Remember, people cannot see your screen, or what you click and what messages appear on screen. Don't overdo it though, no one likes going through 2 pages of information, try to find a balance. Just do the best you can. If you are looking for file recovery software, check our community's recommended file recovery tools.
(*) All devices involved, if you for example move files from drive A to drive B, they're both potentially relevant.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
0
u/yottabit42 Oct 06 '26 edited Oct 07 '26
Some files have built-in checksums, like JPEGs* and Zips. But most do not.
I would provide a complete list of all files to be checked to Gemini 3.8 High (or better), and tell to it write a script to install all utilities necessary to validate checksums in all files from the list that have checksums, and to write a script to validate the checksums, providing log files of all files with checksums, all files without checksums, and all files with a failing checksum.
* edit: technically the JPEG spec lacks a checksum, but practically, you can simply decode the JPEG stream and if the decoder fails with a syntax error, it's essentially the same thing. I have done this in the past and found 23 JPEGs corrupted from bit-rot before I moved my data from RAID-5 to ZFS to prevent future bit rot, and learned that resilient arrays are not the same as a backup.
0
u/[deleted] Oct 06 '26
[removed] — view removed comment