PRIVACY8 MIN READ

How to Remove Metadata from Photos Before Sharing

Published

To remove metadata from photos before sharing, re-encode the image through a fresh export rather than trusting a single delete-all button, then verify the result with a metadata viewer. EXIF, IPTC and XMP blocks can hold GPS coordinates, device models and timestamps that stay attached unless you check what was actually cleared, so verification matters as much as the removal step itself.

Why should you remove photo metadata before sharing?

EXIF is a block of key-value pairs stored inside common image formats such as JPEG or PNG. It can include GPS coordinates, the camera or phone model, lens settings and the exact time the photo was taken. None of that is visible in the picture itself, but it travels with the file unless something removes it. When sharing photos, the main privacy risk is location data attached to photos taken at home, at a child's school, or at a workplace you would rather not disclose.

The risk is not theoretical. If a photo embeds latitude and longitude, anyone who downloads the original file and checks its metadata can see where it was taken. Combined with a timestamp, that can reveal your home address, workplace, or daily routine. Metadata is stored in specific segments depending on format: the APP1 marker in JPEG files, the eXIf chunk in PNG, and the EXIF chunk in WebP.

How to check what metadata is hidden in your images

A basic file properties panel usually shows a short summary, not the full set of tags. Use a dedicated metadata viewer or an editing tool's info panel to see EXIF, IPTC and XMP groups separately, since the same photo can carry duplicate or conflicting values across those blocks. GPS data specifically lives in its own EXIF sub-group, so a panel that only lists camera model and date may not surface it at all.

Metadata typeTypical contentWhere it is stored
EXIFCamera model, GPS coordinates, timestamp, orientationEmbedded in JPEG, TIFF, some PNG and RAW files
IPTCCreator name, caption, copyright noticeEmbedded alongside EXIF in supported formats
XMPEditing history, keywords, rights usage termsEmbedded as XML, can duplicate EXIF/IPTC fields
File nameDate and time string set by the camera or phoneOutside the image data, in the file name itself

That last row matters because even after EXIF is stripped, a file name generated by a camera or phone can still contain the exact date and time the photo was taken. Rename the file as part of your sharing workflow if the name itself is sensitive.

For example, say you open a JPEG from a phone camera roll in a metadata viewer and see a GPS Latitude of 51.5074 and a GPS Longitude of -0.1278, along with a timestamp from the previous evening. That combination is enough for someone to identify a specific place at a specific time, so this file needs a clean export before it is shared publicly.

How to remove location and EXIF data on mobile devices

Most phone camera apps let you turn off location tagging in the camera settings before you take the photo, which prevents GPS from being written in the first place. For photos already taken, many phone photo apps offer a share or export option that strips location data for that specific share action without changing the original file. This is useful for a one-off share, but it is not the same as confirming the exported copy is clean; still open the shared file afterward and check it, since share-sheet behavior varies between apps and operating system versions.

On iPhone, you can prevent location data from being written to new photos in the first place by going to Settings, then Privacy and Security, then Location Services, then Camera, and selecting Never. This stops the problem at the source for future photos, though it does not retroactively clean files you already took with location on.

How to strip metadata using desktop tools

On a computer, a metadata editor or an export workflow built for the file type lets you remove chosen tags without guessing. Keep a backup of the original before editing, remove the tags you intend to remove, then reopen the output in a viewer to confirm. Avoid a blanket delete-all on a file you might need later for licensing, since that can also remove orientation, color profile or credit information you actually want to keep.

For existing files, command-line tools give precise control. ExifTool, a widely used command-line application, can strip all metadata from an image with a single command: exiftool -all= filename.jpg. This removes the metadata block entirely rather than just blanking individual fields, which is useful if you want certainty without checking each tag by hand.

Tool-specific limits are worth knowing before you rely on a result. ZipMyImages processes images locally in the browser, so the photos you are cleaning never leave your device. The limits that matter here are about formats rather than volume. For GIFs, processing uses the first frame only, which is not an animation or video export. SVG cleanup removes comments and whitespace, which is not full SVG optimization and does not strip every embedded metadata element from the markup; check the exported SVG if metadata removal from that file matters.

Why re-encoding is the safest way to clear all metadata

Re-encoding an image, for example by drawing it to a canvas and exporting it as a new file, is an effective way to make sure no metadata blocks carry over to the new version, because the new file is built from pixel data rather than copied byte-for-byte. Raster re-encoding of this kind drops metadata as a side effect of the export, but SVG or pass-through files that are not re-encoded can still retain their original data.

One detail trips people up: the EXIF orientation tag does not rotate pixels, it tells a viewer how to rotate the image on display. Deleting that tag without rotating the pixels first can leave the exported photo looking sideways, even though the file itself is technically correct. Check the orientation of the exported image, not just its metadata, before you share it.

Illustrative example, not a measured test: take a JPEG straight from a phone, open it in a viewer to note the GPS and device tags, then re-encode it through an export tool and reopen the result in the same viewer. If the GPS and device fields are gone and the image still displays right-side up with correct colors, the export did what you needed for that file. Repeat the check for each format you rely on, since browser decoding and encoding support varies by format and does not guarantee identical metadata handling across JPEG, PNG, WebP or AVIF.

Choosing a removal method

MethodWhere processing happensBest for
Browser-based re-encoding toolLocally, in the browserQuick batches, no install, JPEG/PNG/WebP
ExifTool commandLocally, on your machinePrecise control, scripting, bulk cleanup
OS camera settingOn device, at capture timePreventing future GPS tagging

How do you verify that metadata has actually been removed?

Do not assume removal worked just because you ran a tool. Re-open the exported file in a metadata viewer and check the same fields you flagged earlier. If GPS Latitude and GPS Longitude are missing or blank, the location data is gone. If the camera make, model, or timestamp fields are also absent, the removal was thorough rather than partial.

Keep in mind that re-encoding changes pixels slightly if the format is lossy, so a JPEG re-exported through a browser tool is not pixel-identical to the original even at a high quality setting; it is visually close, not a byte-for-byte match. If you need a lossless copy with metadata removed, a command-line tool with a dedicated strip option is a better fit than lossy re-encoding.

When should you keep metadata for copyright protection?

Removing metadata can reduce file size slightly, but stripping everything is not always the right call. If you license your photos or need to prove authorship, removing copyright and licensing information can be legally risky in some jurisdictions and can make it harder to assert your rights later. IPTC specifically recommends retaining creator, credit line and copyright notice fields so a photo is not later treated as an orphaned work with no identifiable owner.

A practical approach is to keep two versions: an archival copy with creator and rights fields intact, and a sharing copy with location and device tags removed through re-encoding. Check both with a metadata viewer so you know exactly what each copy contains before it leaves your hands.

  • →Open the file in a metadata viewer and note any GPS or device fields present
  • →Choose a removal method that matches the format and your need for lossless output
  • →Re-check the exported file to confirm the sensitive fields are actually gone
  • →Rename the file if the current name contains a date, place, or personal identifier
  • →Remember that SVGs and some pass-through formats may still carry metadata even after a basic cleanup

Next step: pick the one photo you are about to share, open it in a metadata viewer, note which GPS, device or timestamp fields exist, remove them with a re-encoding export, and reopen the result in the same viewer before you send it.

Ready to optimize your images?

TRY ZIPMYIMAGES FREE →

Related guides