JPG-Repair Toolkit photo repair. Repair corrupted JPEG photos using DIY software

JPEG Repair Software – JPG Repair Toolkit – Fix and Repair corrupted JPEG photos yourself

Repair damaged or corrupt JPEGs using JPEG Repair Software

Repair damaged or corrupted JPEGs using JPEG Repair Software

Repair corrupted JPEG photos

Something I have been doing lately is looking into repair of corrupted JPEG photos. I have been offering a JPEG repair service for a while now. Learning from that I have created a utility that addresses most common issues with corrupted and damaged JPEG files, JPG-Repair. Currently JPEG-Repair supports following photo formats (to some degree*):

JPEG, NEF*, CR2*, CR3*, RAF*, CRW*, ORF*, ARW*, SRW*, PEF*, 3FR*, RW2*, DNG*, TIFF*

Repair corrupted JPEG headers

JPG-Repair is an easy to use alternative for replacing headers with a hex editor. JPG-Repair can repair corrupt JPEG headers using a reference or sample file. It is an easy alternative for replacing a corrupt header with an intact one using a hex editor. A typical symptom of a corrupt header is that the JPEG file can not be opened at all. Windows explorer does not show preview thumbnails and different viewers and photo editors may show different error messages.

Repair corrupted JPEG image data

Patch (edit) raw JPEG image data with visual feedback. Corrupt data in the actual JPEG image data can have many effects, ranging from an abrupt change in color or brightness, up to the image appearing to be suddenly cut-off. The latter often results in a grey block or a solid color block. Image data can also abruptly shift to the left or right causing different parts of the image to be misaligned. With help of JPEG repair it often possible to remove the bad data resulting in a dramatic improvement of the photo. Be warned that this requires patience and a bit of luck.

Recover JPEG data from corrupted RAW photos

JPG-Repair can even get the JPEG data from RAW files (functionality previously found in JpegDigger) such as Canon CR2 and Nikon NEF files when ‘normal’ tools that are normally up to this job can not. Depending on the camera manufacturer those JPEGs are full resolution JPEG files.  Are RAW photos from you camera not supported? Send me a few samples and I’ll add support for those as quickly as possible! My aim is to support every RAW format out there!

JPG-Repair Toolkit editor allows correction of color and shift errors in corrupted jpeg

JPG-Repair toolkit for analyzing and repairing corrupt and broken jpeg files.


JPG-Repair Toolkit

DIY JPEG photo repair

JPG-Repair is a unique DIY JPEG photo repair utility! 

