Read EXIF metadata from a JPEG

Read common TIFF and Exif camera tags from a Base64-encoded JPEG APP1 segment.

freeworks offlinenothing uploaded
ToolEXIF Reader
Input
Output

How it works

The decoded JPEG is scanned for an APP1 marker beginning with Exif and two zero bytes. Its embedded TIFF header declares little- or big-endian byte order and IFD offsets; supported ASCII, integer, and rational fields are read only after bounds checks.

  • Only common TIFF and Exif IFD tags are shown; IPTC, XMP, maker notes, thumbnails, and GPS arrays are separate structures and are not claimed as parsed.

Worked example

Read a camera make from a minimal JPEG
Decode an APP1 Exif block containing one TIFF Make tag
Input
											/9j/4QAnRXhpZgAASUkqAAgAAAABAA8BAgAFAAAAGgAAAAAAAABBY21lAP/Z
										
Output
												{
  "tags": {
    "Make": "Acme"
  },
  "tagCount": 1
}
											

When to use this

Photo intake checks camera make and model, privacy reviews inspect capture metadata, and imaging tests verify exposure and pixel-dimension tags.

Edge cases

  • A valid JPEG without an Exif APP1 segment reports that no EXIF block exists.
  • An IFD offset beyond the decoded byte array is rejected as truncated or malformed data.
  • XMP or IPTC in another JPEG marker is not returned as EXIF metadata.

References