To get metadata from a photo, you need to access the hidden EXIF data embedded in the image file, which includes camera settings, the date and time the photo was taken, and GPS coordinates.
What is photo metadata and how to get metadata from a photo
Photo metadata is hidden information embedded within image files, providing details about the image itself. The most common type of photo metadata is EXIF (Exchangeable Image File Format), which includes technical details like the date and time the photo was taken, camera model, lens used, and shooting settings (aperture, shutter speed, ISO, focal length, flash usage). Metadata can contain sensitive information, such as GPS coordinates, which pinpoint the exact location where a photo was taken.
How to view photo metadata on Windows
- Right-click the image file in File Explorer.
- Select Properties from the context menu.
- Click the Details tab.
You will see information such as the camera model, date taken, dimensions, aperture, shutter speed, ISO, and more. This method works for JPEG, PNG, TIFF, and most common image formats.
How to view photo metadata on a Mac
Mac offers two built-in methods. To view basic metadata for a file, right-click the image in Finder and select Get Info, then expand the More Info section. For detailed EXIF data, open the image in the Preview app, then go to Tools > Show Inspector (or press Command-I) and click the Exif tab (or i tab). In the Photos app, select a photo, then click the Info button (an encircled i icon) in the toolbar or press Command-I to see details like date, time, device, camera settings, and location.
How to view photo metadata on an iPhone or iPad
- Open a photo in the Photos app.
- Swipe up on the image or tap the Info button (an encircled i icon).
You will see details such as date, time, device, file size, location, and camera settings. You can edit the date, time, or location of a photo directly in the Photos app by tapping Adjust Info after accessing the Info pane. This is especially useful for organizing your phone photos and media collection.
How to view photo metadata on an Android phone
In the Gallery or Google Photos app, open a photo, then swipe up or tap the three-dot menu (⋮) and choose Details or Info (or the i icon). This typically shows basic metadata like date, time, file size, resolution, device model, and sometimes location and camera settings. Google Photos may not display all EXIF data and does not show IPTC data like keywords, although this information remains embedded in the file if downloaded.
Using online EXIF viewers for comprehensive metadata
When built-in tools show limited information, online EXIF viewers like Metadata2Go or Exif Injector allow viewing comprehensive metadata (EXIF, IPTC, XMP) through a web browser without installing software. These tools display all embedded EXIF, IPTC, and XMP data, including camera serial numbers, lens details, GPS coordinates, and editing history. This is the best option when you need the full metadata report that native apps often hide.
Privacy concerns and removing photo metadata
Metadata can contain sensitive GPS coordinates and personal information, such as your exact location when a photo was taken. Before sharing photos online, you can strip this data using built-in operating system tools or dedicated apps. On Windows, you can remove metadata from the Details tab in Properties. On Mac, you can use Preview's Tools menu to export a copy without location data. On iPhone and Android, you can disable location tagging in the camera settings or use the Photos app's Adjust Info feature to remove location before sharing.
Frequently Asked Questions
Can I extract metadata from a photo that has been edited or compressed?
Editing or compressing a photo often strips some or all of its EXIF data. If the metadata has been intentionally removed or overwritten during editing, you may only recover basic file information like dimensions and file size. Online EXIF viewers can still check for any remaining embedded data.
How can I extract metadata from a photo using a programming language?
Python developers can use libraries like Pillow (via the info attribute) or ExifTool (a command-line tool) to extract EXIF data programmatically. Java developers can use the metadata-extractor library, which supports JPEG, TIFF, and WebP formats. These methods are ideal for batch processing large photo collections.
Why would I want to extract metadata from a photo?
Extracting metadata helps photographers analyze and improve their shooting techniques by reviewing camera settings. It also aids in organizing photo collections by date, location, or camera used, and provides valuable evidence for forensic or legal purposes, such as verifying a photo's authenticity or origin.
Is it possible to remove metadata from a photo?
Yes, you can remove metadata using software tools like Exif Pilot, Adobe Photoshop, or built-in operating system features. On Windows, use the Details tab in Properties to remove specific fields. On Mac, Preview allows you to export a copy without location data. This process is called "stripping" or "cleaning" metadata.
Are there privacy and security concerns associated with photo metadata?
Yes, sharing photos online with embedded GPS coordinates can reveal your exact whereabouts. Camera serial numbers and personal details may also be exposed. Always strip location data before posting photos on social media or public websites, and review metadata settings on your phone to disable automatic location tagging.
















