1.  [](/)
2.  [Converters](/converters)
3.  Image to Metadata

media

# How do I extract the metadata from an image?

Read a photo's EXIF, IPTC and XMP metadata on this page: the date taken, GPS location, camera, lens and exposure. The file is read in your browser and never uploaded. The page also covers what no header holds, such as the objects and text in the picture, and how to pull both from a whole library through an API.

## The short answer

A photo carries two kinds of metadata. The first is written by the camera or phone: EXIF fields such as the date taken, GPS coordinates, camera model, lens, exposure and orientation, plus IPTC and XMP fields that editing tools add. The reader on this page shows those fields for a JPEG, PNG or TIFF without uploading it, and so do the macOS Preview inspector, the Windows file Properties dialog and the exiftool command line. The second kind describes what the picture shows, such as the objects, scene, text and dominant colors, and no file header contains it; a vision model has to look at the pixels. This page covers both, for one photo or a library of millions.

Max file size: No set limit; only the metadata is read

Estimated: About a second, in your browser

3 input formats

## Read a photo's metadata here

Runs in your browser. The file stays on your device and nothing is uploaded.

Drop a JPEG, PNG or TIFF here, or choose one from your device.

Choose a file

Loading the reader.

## How It Works

1

Drop a JPEG, PNG or TIFF onto the reader at the top of this page, or choose one. The file stays on your device.

2

The open-source exifr library, running in your browser, parses the EXIF, GPS, IPTC and XMP blocks straight from the file's bytes.

3

The date taken, camera, lens, exposure and location show first. Every other field follows, grouped by the block it came from.

4

Download the full result as JSON.

5

For a whole library, the API code below runs an extractor over every image in a bucket and stores the output as documents you can search.

## Which image metadata approach should I use?

Approach

Best for

Tradeoff

Use when

Embedded metadata parser

Camera data, GPS, copyright fields, timestamps, and rights metadata that already live in the file

Fast and deterministic, but it cannot describe visual content that was never tagged

Use first on every ingest so EXIF, IPTC, and XMP are preserved before any AI enrichment.

Vision API enrichment

Objects, labels, landmarks, OCR, dominant colors, and content-safety fields

Generates useful descriptive metadata, but each provider returns a different schema

Use when the library needs searchable visual attributes and you can normalize provider output.

DAM auto-tagging

Creative teams that need a review UI, permissions, portals, and approval workflows

Operationally easy for marketers, but weaker when developers need custom retrieval behavior

Use when the metadata pipeline is primarily a creative workflow rather than an API product.

Mixpeek managed indexing

Object-storage libraries that need technical metadata, semantic metadata, and retrieval in one index

Requires modeling the library as a namespace and collection instead of one-off file conversion

Use when extracted metadata has to be searchable immediately across images, video, audio, and documents.

## Code Examples

PythoncURL

import os, requests

API = "https://api.mixpeek.com"
H = {"Authorization": f"Bearer {os.environ\['MIXPEEK\_API\_KEY'\]}",
     "X-Namespace": os.environ\["NAMESPACE\_ID"\]}

# 1. a bucket, with a schema that declares the field you will send
bucket = requests.post(f"{API}/v1/buckets", headers=H, json={
    "bucket\_name": "image-inputs",
    "bucket\_schema": {"properties": {"image": {"type": "image"}}},
}).json()

# 2. land the file as an object. the URL goes in data, on the blob
requests.post(f"{API}/v1/buckets/{bucket\['bucket\_id'\]}/objects", headers=H, json={
    "key\_prefix": "run-1",
    "blobs": \[{"property": "image", "type": "image",
               "data": "https://example.com/photo.jpg"}\],
})

# 3. a collection over that bucket, running the extractor
collection = requests.post(f"{API}/v1/collections", headers=H, json={
    "collection\_name": "image-to-metadata",
    "source": {"type": "bucket", "bucket\_ids": \[bucket\["bucket\_id"\]\]},
    "feature\_extractor": {"feature\_extractor\_name": "image\_extractor", "version": "v1"},
}).json()

