JPG-Repair – Fix and Repair corrupt JPEG headers and invalid JPEG markers

JPEG Repair Software – JPEG Repair Tool – Fix and Repair corrupt JPEG headers yourself

Repair damaged or corrupt JPEGs using JPEG Repair Software

Repair damaged or corrupt JPEGs using JPEG Repair Software

Something I have been doing lately is looking into repair of damaged and corrupt 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 corrupt and damaged JPEG files, JPG-Repair. Currently JPG-Repair supports following photo formats (to some degree*):

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

Repair corrupt 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 corrupt 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 corrupt RAW photos

JPG-Repair can even get the JPEG data from RAW files 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 photo repair software



DIY JPEG photo repair

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

  • 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
  • Free version shows previews + saves scaled down examples in BMP format. Correct preview, then file can be repaired!

More info ..


Introduction to JPEG 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 corrupt 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

(*) – 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:


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

21 thoughts on “JPG-Repair – Fix and Repair corrupt JPEG headers and invalid JPEG markers

  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


Leave a Reply

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