This page will allow you to explore the different parts
of an existing GIF file. You will be able to explore the
different blocks and can view both the decoded content
as well as the raw bytes for each section.
This particular decoder was written in pure, vanilla javascript.
All decoding happens locally within your browser. This means
you will need a relatively modern browser to run this code.
Choose File From Your Computer
Or Choose A Sample Image...
Type {{description}}Offset{{offset>pnum}}Length{{length>pnum}}
Signature
{{signature}}
Version
{{version}}
Width
{{width}}
Height
{{height}}
Background Index
{{backgroundIndex}}
Global Color Table?
{{hasColorTable}}
Color Table Size
{{colorTableSize}}
Color Resolution
{{colorResolution}}
Sorted Colors?
{{colorSorted}}
Color Count
{{colorCount}}
Disposal
{{disposal}}
User Input?
{{userInput}}
Transparent?
{{transparentFlag}}
Delay Time
{{delayTime}}
Transparent Index
{{transparentIndex}}
Left
{{left}}
Top
{{top}}
Width
{{width}}
Height
{{height}}
Local Color Table?
{{hasColorTable}}
Color Table Size
{{colorTableSize}}
Interlaced?
{{interlaced}}
Color Sorted?
{{colorSorted}}
Reserved
{{reserved}}
LZW Min Code Size
{{lzwmin}}
(Code Unit Count)
{{codeUnitCount}}
(Clear Code)
{{clearCode}}
(End of Info Code)
{{eoiCode}}
(Block Count)
{{blockCount}}
{{_idx}}: #{{.}}
Identifier
{{identifier}}
Code
{{code}}
Decoded
{{decode}}
{{message}}
Byte View
{{offset}}
{{.}}
Byte Count: {{byteLength>pnum}} (Page {{page}} of {{pageCount}})Jump to Page:
Hex
{{hex}}
Decimal
{{dec}}
Block Offset
{{relOffset>pnum}}
File Offset
{{fileOffset>pnum}}
Index
{{index}}
Hex
{{hexColor}}
RGB
{{rgbColor}}
Code Units
Unit
{{codeUnit}}
Byte/Bit Offset
{{byteOffset>pnum}}/{{bitOffset}}
Unit code count: {{codeUnitCount>pnum}}Jump to Unit:
Code Stream
{{offset}}
{{.}}
Unit code stream count: {{codeLength>pnum}} (Page {{page}} of {{pageCount}})Jump to Page:
Code
{{code}}
Code Offset
{{codeOffset>pnum}}
Code Table
Code
Index Sequence
{{code}}
{{colors}}
Unit code table length: {{tableLength}}Jump to code: