Is this JPEG corrupted?
Drop a photo and the checker walks its marker chain: start of image, tables, scan data, end of image. It reports which link is broken and whether the photo can be rebuilt. The file stays in your browser.
Drop a file here to check it
JPEG photos (.jpg, .jpeg) · up to 256 MiB
Your file never leaves this browser tab. The analysis runs locally in WebAssembly — nothing is uploaded.
How a JPEG breaks
A JPEG is a chain of marked segments. It opens with a start-of-image marker, then come the tables the decoder needs, then the compressed picture, and it closes with an end-of-image marker. A viewer reads them in order, so one missing link is enough to turn a photo into an error message, or into a picture that stops half way down.
This checker follows that chain the way DataRecover Pro's repair engine does and lists each link it finds. It is the quickest way to tell a photo that was cut short from one that lost its header, and both from a file that was never a JPEG.
What the checker reads
- Start of image (SOI)
- The first two bytes,
FF D8. If they are gone the file has lost its header. The checker then searches the rest of the file for a marker chain that begins later, which is what a photo carved a few bytes late looks like. - Start of scan (SOS)
- The marker that opens the compressed pixel data. A file with a header and no scan holds the camera settings and nothing to show.
- End of image (EOI)
- The closing
FF D9. When it is missing, the file stops before the picture does. This is the usual cause of a photo that is fine at the top and grey below. - Huffman tables (DHT)
- The code tables the scan is packed with. A malformed table makes the whole picture undecodable even when every pixel is present. Many cameras write the standard tables, which is why they can be put back.
- EXIF segment
- Camera, lens, date and the embedded thumbnail. Damage here costs the metadata, not the picture.
- Marker count
- How many segments were read before the chain ended. A camera photo has several. One or two means the chain broke early.
What the verdict means for a JPEG
- Healthy
- Start, scan and end markers are all present and the tables are well formed. If the photo still looks wrong, read the limits below: the checker does not decode the picture.
- Repairable
- The header is at the start of the file and something after it is missing or malformed, most often the end marker. Read the findings before you count on it: if they say the start-of-scan marker is missing, there is no picture data in the file to rebuild from, and the verdict is more hopeful than the file deserves.
- Partially repairable
- There is no header at the start of the file, and the marker chain found further in is short or has no scan data. A rebuilt photo, if there is one, may lack its metadata or its lower rows.
- Not repairable as-is
- No JPEG markers anywhere: the file was overwritten, or holds something the checker does not recognise. A PNG or PDF with a .jpg name is not reported this way. It is checked as what it is, with a note that the extension is wrong.
What this check does not tell you
It reads structure, not pixels. A photo whose middle was overwritten by another file's data, but which still has its start and end markers, can come back healthy here and open with a grey band or shifted colours. That case is covered in recovered JPEGs that are grey, half missing, or blocky.
A healthy verdict on a photo of a few kilobytes usually means you are looking at the camera's thumbnail, not the photo. See recovered photos are only thumbnails.
The 256 MiB browser limit is far above any camera JPEG. RAW files (CR2, NEF, ARW and the rest) are not JPEGs and are not checked here.
If the file is damaged
This page assesses and stops there. In the DataRecover Pro Mac app, the Repair tab runs the same assessment for free, and with a license it rebuilds the photo: it writes a missing start marker, strips a damaged EXIF segment, substitutes the standard tables where the file's own are damaged, and appends the missing end marker so the part of the picture that survives opens.
Repair cannot bring back rows that are not in the file. A photo cut off at 60 percent comes back as a valid photo of the top 60 percent. The steps are in how to repair corrupted JPEG photos on Mac.
Related guides
- How to repair corrupted JPEG photos on Mac
- Recovered JPEGs are grey or half missing
- Recovered photos are only thumbnails?
Checking is free here and in the app. Repair needs a license.
DataRecover Pro assesses the file on your Mac, with no upload, and tells you whether its repair engine can fix it before you buy.
Check another kind of file: PNG · GIF · MP4 and MOV · PDF · Word (.docx) · any supported file