Tutorial · images · Published 2026-08-16 · 4 min read

Remove image EXIF metadata

Remove EXIF metadata from website images: why it matters for privacy and file size, and how to strip it at export, with a tool, or in a pipeline.

Flat editorial illustration showing layered photo frames with a visible file-size meter and a compression bar, grid of thumbnails receding.
Illustration: this article at a glance.

What EXIF is and what it carries

EXIF (Exchangeable Image File Format) is the metadata block a camera or phone writer embeds in a JPEG (and, in a smaller form, several other formats). It holds shutter speed, aperture, ISO, focal length, the lens, and usually the camera model and serial. Modern phones also write GPS coordinates into the file.

Make: Pixel 9
GPS: 52.2053N, 0.1218W
CreateDate: 2026-07-03 10:12:42
Software: Adobe Photoshop

The file size cost is small (a few KB of a multi-MB image), but the privacy cost is real when you publish a personal photo that a visitor downloads or right-clicks and inspects.

Why strip it

Strip it three ways

1. At the source, in the export dialog

Every photo editor (Lightroom, Photoshop, Affinity, Snapseed on mobile) has an export option that removes EXIF. In Lightroom's Export screen, set Metadata: Copyright Only or Remove all metadata and the GPS serial goes away before the file exists.

2. With a one-line tool

exiftool is the direct, scriptable way, and there is no GUI to fight:

exiftool -all= -overwrite_original photo.jpg

This strips everything including GPS, thumbnail, and software; the -overwrite_original removes the backup copy so you do not accidentally serve the untouched original. On a folder of images in one go:

exiftool -all= -r -ext jpg -ext jpeg -overwrite_original ./images

3. In the image pipeline and CMS

When images are processed by a converter (the compression pipeline article sets it up), the re-encode itself drops EXIF, because the output format the pipeline writes retains only the fields you explicitly copy. Add the strip step to the pipeline command so every future upload is clean without a manual step.

In WordPress the behaviour is uneven and worth knowing about:

Design the strip habit

The rule is a pipeline rule: the strip belongs at the point the file is clipped for the web. The format/compression guide is the place the strip habit lives, because a web JPEG and a camera JPEG have nothing in common except the file extension.

Need a website built, fixed, optimised, migrated or replaced?

This technical resource is written by CSMBAC, a small design and development studio. If you would rather hand the problem to a professional, the website service page explains how we build enquiry-ready websites.

Explore website services