JPEG is the most shared image format in the world, and it is also one of the most talkative. Every photo from a phone or camera carries a block of EXIF data describing the device, the settings and often the location, and many editing tools add their own XMP, IPTC and provenance segments on top. When you share a JPEG, all of that travels with it unless something removes it. This guide explains the marker anatomy of a JPEG, what each segment can reveal, and how to strip it cleanly without re-compressing the image.
JPEG Marker Anatomy: APP0 to APP13
A JPEG file is a stream of segments, each beginning with a marker: two bytes starting with 0xFF followed by a code. The file opens with SOI, the start-of-image marker, and closes with EOI. Between them sit the segments that matter for metadata. APP0 holds the JFIF header with the version and density information. APP1 is the busiest segment: it can hold an EXIF block, an XMP packet, or both, and a single JPEG can contain several APP1 segments. APP2 holds ICC colour profiles and, in some files, extended XMP data. APP13 holds Photoshop IRB data and IPTC records, APP11 can hold a C2PA Content Credentials manifest, and COM holds a plain-text comment.
After the metadata segments come the structural markers: DQT holds the quantization tables, SOF0 describes the frame size and components, DHT holds the Huffman tables, and SOS marks the start of the compressed scan data itself. A cleaner works by walking this segment list, copying the structural and image segments unchanged, and dropping the metadata segments. The order matters, because some software expects APP0 first and APP1 soon after, so a good cleaner preserves the original segment order for everything it keeps.
One detail worth knowing is that EXIF and XMP are different systems that happen to share the APP1 segment. EXIF is a binary TIFF-like structure with fixed tags for camera settings, GPS and timestamps. XMP is an XML packet that can hold almost anything, including IPTC fields, edit history, keywords and references to a C2PA manifest. A cleaner that only removes EXIF and leaves XMP behind has done half the job.
SOI — APP0 (JFIF) — APP1 (EXIF) — APP1 (XMP) — APP2 (ICC) — APP11 (C2PA) — APP13 (IPTC) — COM — DQT — SOF0 — DHT — SOS (scan data) — EOIWhat Metadata Lives in a JPEG
The EXIF block in a typical phone photo is extensive. It records the camera make and model, lens information, focal length, aperture, shutter speed, ISO, exposure compensation, metering mode, flash state, white balance and the date and time the photo was taken. It also records orientation, which is how your phone knows to display a portrait photo upright, and it can include a small embedded thumbnail of the original image, which is a privacy risk of its own: even if you crop the main photo, the thumbnail inside the EXIF block may still show the uncropped original.
The XMP packet adds another layer. It can hold the title, description, keywords, copyright notice, creator name and location fields from the IPTC standard, plus edit history from tools such as Lightroom and Photoshop. The APP13 segment can carry the same IPTC data in its older binary form, and APP11 can carry a signed C2PA manifest recording provenance and AI edits. The COM segment is the simplest of all: a plain-text comment that any software can write, and that sometimes contains a leftover note or a software version string.
Together, these segments can answer questions you never intended to invite: where was this taken, when, with what camera, who edited it, and what did they do to it. That is why JPEG metadata deserves a cleaning pass before every public share.
Why Remove JPEG Metadata
Location is the most urgent reason. A phone photo taken at home embeds GPS coordinates accurate to a few metres, and those coordinates survive uploading to many platforms, messaging apps and email attachments. Sharing a photo of a new baby, a new house or a child's school with the GPS data intact is a privacy mistake that is easy to make and impossible to undo once the file has been downloaded and re-shared.
The second reason is the embedded thumbnail. When you crop a photo to remove something sensitive, the EXIF thumbnail is often left untouched, and anyone who extracts it sees the original framing. This is a classic gotcha that has caught out people who were careful about the visible image but did not know a smaller copy was hiding inside it. Stripping the whole EXIF block removes the thumbnail along with everything else.
The third reason is professional and commercial. Photographers selling prints or stock images may not want camera settings and edit history published alongside their work. Sellers on Etsy and Pinterest who reuse product photos may not want old keywords or descriptions surfacing as platform-generated captions. Cleaning the JPEG gives you a file that contains only the picture, which is all the audience needs.
How to Remove JPEG Metadata
The fastest reliable method is a client-side cleaner that edits the segment list without touching the compressed image data. The MetaRinse AI image cleaner runs entirely in your browser: drop in a JPEG, and it parses the markers, removes the APP1 EXIF and XMP segments, the APP11 C2PA segment, the APP13 IPTC segment and the COM comment, then returns the cleaned file for download. Your photo never leaves your device, which matters when the file contains your location or your family.
The steps are simple:
- Drop your JPEG into the MetaRinse AI image cleaner.
- Check the report to see which segments were removed, including any GPS data or C2PA manifest.
- Download the cleaned JPEG and share that version instead of the original.
On a phone, you can do the same thing from the mobile browser, which is useful because phones are where most JPEGs originate. Some phones also offer a location toggle in the camera or sharing settings that strips GPS when you share, but that only handles location, not the rest of the EXIF block, the XMP packet or the embedded thumbnail. A full cleaning pass covers all of it.
If you are cleaning photos exported from Lightroom, read our guide to removing metadata from Lightroom exports first, because Lightroom's own export settings can reduce what needs cleaning. For PNG screenshots and graphics, which store metadata in chunks rather than segments, see our guide to removing metadata from PNG files.
Cleaning Without Quality Loss
A common worry is that cleaning a JPEG will degrade it, because JPEG is a lossy format and every re-save loses a little quality. That worry applies to editors that decode the image and re-encode it, but a segment-level cleaner does not do that. It copies the compressed scan data byte for byte and only removes the metadata segments around it, so the image data is identical and there is no generational loss at all.
You can verify this yourself. Clean a JPEG, then compare the file sizes: the cleaned file should be smaller by roughly the size of the removed metadata, typically a few kilobytes to a few tens of kilobytes, and the pixel dimensions should be unchanged. Open both files side by side and they will look identical, because they are identical at the pixel level. The only difference is that one of them no longer carries a record of where, when and how it was taken.
The one exception is orientation. EXIF stores an orientation tag that tells viewers how to rotate the image, and some cleaners remove that tag without rotating the pixels, which can make a photo display sideways in older software. A good cleaner handles this by applying the orientation to the pixels before removing the tag, or by preserving the tag when it is the only thing keeping the image upright. If a cleaned photo ever appears rotated, that is the cause, and re-saving it in an editor that applies orientation will fix it.
What JPEG Cleaning Cannot Do
Removing JPEG metadata cannot remove an invisible pixel watermark baked into the image, such as Google SynthID, and it cannot change what an AI detector reads from the picture itself. If a photo was generated or edited by AI, the pixels still carry the traces of that process after cleaning, and a detector that analyses image content will still reach the same conclusion. Metadata cleaning only removes the data stored alongside the pixels.
It also cannot remove a visible watermark, a date stamp burned into the corner of a photo, or any text that is part of the image. Those are pixels, and only editing the photo can change them. And cleaning cannot retroactively protect a file you already shared: once the original has been downloaded, the metadata in that copy is out of your control. The protection works going forward, on every file you clean before you share it.
That limit is also the reason to build the habit. Clean the file before the first share, not after you notice the problem, because the first share is the one that matters. For the broader picture of how provenance data travels with images, our guide to C2PA Content Credentials explains what a manifest records and what removing it does and does not change.

