How Image Metadata Works
A practical guide to image metadata, including EXIF, IPTC, XMP, file dimensions, camera information, GPS coordinates, timestamps, privacy, and metadata removal.
An image file contains more than the visible picture. Depending on the format and how the file was created, it can also contain information about the camera, software, creation time, orientation, location, color profile, copyright, description, and other properties. This additional information is generally called image metadata.
Metadata can be useful for photographers, editors, content management systems, search tools, and automated image pipelines. At the same time, some metadata can contain sensitive information that should not be published. GPS coordinates, device information, timestamps, and personal author information can reveal considerably more about an image than its pixels alone.
Understanding how image metadata works makes it easier to inspect files, preserve useful information, remove unnecessary data, and avoid accidentally exposing information when images are shared or uploaded to the web.
What Is Image Metadata?
Image metadata is structured information associated with an image file. It describes the image, the device or software that created it, technical properties, ownership information, or other contextual details.
The visible image and its metadata are related but conceptually different. A photograph of a street contains the visual pixels showing the street. The same file might also contain the date the photograph was taken, the camera model, lens information, orientation, and possibly the geographic coordinates where it was captured.
Visible content:
Photograph of a landscape
Possible metadata:
Camera model
Capture date
Lens information
GPS coordinates
Image dimensions
Color profileMetadata does not necessarily appear when you open an image in a normal image viewer. Specialized software or operating-system file information panels can expose it.
Why Do Images Have Metadata?
Metadata exists because applications and devices need a way to store information about an image alongside the image data. A camera can record technical settings when taking a photograph. Editing software can record information about the application used to modify the file. Publishing workflows can attach descriptions, copyright information, or other organizational data.
Metadata can make image libraries easier to organize and search. A photographer can use capture dates, camera models, locations, keywords, and ratings to find particular files without analyzing the image itself.
Web applications can also use metadata. For example, an image-processing service may inspect dimensions and orientation automatically before generating thumbnails or responsive versions.
Common Types of Image Metadata
There is no single universal metadata system used by every image format. Several metadata standards and conventions are common in digital photography and image workflows.
| Metadata type | Typical information |
|---|---|
| EXIF | Camera settings, capture time, orientation, lens, GPS and device information |
| IPTC | Description, creator, copyright, keywords and publishing information |
| XMP | Extensible metadata such as editing, descriptive and workflow information |
| ICC profile | Information used for color management |
| File metadata | Format-specific technical properties such as dimensions and encoding details |
What Is EXIF?
EXIF stands for Exchangeable Image File Format. It is a widely used metadata specification associated particularly with digital photographs. Cameras and smartphones can automatically record EXIF information when an image is captured.
EXIF can contain technical information such as camera manufacturer, camera model, exposure time, aperture, ISO sensitivity, focal length, flash status, image orientation, and capture date. Depending on the device and settings, it can also contain GPS information.
Camera Make: Example Camera Co.
Camera Model: Example X100
Exposure Time: 1/250 s
F-Number: f/2.8
ISO: 200
Focal Length: 35 mm
Date Taken: 2026-09-26 14:32:10Not every image contains every EXIF field. The available information depends on the device, application, image format, and processing history.
EXIF GPS Data
GPS metadata can be one of the most privacy-sensitive types of image information. A smartphone or camera with location services enabled may store latitude and longitude coordinates in the image's metadata.
The coordinates may reveal where a photograph was taken, sometimes with considerable precision. If an image is uploaded publicly without removing this information, someone who downloads the original file may potentially inspect its GPS metadata.
What Is IPTC?
IPTC metadata is commonly used in professional photography, publishing, journalism, and digital asset management. It can contain information describing the image and its ownership or publishing context.
Typical fields include the creator, copyright notice, headline, description, keywords, location information, and other editorial data. Unlike EXIF, which is strongly associated with camera-generated technical information, IPTC is often used for descriptive and publishing metadata.
IPTC data can be valuable when images move through editorial workflows because it allows important descriptive and rights information to remain attached to the asset.
What Is XMP?
XMP stands for Extensible Metadata Platform. It is a metadata framework developed by Adobe and designed to store extensible information about digital assets.
XMP can contain descriptive information, editing history, keywords, ratings, copyright information, and application-specific data. It is designed to be extensible, so software can add metadata fields without requiring a completely new metadata system for every possible use case.
XMP can be embedded inside some file formats or stored separately as sidecar data. The exact behavior depends on the application and workflow.
Image Metadata vs Image Dimensions
Image dimensions are often displayed alongside metadata, but they should not be confused with arbitrary descriptive metadata. Width and height are fundamental technical properties of a raster image and are necessary for interpreting its pixel structure.
Width: 3840 px
Height: 2160 px
Color channels: RGB
File format: JPEGA metadata viewer may show these properties together with EXIF, IPTC, XMP, and other information because they are all useful when inspecting an image file.
Where Is Image Metadata Stored?
Metadata is stored according to the image format and metadata system being used. Some formats provide standardized locations or structures for metadata, while others have different capabilities and conventions.
For example, JPEG files can contain EXIF and other metadata in application-specific segments. PNG has its own mechanisms for storing textual and technical information. Modern image formats such as WebP and AVIF can also carry metadata, although the exact support and behavior differ.
The important point is that metadata is not necessarily stored as a separate file. It can be embedded directly into the image file alongside the encoded image data.
Metadata Is Not the Same as File Name Information
A filename such as vacation.jpg is not embedded image metadata in the same sense as EXIF or IPTC. The filename is part of the surrounding filesystem or storage system.
Changing the filename does not necessarily remove metadata embedded inside the image. Conversely, removing EXIF data does not automatically change the filename or other information associated with the file by the operating system.
How Cameras Create Metadata
When a digital camera captures an image, it already knows many technical details about the capture process. The camera can write these values into metadata as it creates the image file.
For example, the camera knows its model, lens, exposure settings, and the time according to its internal clock. If location services or a GPS receiver are available, it may also know the capture location.
This metadata is generated alongside the image and can later be read by photo-management or editing software.
How Image Editors Modify Metadata
Image-editing software can read existing metadata, preserve it, modify it, or create additional metadata when exporting an image. The exact behavior depends on the application and export settings.
For example, editing software may add information about the software used to process the image. It can also change dimensions, orientation, color profiles, copyright fields, or other properties as part of an export operation.
This means that metadata should not be treated as immutable. Processing an image can change its metadata even when the visible content looks similar.
Image Orientation Metadata
Some cameras store an orientation value instead of physically rotating the pixel data. The metadata tells compatible software how the image should be displayed.
For example, a phone may capture an image using the same underlying sensor orientation while recording whether the device was held upright, rotated left, or rotated right. Image viewers can use the orientation metadata to display the photograph correctly.
Metadata and Color Profiles
Color profiles are another important type of information associated with images. An embedded ICC profile can describe how the image's colors should be interpreted by color-managed software.
Removing every piece of metadata without considering color information can therefore change how an image is interpreted. Metadata cleanup should distinguish between unnecessary descriptive information and technical information that affects rendering.
Can Metadata Affect File Size?
Yes. Metadata consumes storage space because it is additional data inside or associated with the image. The amount can range from very small fields to substantial editing histories or embedded previews.
For ordinary web photographs, metadata is usually much smaller than the encoded image itself. Removing it can still be useful for privacy and may provide some size savings, but resizing and image compression generally have a much larger effect on file size.
Some workflows can contain unusually large metadata blocks, so the actual impact should be measured rather than assumed.
Metadata and Privacy
Image metadata can contain information that the person sharing an image did not intend to publish. A photograph may reveal when it was taken, which device captured it, who created it, or where it was captured.
The privacy implications depend on the specific fields present in the file. A generic screenshot with no camera information may contain very little sensitive metadata, while a smartphone photograph can potentially contain a much richer set of technical and location information.
For public uploads, it is useful to establish a deliberate metadata policy instead of assuming that platforms or image editors will always remove sensitive information automatically.
Should You Remove All Image Metadata?
Not necessarily. Metadata can be valuable and sometimes important. Professional photographers may need copyright and creator information. Organizations may use keywords and descriptions to manage assets. Color profiles can affect image interpretation. Orientation information may be required to display the image correctly.
A better approach is to determine which metadata is necessary for the workflow and which information should not be distributed. Public web images often benefit from removing unnecessary personal and device-specific information while preserving metadata that is technically required.
How to Inspect Image Metadata
A metadata viewer can expose the fields embedded in an image file without requiring you to understand the underlying binary structure. This is useful when investigating an unknown image, checking a camera export, or verifying whether sensitive information remains after processing.
When inspecting an image, pay particular attention to capture date, GPS coordinates, camera and device information, software information, author or copyright fields, orientation, color profiles, and image dimensions.
Useful fields to inspect:
Capture date
GPS latitude / longitude
Camera make and model
Lens information
Software
Orientation
Copyright
Author
Image dimensions
Color profileImage Metadata in Different Formats
| Format | Metadata considerations |
|---|---|
| JPEG | Commonly carries EXIF, IPTC and other metadata |
| PNG | Supports textual and technical metadata, with different conventions from JPEG |
| WebP | Can contain metadata depending on the encoding workflow |
| AVIF | Can carry metadata, with support depending on the encoder and processing tools |
| SVG | Metadata can exist as document elements or embedded information rather than camera EXIF |
Metadata support is format-specific. The absence of EXIF fields does not necessarily mean an image contains no metadata at all. A file can contain other technical, descriptive, or application-specific information.
Metadata in SVG
SVG is different from a camera photograph because it is a vector document rather than a typical camera-generated raster image. SVG can still contain metadata, document information, comments, editor-specific data, and other elements.
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 100">
<metadata>
Example document metadata
</metadata>
<rect width="200" height="100" />
</svg>This illustrates an important distinction: metadata is not synonymous with EXIF. EXIF is one metadata system associated primarily with photographic image workflows, while different image formats can carry different kinds of additional information.
Metadata and Base64 Images
Converting an image to Base64 does not inherently remove its metadata. Base64 is an encoding that represents binary data as text. If the original image bytes contain metadata, encoding those bytes as Base64 preserves that data.
Original image bytes
↓
Base64 encoding
↓
Base64 text representationThe important distinction is that Base64 changes the representation of the bytes, not the image's internal structure. A Base64-encoded JPEG can still contain its original EXIF data.
Base64 Does Not Mean Metadata-Free
A common misconception is that converting an image into a data URL or Base64 string somehow strips information from the image. It does not. Unless another processing step explicitly modifies the image, the encoded data represents the same underlying file.
data:image/jpeg;base64,<encoded-image-data>The data URL contains the encoded image file. Any metadata that remains inside that file remains part of the encoded data as well.
Does Resizing Remove Metadata?
Resizing changes the image dimensions, but whether metadata is preserved depends on the software or image-processing pipeline performing the resize.
Some tools preserve metadata by default, some remove selected fields, and others allow explicit control over metadata during export. Therefore, you should not assume that resizing either preserves or removes EXIF information without checking the actual tool.
Does Compression Remove Metadata?
Compression and metadata handling are separate concerns. An image can be compressed while retaining metadata, or an optimization pipeline can compress the image and remove metadata at the same time.
Some optimization tools provide an option to strip metadata during encoding. Others preserve selected fields. The correct behavior depends on the requirements of the application.
Metadata and Web Uploads
When users upload images to a website, the server or image-processing service can decide what happens to metadata. A robust upload pipeline may inspect the file, normalize its orientation, resize it, convert it to another format, and selectively preserve or remove metadata.
This is especially important for services that publish user-generated images. If privacy is a requirement, metadata should be handled intentionally rather than relying on the browser or upload form to remove it.
Upload
Validate file
Read image properties
Normalize orientation if needed
Resize or convert
Apply metadata policy
Store optimized imageMetadata and Content Management Systems
Content management systems often process uploaded images automatically. They may generate thumbnails, resize large files, convert formats, or create multiple responsive variants.
The resulting files may not have the same metadata as the original upload. If metadata matters to the application, the system should define whether it is preserved, transformed, stored separately, or intentionally removed.
Metadata and Search
Metadata can help applications organize and search image collections. Keywords, descriptions, dates, creator information, and other fields can provide structured information that would otherwise need to be stored separately.
However, metadata should not be treated as a replacement for the HTML and application-level information required by a website. For example, meaningful alt text belongs in the appropriate web accessibility mechanism rather than relying on hidden image metadata.
Metadata and Copyright
Copyright and creator information can be stored in image metadata, particularly through systems such as IPTC and XMP. This can help preserve attribution and rights information as an image moves through a professional workflow.
However, metadata should not be considered a guaranteed protection against unauthorized use. Metadata can be edited or removed, and not every application preserves it when processing images.
Common Metadata Mistakes
- Assuming that the visible image is the only information contained in the file.
- Publishing smartphone photographs without checking for GPS metadata.
- Assuming that changing the filename removes embedded metadata.
- Assuming Base64 conversion strips EXIF or other metadata.
- Removing all metadata without considering orientation or color profiles.
- Assuming every image format supports the same metadata standards.
- Assuming that resizing always removes EXIF data.
- Assuming that compression automatically removes metadata.
- Relying on metadata as a replacement for HTML alt text or other accessibility information.
- Assuming that metadata will always survive image conversion or editing.
A Practical Metadata Workflow
For personal photographs, begin by inspecting the original file and identifying which fields are present. Pay particular attention to location, timestamps, device information, and other details that may be sensitive when publishing the image.
For web applications, define a metadata policy before implementing image processing. Decide which fields need to be preserved, which should be removed, and whether any information needs to be normalized or stored separately.
After processing, inspect the generated file rather than assuming that the pipeline behaved as intended. This is especially important when the application performs format conversion, resizing, optimization, or orientation normalization.
Metadata vs Image Data
| Information | Part of visible image? | Can be metadata? |
|---|---|---|
| Pixel colors | Yes | No, these are the image data itself |
| Image dimensions | No | Stored as technical image information |
| Camera model | No | Yes |
| GPS coordinates | No | Yes |
| Capture date | No | Yes |
| Copyright information | No | Yes |
| Color profile | No | Yes |
How Metadata Changes During Conversion
Converting an image from one format to another can change or discard metadata. The target format may not support the same metadata structures, and the conversion tool may intentionally strip information.
For example, converting a camera JPEG into another web format may preserve some descriptive fields while dropping camera-specific data. The exact result depends on the encoder and conversion options.
Metadata and Image Security
Metadata itself is not automatically malicious, but uploaded files should still be treated as untrusted input. Image-processing libraries need to parse complex file structures, and applications should validate uploads and use maintained image-processing software.
Metadata can also become part of an information-disclosure problem. A publicly accessible image containing internal software information, private location data, or personal identifiers can reveal information that was not intended for public distribution.
How to Decide What Metadata to Keep
A useful way to decide is to classify metadata by purpose. Technical fields may be required to display or process the image correctly. Descriptive fields may help organize or search assets. Rights information may be useful for attribution and ownership workflows. Privacy-sensitive fields may need to be removed before public distribution.
| Metadata category | Typical decision |
|---|---|
| Orientation | Usually preserve or normalize into pixel data |
| Color profile | Preserve when needed for correct color interpretation |
| GPS location | Often remove before public sharing |
| Camera details | Keep only when useful to the workflow |
| Copyright | Preserve when required by the publishing workflow |
| Editing software | Often unnecessary for public delivery |
| Keywords and description | Preserve when used for asset management |
Frequently Asked Questions
What is image metadata?
Image metadata is information associated with an image file that describes technical properties, capture details, authorship, location, editing history, color information, or other characteristics beyond the visible image itself.
What is EXIF metadata?
EXIF is a widely used metadata specification associated especially with digital photographs. It can contain camera settings, capture time, orientation, lens information, device details, and potentially GPS coordinates.
Can image metadata contain GPS coordinates?
Yes. Cameras and smartphones with location information available can store geographic coordinates in EXIF metadata. The exact fields depend on the device and capture settings.
Does converting an image to Base64 remove metadata?
No. Base64 is an encoding of the original bytes. If the image contains EXIF or other metadata, that information remains part of the encoded data unless another processing step removes it.
Does resizing an image remove EXIF data?
Not necessarily. Metadata behavior depends on the image-processing software and its export settings. Some tools preserve metadata while others remove some or all of it.
Should I remove EXIF data before uploading an image?
It depends on the use case. For public photographs, removing unnecessary privacy-sensitive information such as GPS coordinates can be appropriate. Technical fields such as orientation or color information may need to be preserved or normalized instead.
Can metadata increase image file size?
Yes. Metadata occupies space in or alongside the image file. In most ordinary photographs it is much smaller than the encoded image itself, but large metadata blocks can contribute noticeably to file size.
Helpful Image Metadata Tools
Image Metadata Viewer and EXIF Viewer are useful for inspecting the information embedded in image files, including technical and camera-related fields. Image Dimension Checker can verify the image's pixel dimensions separately from descriptive metadata. When working with Base64-encoded images, Image to Base64 Converter and Base64 to Image Converter can help inspect the relationship between an image file and its encoded representation.
Conclusion
Image metadata is additional information associated with an image file. It can describe how, when, where, and with which equipment an image was created, as well as information about authorship, copyright, editing, color management, and asset organization.
EXIF, IPTC, and XMP serve different purposes, and image formats have different ways of storing or supporting metadata. Metadata can be useful in professional workflows, but it can also expose sensitive information such as GPS coordinates when files are shared publicly.
The safest approach is not to remove metadata blindly. Inspect the file, understand which fields are present, define which information the application actually needs, and deliberately preserve or remove metadata during image processing and publishing.