Price (ex VAT): 14.99 Euro / 16.49 USD

  • Repair corrupt and damaged JPEG files
  • Fix corrupt JPEG header
  • Repair Invalid JPEG markers
  • Repair damage due to bad sectors
  • Improve corrupt JPEG image data by patching JPEG bit stream with visual feedback
  • Recover JPEG data from corrupt RAW photos such as CR2 and NEF
  • Does not re-encode JPEG image so original quality is preserved!
  • Preview of repaired file
  • Does not alter original files
  • No need to upload photos to remote servers
  • Free version shows previews + saves low resolution examples.
  • Now includes a photo heal tool to remove unwanted objects (such as grey lines caused by JPG-Repair!

You can use this download to update a registered version. Simply copy files over existing files. JPG-repair Toolkit will continue to work with you license key.

More info ..


Introduction to JPEG photo repair and using JPG-Repair

Most of the simpler repairs only require you to select the file(s) you need to repair and click ‘repair’.

Reference File

For repairing corrupted headers JPG-Repair needs a ‘sample file’. The reference or sample file should be taken with the same camera as the corrupt image(s). Also, the settings (resolution, quality and orientation) of the sample file need to match the corrupt files. If unknown then you would need to experiment by taking different shots with different settings using the original camera (same brand and type).

Windows photo viewer doesn’t like this file! The result of a corrupt JPEG header.

Limited support for RAW files too!

(*) – Saved as JPEG. No patching. Technically JPG-Repair does not repair these files. Functionality is limited to extracting half or full sized JPEGs from these file types. However, JPG-Repair is able to process RAW corrupt files while other tools able to extract JPEG from RAW often rely on the file to be intact.

I get a SmartScreen warning when running JPGRepair

See this when running JPGRepair? It means I have recently updated the software and SmartScreen doesn’t recognize it yet. Click More info > Run anyway.


The idea for this tool is not original and basic concept was ‘copied’ from Wim Vanmaele’s utility repair-jpeg. I can’t find the original source for this program but it can still be found here: I read this and tried this tool which I found to be incredibly difficult to use, which is why added this functionality to JPG-Repair:

“..During my testing, I discovered that by adding one byte at a certain position in the jpg file the corrupted picture was restored. So all we need is a tool that would add a byte at a user-defined position. JPEG-Repair, the program I wrote, will allow you to do this..”

To determine signatures I examined RAW files taken from:
And also:


If you have other issues then feel free to contact me. Send me your sample file + some corrupted files so I can examine them.

37 thoughts on “JPG-Repair Toolkit photo repair. Repair corrupted JPEG photos using DIY software

  1. stofa


    i have a question, i have maybe the problem with wrong header of sample, how could i find, that i have correct one or how could i change to correct one?

    Thanks for answer

  2. katy

    hola . reparas tambien archivos word ?? . mi disco duro se encuentra en fase de recuperacion de informacion.. y algunos archivos quedaran corruptos. para cuando un disco se encuentra en labotorio con especialistas en recuperacion de informacion es decir que reemplazan partes mecanicas del disco. que programas recomiendas para extraer informacion de ese disco ? . no conozco los que usan pero tener una referencia de su parte me interesa. Gracias

  3. Dexter Fernandes

    Hi, I just tried the trial version and i used 1 file in the same series which was a sample and the very next one was corroupt, it just gives me an error saying : “An error occurred while processing this image”

    The properties of this jepg file are missing but it has a jepg file size of around 6MB

  4. zanet

    hello,i tried recover photos by this program and many others with no result

    1. Joep Post author


      That is possible. A good part of the files that people send to me are beyond repair. If that’s the case with your files or not I can not tell without looking at them. So feel free to send a few + a known good sample shot with the same camera and settings (

  5. wiljun liston

    i emailed you some files. pls check if you can still recover it.. emailed @ (

      1. Joep Post author

        Okay .. Can you give me access to the entire google drive folder please so that I do not have to download files one by one?

  6. Kathleen Donlon-Miller

    Hello. I just downloaded this program in hopes of repairing some jpgs that I recently payed someone a lot of money to recover from a damaged external hard drive only to now find most of the files are now corrupted for some reason. I feel like crying. Anyway, I feel dumb asking but how do i provide a sample? I have an uncorrupted sample taken by the same camera with same resolution and quality and orientation. Luckily there are a few that were not corrupted. These are files taken years ago and I no longer have the camera. Thanks for any help you can give.

    1. Kathy

      Actually I think I figured out how to add the sample photo and then the corrupt one but nothing has happened to any corrupt file I have tried. I only tried a couple.

      1. Joep Post author

        Can you send me those + a sample so I can check if they’re fixable at all?

  7. Abraham Simpa

    Hello I sent a sample of a corrupt image file to your address. Pls check for. Me if I can recover this. It’s really urgent pls. I’d appreciate your response. Thanks.

    1. Joep Post author

      You sent me .NEF files and a .JPG sample. So did you intend to sent me JPEGs? The NEF files only contain zeros, so no data at all I’m afraid.

  8. Amat Naga

    Hello I am very Naga from Indonesia, I am very grateful to this software, because the jpeg file that is damaged in half gray has my friend (a traveler from France) can be solved by this software.
    This software is highly recommended for those of you who are having jpeg files that are problematic, such as: corrupted jpeg file, half ashes jpeg file, jpeg file that is completely unreadable and other problems.

    Once again I thank you. 🙂

  9. Karen

    Hi how do i figure out what resolution my corrupted photos are to find a sample to match? All the corrupted files so far are showing as -1 x -1 does this mean they are beyond repair?

  10. Karen

    Actually I just opened them in HxD and they were all showing as zeros so now i know I will never get them back ☹ Thanks for all the information though at least I won’t waste anymore sleepless nights on this

  11. Zachary

    How do you get the free Key for liking on Facebook? Your program works! The demo mode showed me a recovered file.

    1. Joep Post author

      Oh good that it works for you! Maybe leave a nice review then where ever you found the program?

      If you click the like button here on this page, it will immediately show a serial number for you. So, click the little FB thumbs up where it says “like us .. only this weekend”.

  12. Daniel

    Hi there,

    I just got JPG-Repair Toolkit from Giveawayoftheday and it appears that I need access to the internet just to start the program.

    Is there a reason for this?

    Thank you 🙂

    1. Joep Post author

      You mean there is a problem if you don’t allow it access? because it should not be a problem if you have no access. All it does is ‘touch’ a page on my website so I get some idea of how many times it is run.

          1. Daniel

            Thank you for the head up, and sorry for double post 🙁 I thought it didn’t go through the first time 🙂

          2. Joep Post author

            Could you be so kind to check for me if it works ok now? Because internet or not, you should be able to run it. So, I just uploaded 1.9.2.

      1. Daniel

        Hi there,

        I just tried to run it without internet access and I get the error ”
        run-time error ‘-2147012889 (80072ee7)’;
        The server name or address could not be resolved”

        Thank you 🙂

        1. Joep Post author

          Could you be so kind to check for me if it works ok now? Because internet or not, you should be able to run it. So, I just uploaded 1.9.2.

          1. Daniel

            Hi there,

            I just downloaded the new build and it all working well now 🙂

            Thank you 🙂

  13. tibor

    Hello I will purchase your repair tool kit and just have a few questions :

    My corrupted Nikon NEF files are often the ones with adjustment settings from CNX2 saved into the NEF file.
    Is there a way to recover the full NEF file with or without the adjustments ? I tried several raw editors, neither of them wants to open those edited NEF files, they just show up as corrupted.

    I tried your free version of jpegrepair to see if I could recover a jpeg file from these corrupted NEF files, it works but still shows 20% of the image as corrupted. Is there a way to recover the whole picture ? thank you so much.

    1. Joep Post author

      TBH I have no idea how CNX2 saves those settings. If they embedded with the JPEG too then that should be possible. Currently JPG-Repair strips that from the header (if it would be stored in the JPEG header), but I would need to see if I can make it so that it leaves that info untouched.

      What happened to the NEF files, do you have an idea? As you speak of ‘recover’ rather than repair, were they lost/deleted?

      If extracted JPEGs are corrupt then it depends if that is repairable, it should be treated like any corrupt JPEG.

      Is it possible you send me:

      – An non corrupt NEF
      – A corrupt NEF where the extracted JPEG is corrupt
      – A JPEG that is corrupted after extraction from NEF

      Joep (

  14. tibor

    Hoi Joep just sent you the files,

    they were partially recovered from a harddrive that crashed but all the non edited NEF files seem to work perfect. The ones that were previously edited and seved with CNX2 dont work anymore but info is definitively still in the file. Other editors actually save the extra data into another folder, which is better to leave the NEF files intact.

    Just another question :
    Photoheal doesn’t seem to work when I start it, a message error appears. (some file seems missing)

    1. Joep Post author

      Okay, I think I fixed the Photo Heal error. It never occurred on my PC, so I only know for sure if you try it too.

      Okay, so files were result of file recovery. That is always tricky because most common cause for files to be corrupt is then that they’re recovered incorrectly.

      I will now look at your files asap.

    2. Joep Post author

      Unfortunately it appears FILE0006.NEF is simply incorrectly recovered and does not contain the data the original file presumably did.

      The JPEG is simply prematurely cut off and is followed by NON JPEG data. Better said is, it is interrupted by non JPEG data The same goes for NEF data itself. The header appears okay, it’s the sensor data itself.

      – How did the hard disk crash?
      – Do you happen to know the file system, like NTFS?
      – What software was used to recover the data? File names suggest files are a result of file signature based scan. If the file system was NTFS, in general much better results are achieved with software tat virtually reconstructs the file system.
      – Has the hard disk been used since?


Leave a Reply

Your email address will not be published. Required fields are marked *