# 4. run extraction over the bucket
requests.post(f"{API}/v1/buckets/{bucket\['bucket\_id'\]}/batches", headers=H, json={
    "collection\_ids": \[collection\["collection\_id"\]\],
    "auto\_submit": True,
})

# 5. read the output
docs = requests.get(
    f"{API}/v1/collections/{collection\['collection\_id'\]}/documents", headers=H
).json()
print(docs)

## Use Cases

Find out when and where a photo was taken from the EXIF date and GPS fields, and why many photos from social platforms have neither

Sort a folder of thousands of photos by what is in them when the filenames say nothing

Put a map under a photo collection by pulling GPS coordinates out of each file

Check uploads for resolution, orientation and content before they reach a catalog or a model

## Keep Building

[Why do my photos have no date or location?Platforms strip EXIF on upload. Which fields survive, which are gone for good, and what you can still recover from the picture itself.](/guides/photo-has-no-date-or-location-metadata)[Best tools to make image libraries searchableCompare DAMs, vision APIs, and extraction pipelines for this exact workflow.](/curated-lists/best-tools-to-make-image-libraries-searchable)[Best AI image search toolsUse when the metadata layer also needs semantic and similarity search.](/curated-lists/best-ai-image-search-tools)[Best AI metadata extraction toolsUse when images are one content type inside a mixed media and document library.](/curated-lists/best-ai-metadata-extraction-tools)[MVS object-storage vector searchStore and query embeddings on object storage when extraction already runs elsewhere.](/mvs)[PricingCompare managed indexing and MVS tiers for production libraries.](/pricing)[DocumentationAPI reference and quickstarts for building ingestion pipelines.](/docs)

## Sources To Check

[ExifTool metadata reader/writer](https://exiftool.org/)[IPTC Photo Metadata Standard](https://iptc.org/standards/photo-metadata/iptc-standard/)[Google Cloud Vision image properties](https://docs.cloud.google.com/vision/docs/detecting-properties)[Google Cloud Vision pricing](https://cloud.google.com/vision/pricing)[C2PA technical specification](https://c2pa.org/specifications/specifications/2.2/index.html)

### Supported Input Formats

JPEG

PNG

TIFF

### Quick Info

Categorymedia

Max File SizeNo set limit; only the metadata is read

Est. TimeAbout a second, in your browser

Extractor[Universal Extractor](/extractors/universal)

### Processing millions of files?

Run this as a managed pipeline over your whole library, no infrastructure to build or maintain. Talk to us about processing at scale.

[Talk to us](/demo?intent=converter-enterprise)

### Run it over a library

Mixpeek runs this conversion as a pipeline over a whole library in your object storage, with the output landing as queryable documents. The reader on this page handles one file at a time.

Get API KeyRead the Docs

## Frequently Asked Questions

Is my photo uploaded when I use the reader on this page?

How do I see the metadata of a photo for free?

Which image formats does the reader handle?

Why does my photo have no GPS or date in its metadata?

What is the difference between EXIF, IPTC and XMP?

Can software tell what is in an image, not only how it was taken?

How do I extract metadata from thousands of images at once?

Does metadata extraction detect whether an image was edited or AI-generated?

## Related Converters

[

Video

Metadata

### Video to Metadata

Read a video file's technical metadata on this page: duration, frame size, frame rate, codecs, bitrate, and the audio track's sample rate and channels. The file is read in your browser and never uploaded. The page also covers what no header holds, such as the objects and speech in the video, and how to extract both across a library through an API.





](/converters/video-to-metadata)

## Ready to convert image to metadata?

Start using the Mixpeek Image to Metadata in minutes. Sign up for a free API key and follow the documentation to get started.

Try This ConversionBrowse All Converters