Does Converting a Photo to JPG Remove Its Metadata?

By Thumbnail Grabber

Converting a photo to JPG can remove metadata, but the result depends on the app and its export settings. JPG can still store the camera make, a date, and GPS coordinates. If you’re converting for privacy, remove the fields you don’t want and inspect the final JPG before sharing. If the metadata matters to you, keep the original and compare it with the export.

Two JPG copies of the same landscape illustrate camera, date, and GPS tags kept in one export and removed in the other

What a JPG can still contain

A JPG can carry EXIF, which can store details such as the camera, date, and location. It can also carry XMP, which can include another copy of the location. A source PNG can contain EXIF too. A filename ending in .jpg tells you the intended format, while a metadata viewer can tell you which fields are in the saved file. CIPA’s EXIF overview · W3C’s PNG specification · ExifTool’s metadata guidance

What survived in two JPG exports

We exported one 800 × 500 PNG with a fictitious camera make, date, and GPS coordinates. The source stored its test coordinates in EXIF and XMP. Both outputs were valid JPGs at the same dimensions.

  • Default ImageMagick conversion. On our Windows install, running magick source.png local-default.jpg kept the camera, date, EXIF coordinates, and XMP coordinates.
  • ThumbnailGrabber’s PNG-to-JPG conversion. The Image Converter workflow removed those fields from this sample. We inspected the JPG produced by its local conversion code.

In another export of the same PNG, the XMP coordinates survived even though a check of the EXIF GPS fields came back empty. If you’re converting a photo to JPG to remove location, check for GPS beyond the EXIF panel. ExifTool’s guidance on duplicate and grouped tags

A tagged PNG and the default ImageMagick JPG show the camera, date, GPS and XMP present, while those fields are absent in the site converter JPG
Measured fields in the test PNG and both JPG exports. The dates, camera details, and coordinates are synthetic.

Check the exported JPG before you share it

  1. Save a copy. Keep the original, especially if you need the date taken or camera details for your photo library.
  2. Compare the source and the export. If you use ExifTool, run exiftool -a -G1 -s "original.png" "exported.jpg" and compare the EXIF and XMP values in each file. A file creation or modification date listed under the file system can be different from the embedded date taken.
  3. Verify the file you’ll send. If it still contains a GPS field you want to remove, follow the guide to removing GPS data from a photo. Reopen the cleaned file after any further export and attach that copy by name. ExifTool’s guide to reading image metadata