Free tool

Is this GIF corrupted?

A GIF is a header and a chain of small blocks, one frame after another, closed by a single byte. Drop the file and the checker walks the chain and shows where it breaks. It never leaves your browser.

Drop a file here to check it

GIF images and animations (.gif) · up to 256 MiB

Your file never leaves this browser tab. The analysis runs locally in WebAssembly — nothing is uploaded.

How a GIF breaks

GIF has no index and no checksums. A decoder starts at the header and reads forward: the canvas size, an optional colour table, then each frame as a run of data blocks of up to 255 bytes, each announcing its own length. A zero-length block ends a frame, and the byte 3B ends the file.

Because everything is read front to back, damage has a simple shape. A GIF that was cut short plays and then stops, or loses its last frames. One with a damaged start does not open at all. The checker walks the same chain and reports the first place it does not hold.

What the checker reads

Header
GIF87a or GIF89a in the first six bytes. If the signature is not at the start, the checker looks for it further in, and separately tests whether the canvas description survived an overwritten signature.
Logical screen descriptor
The seven bytes after the signature: canvas width and height, and whether a global colour table follows. A zero width, or a colour table that runs past the end of the file, means the start is not usable.
Frames
Each frame's blocks are followed to their terminator. A frame whose data ends before its terminator is reported with its dimensions.
Trailer
The final 3B. Without it the file ends inside the animation.
Data after the trailer
Extra bytes after the end. Most viewers ignore them. The checker counts them, which is how a carve that ran long shows up.

What the verdict means for a GIF

Healthy
The header and canvas description are sound, every frame is terminated, the trailer is present and nothing follows it. Since GIF has no checksums, this means the chain is intact, not that every pixel is as drawn.
Repairable
The start is usable and the chain breaks later: a frame cut short, no trailer, or bytes after the end. A GIF whose signature was overwritten but whose canvas description survives gets this verdict too, as does one whose header sits a little way into the file.
Not repairable as-is
No header, or a canvas description that cannot be trusted. Without the canvas size and the colour table, the frame data cannot be interpreted, however much of it survives.

What this check does not tell you

The checker does not decompress frames. Corruption inside a frame's data that leaves the block lengths consistent is not seen. In a viewer it shows as a streak of wrong colour from that point in the frame.

A GIF gets one of three verdicts on this page, not four. The in-between result other formats can get does not occur: a GIF either has a usable start or it does not.

Animations up to 256 MiB are read. The GIF rebuilder has the same limit.

If the file is damaged

The assessment is free in DataRecover Pro's Repair tab as it is here; the repair itself needs a license. The engine closes a frame that was cut short, appends the missing trailer, trims what follows it, rebuilds an overwritten signature, and discards whatever sits in front of a header found later in the file.

An animation that lost its end comes back shorter, with the frames that were complete. Frames that were never written are not recreated.

Related guides

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: JPEG · PNG · MP4 and MOV · PDF · Word (.docx) · any supported file