JPEG Segment Inspector
Drop in a JPEG and see it as the decoder sees it: a stream of 0xFF markers. The tool lists every segment in order with its byte offset, marker code and name, and declared length, and decodes the important ones on-device. It reads the SOF frame header (precision, image width and height, component count and each sampling ratio plus quantisation table selector), every DQT quantisation table, every DHT Huffman table (class, id, number of codes per length), the SOS scan header (component DC/AC Huffman selectors, spectral selection and successive approximation), and a DRI restart interval. It decodes a JFIF APP0 (version, units, pixel density) and reports APP1 Exif, APP2 ICC and text comments. It flags the classic structural problems: a missing SOI at the start or a missing EOI, a wrong 0xFF00 byte-stuffed sequence, a truncated or overrunning segment, and a 16-bit precision it cannot fully summarise. Everything runs locally.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Drop a file here, or browse
Accepts: .jpg,.jpeg,.jpe,.jfif,image/jpeg,image/jpg
Files stay on your device.
Ctrl+V to paste an image
Options
Drop a file above to begin
Your file are processed on this device and never uploaded.
How it works
What it does
Drop in a JPEG and see it as the decoder sees it: a stream of 0xFF markers. The tool lists every segment in order with its byte offset, marker code and name, and declared length, and decodes the important ones on-device. It reads the SOF frame header (precision, image width and height, component count, and each sampling ratio plus quantisation table selector), every DQT quantisation table, every DHT Huffman table (class, id, number of codes per length), the SOS scan header (component DC/AC Huffman selectors, spectral selection and successive approximation), and a DRI restart interval. It also decodes JFIF APP0 (version, units, pixel density) and reports APP1 Exif, APP2 ICC and text comments.
A file that is a list of markers
A JPEG has no single central header. It is a sequence of 0xFF marker segments that each announce their own type and length: SOI starts the stream, SOF describes the frame, DQT and DHT carry the quantisation and Huffman tables, SOS begins the scan, and EOI ends it. Listing these markers in order is the natural way to inspect a JPEG, which is exactly what the tool does.
What the frame and tables hold
The SOF frame header carries the image geometry — precision, width, height and component sampling ratios — plus which quantisation table each component uses. DQT segments hold the 8×8 quantisation values, and DHT segments hold the Huffman code tables that make the compressed data decodable. Because those tables live inside the file, two JPEGs with identical pixels can differ in their tables, and inspecting them shows why file sizes vary.
Metadata and structural problems
Beyond the image data, the tool reports JFIF APP0 (version, units and pixel density), APP1 Exif, APP2 ICC and text comments. It also flags classic structural problems such as a missing SOI at the start, so a file that will not open is usually caught before the first segment is even decoded.
Questions
What is a marker?
A marker is a byte pair beginning with 0xFF that introduces each JPEG segment. Each marker has its own meaning — SOI for start of image, SOF for frame, DQT for quantisation tables, DHT for Huffman tables, SOS for start of scan, EOI for end. The tool walks the file as a list of these markers with their offsets and names.
What are DQT and DHT segments?
DQT holds the quantisation tables that scale coefficients during compression, and DHT holds the Huffman tables used to encode them. They are stored inside the file, which is why the tool can list every table with its class, id and number of codes per length, and why two JPEGs can differ in size even with the same pixels.
What is in APP0, APP1 and APP2?
These are application marker segments. APP0 usually holds JFIF metadata such as version, density units and pixel density; APP1 typically holds Exif camera data; and APP2 often holds an embedded ICC colour profile. The tool decodes APP0 and reports the others by type.
Is my JPEG uploaded anywhere?
No. The marker stream and tables are parsed on-device, so a JPEG can be inspected offline with nothing leaving the browser.
Related tools
See categoryImage Metadata & EXIF Viewer
Inspect image dimensions, file details, and common JPEG EXIF tags.
PNG Chunk Inspector
Parse a PNG into its chunk stream: offsets, lengths, CRCs, critical/ancillary status and decompressed pixel data.
Strip Image Metadata
Remove EXIF, GPS, XMP and IPTC metadata from JPEG, PNG and WebP images losslessly.
Convert Image Format
Convert images between PNG, JPEG, WebP, AVIF and BMP in your browser.