🔍

Image Metadata Extractor

Extract image metadata including EXIF data, dimensions, and colour mode

POST 1 credit /v1/image/extract/metadata
curl -X POST "https://image.toolkitapi.io/v1/image/extract/metadata" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://toolkitapi.io/static/samples/sample-image.png"}'
import httpx

resp = httpx.post(
    "https://image.toolkitapi.io/v1/image/extract/metadata",
    json={"url": "https://toolkitapi.io/static/samples/sample-image.png"},
)
print(resp.json())
const resp = await fetch("https://image.toolkitapi.io/v1/image/extract/metadata", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"url": "https://toolkitapi.io/static/samples/sample-image.png"}),
});
const data = await resp.json();
console.log(data);
# See curl example
Response 200 OK
{
  "format": "jpeg",
  "mode": "RGB",
  "size": {"width": 4032, "height": 3024},
  "megapixels": 12.193,
  "file_size_bytes": 3145728,
  "has_alpha": false,
  "is_animated": false,
  "frames": 1,
  "exif": {
    "Make": "Apple",
    "Model": "iPhone 14 Pro",
    "DateTime": "2024:03:15 14:22:01",
    "ExposureTime": "1/120",
    "FNumber": "1.78",
    "ISOSpeedRatings": "64"
  }
}

Try It Live

Live Demo

Description

Extract image metadata including EXIF data, dimensions, and colour mode

How to Use

1

1. Send a POST request with either a `url` pointing to the image or a base64-encoded `image` field.

2

2. Alternatively, use the GET variant with just a `url` query parameter for quick browser or Zapier integration.

3

3. Check the `exif` object in the response for camera metadata — it will be an empty object if no EXIF data exists.

4

4. Use the `size`, `mode`, and `format` fields to determine the image's technical properties before further processing.

About This Tool

Use the Image Metadata Extractor to pull detailed technical information from any image. It returns EXIF data (camera make, model, GPS, exposure settings), image dimensions, colour mode, file size, and animation info.

This is essential for photography workflows, content management systems, and any application that needs to understand image properties before processing. Provide an image via base64 or URL — the GET variant accepts just a URL for browser-friendly usage.

The endpoint handles all major formats including JPEG, PNG, WebP, GIF, BMP, and TIFF, with robust EXIF parsing that gracefully handles missing or malformed metadata.

Why Use This Tool

Frequently Asked Questions

What EXIF fields are returned?
All standard EXIF tags found in the image are returned as string key-value pairs. Common fields include Make, Model, DateTime, ExposureTime, FNumber, ISOSpeedRatings, GPSInfo, and Software.
What if the image has no EXIF data?
The `exif` field will be an empty object `{}`. PNGs and WebP images typically lack EXIF data, while JPEGs from cameras usually contain extensive metadata.
Is there a file size limit?
Images up to 20 MB are supported. For larger files, consider compressing or resizing before extracting metadata.

Start using Image Metadata Extractor now

Get your free API key and make your first request in under a minute.