xtract.bot

Strip EXIF (JPEG)

Try it interactively →
POST /api/image-strip-exif

Strip EXIF, IPTC, and XMP metadata from an image. Useful for privacy (removing GPS coordinates, timestamps, camera serial numbers) before sharing photos publicly.

Removes all metadata from an image — EXIF, IPTC, XMP, and colour-profile blocks — and returns the resulting smaller file. Useful for privacy: phone photos contain GPS coordinates, capture timestamps, and camera serial numbers in their EXIF tags. Stripping them before sharing publicly avoids leaking this information. The image content (pixels) is unchanged.

Inputs

NameTypeDefaultDescription
image*fileJPEG bytes.

Response

Modes: binary, json. Cache: yes (24h TTL).

Code samples

Built from the sample example.

# Download or substitute the example input:
#   curl -O https://xtract.bot/examples/image-strip-exif/sample.jpg
IMAGE=$(base64 -w0 < sample.jpg)

curl -X POST https://api.xtract.bot/api/image-strip-exif \
  -H "Content-Type: application/json" \
  -H "Accept: application/octet-stream" \
  -H "X-Account-Id: $XTRACT_ACCOUNT_ID" \
  -H "X-Api-Key: $XTRACT_API_KEY" \
  -d '{
  "image": "'"$IMAGE"'"
}'