{"id":91,"date":"2025-12-24T14:25:08","date_gmt":"2025-12-24T14:25:08","guid":{"rendered":"https:\/\/renamer.io\/blog\/?p=91"},"modified":"2025-12-24T14:25:08","modified_gmt":"2025-12-24T14:25:08","slug":"exiftool-how-to-remove-all-metadata-from-files-safely-completely","status":"publish","type":"post","link":"https:\/\/renamer.io\/blog\/exiftool-how-to-remove-all-metadata-from-files-safely-completely\/","title":{"rendered":"ExifTool: How to Remove All Metadata From Files (Safely + Completely)"},"content":{"rendered":"\n<p>If you&#8217;ve ever posted photos online and wondered what secret details were in it, then you&#8217;re contemplating metadata. The majority of modern-day files, particularly videos and images, are stored with additional information, such as device model, timestamps and edit history, GPS location thumbnails, as well as identifiers that help link the files back to you.<\/p>\n\n\n\n<p>If your aim is simple and straightforward &#8211; get rid of all metadata metadata ExifTool is among the most reliable methods to accomplish this. This guide will show you exactly what commands to use that are used, explains what they accomplish and outlines the most common mistakes that lead to metadata to stay.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What exactly does &#8220;metadata&#8221; means in practice<\/h2>\n\n\n\n<p>Metadata refers to &#8220;data about data.&#8221; In real-world documents, it is typically:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>EXIF EXIF: camera information, lens information, GPS, shutter speed Date taken<\/li>\n\n\n\n<li>XMP editing history tags faces regions, creator information<\/li>\n\n\n\n<li>IPTC captions Keywords, copyright (common in workflows for journalists)<\/li>\n\n\n\n<li>ICC profiles: color management information<\/li>\n\n\n\n<li>Previews or thumbnails embedded in HTML0 tiny versions of the image which may still be contaminated with remnants of the original image.<\/li>\n\n\n\n<li>Metadata of the file system files created and modified times (not contained in the file)<\/li>\n<\/ul>\n\n\n\n<p>When someone says &#8220;remove all metadata,&#8221; they usually mean delete everything in the container for files (EXIF, XMP, IPTC and so on.). ExifTool does this extremely effectively.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Things you need to know prior to stripping metadata<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1.) Always make copies (unless you&#8217;re sure)<\/h3>\n\n\n\n<p>ExifTool is able to modify files. It is useful but it&#8217;s irreversible if commit an error.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.) Metadata removal can limit the functionality<\/h3>\n\n\n\n<p>A few metadata are helpful:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>direction (how the image should be rotated)<\/li>\n\n\n\n<li>color profile (ICC)<\/li>\n\n\n\n<li>timestamps to sort<\/li>\n<\/ul>\n\n\n\n<p>If you delete everything the apps could display colours differently or images could appear to rotate in older viewers. You can remove everything, but it&#8217;s important to know the pros and cons.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3.) &#8220;All metadata&#8221; does not necessarily mean &#8220;anonymous in every possible way&#8221;<\/h3>\n\n\n\n<p>Even if you delete metadata:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The pixels are able to reveal the information (faces reflections, faces, location clues)<\/li>\n\n\n\n<li>the file might still be identified by the content match<\/li>\n\n\n\n<li>cloud platforms can include their own metadata following upload<\/li>\n<\/ul>\n\n\n\n<p>However, removing embedded metadata is a major step to ensure privacy.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installation of ExifTool (quick summary)<\/h2>\n\n\n\n<p>ExifTool is an application for command line. The installation method is dependent on the operating system you are running.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Windows typically you need to download an ExifTool package and then run it from a folder located in PATH<\/li>\n\n\n\n<li>macOS is commonly installed using package managers<\/li>\n\n\n\n<li>Linux is typically accessible via distro repositories<\/li>\n<\/ul>\n\n\n\n<p>After installation it is generally <code>executed by exiftool<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Verify the metadata is present (recommended)<\/h2>\n\n\n\n<p>Before you remove anything, make sure to check the contents of the container:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Exiftool yourfile.jpg<\/code><\/pre>\n\n\n\n<p>If you&#8217;re looking for a more clear overview of the most important metadata groups:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>exiftool -G1 -a -s yourfile.jpg <\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>G1<\/code> displays that the entire group (EXIF, XMP, IPTC and more.)<\/li>\n\n\n\n<li><code>-a<\/code> shows duplicate tags too<\/li>\n\n\n\n<li><code>-s<\/code> utilizes the short output format<\/li>\n<\/ul>\n\n\n\n<p>This is how you can confirm that you have removed the items you wanted to remove.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Take all metadata out of one single file<\/h2>\n\n\n\n<p>The most well-known and efficient method:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>exiftool. All= yourfile.jpg<\/code><\/pre>\n\n\n\n<p>What does it do:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>all=<\/code> removes all metadata tags ExifTool can write or remove in the specified file<\/li>\n<\/ul>\n\n\n\n<p>Important behavior:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>By default, ExifTool creates a backup copy like <code>yourfile.jpg_original<\/code><\/li>\n<\/ul>\n\n\n\n<p>If you&#8217;d like to erase metadata and replace it with your original files (no backup):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>exiftool -all= -overwrite_original yourfile.jpg <\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Eliminate all metadata from the whole folder (batch)<\/h2>\n\n\n\n<p>To delete metadata from each supported file within the folder:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>exiftool -all= -overwrite_original \/path\/to\/folder <\/code><\/pre>\n\n\n\n<p>Include recursion (subfolders as well):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>exiftool -r -all= -overwrite_original \/path\/to\/folder <\/code><\/pre>\n\n\n\n<p>This is the most efficient &#8220;clean everything in this directory&#8221; method.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Remove metadata from certain type of files only<\/h2>\n\n\n\n<p>Sometimes you need only images or videos.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>exiftool -r -ext jpg -ext jpeg -ext png -all= -overwrite_original \/path\/to\/folder <\/code><\/pre>\n\n\n\n<p>For videos:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>exiftool -r \u2013ext mp4 exiftool -ext mov -all= overwrite_original path\/to\/folder<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Maintain a color profile or orientation (optional but beneficial)<\/h2>\n\n\n\n<p>If you remove everything you can end up losing ICC color profiles and orientation information. Some prefer to keep these.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Keep your ICC profile, but eliminate everything else<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>exiftool.all= -tagsfromfile @ -icc_profile overwrite_original yourfile.jpg<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Maintain a sense of direction (rarely required, but occasionally useful)<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>exiftool \u2013 all= -tagsfromfile @ the orientation of your file - overwrite original yourfile.jpg<\/code><\/pre>\n\n\n\n<p>If you&#8217;re looking for the most privacy, then you would not like to keep any. For professional workflows maintaining ICC is a good idea to ensure consistency of color and shades.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Removing GPS data is the only option (if you do not wish to complete wipe)<\/h2>\n\n\n\n<p>If you are only concerned about your location:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>exiftool -gps:all= -overwrite_original yourfile.jpg <\/code><\/pre>\n\n\n\n<p>This takes out GPS fields, but it keeps the remainder.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Verify that metadata is gone<\/h2>\n\n\n\n<p>After stripping, check:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>exiftool -G1 -a -s yourfile.jpg <\/code><\/pre>\n\n\n\n<p>If the output is not empty or close to empty, you have succeeded.<\/p>\n\n\n\n<p>Note: Some formats display minimal information about the container. This is not unusual. The aim is to remove any personal or descriptive data, but not altering the structure of the file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common errors that can leave behind metadata<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Error 1: Forgetting XMP sidecar files<\/h3>\n\n\n\n<p>In certain workflows (Lightroom and professional editing) metadata is saved separately <code>.xmp<\/code> sidecar files in addition to the photo. The removal of metadata in the image will not delete the sidecar file.<\/p>\n\n\n\n<p>Solution: Also remove or edit <code>.xmp<\/code> files if they are present.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Second mistake: Assuming &#8220;remove metadata&#8221; also changes timestamps of the file system<\/h3>\n\n\n\n<p>ExifTool eliminates embedded metadata. Your OS might still display the date and time of creation or modification. These aren&#8217;t always recorded within the file.<\/p>\n\n\n\n<p>If you want to manage timestamps, this is an additional stage (OS-level applications).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Uploading to platforms which re-add metadata<\/h3>\n\n\n\n<p>Certain services will include their own metadata following uploading, or maintain an original copy internal. Make sure you test your process from beginning to end.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Error 4 Don&#8217;t use <code>the -overwrite_original option<\/code> or sharing incorrect file<\/h3>\n\n\n\n<p>ExifTool typically stores backups that end with <code>the initial<\/code>. Sometimes, people upload the backup as well as leak metadata.<\/p>\n\n\n\n<p>Fix:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use <code>-overwrite_original<\/code>, or<\/li>\n\n\n\n<li>It is important to share only the clean file as well as safely delete backups.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Best practice workflows that works for &#8220;clean and share&#8221;<\/h2>\n\n\n\n<p>A simple safe workflow:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Copy files to the &#8220;to-share&#8221; folder<\/li>\n\n\n\n<li>Strip metadata recursively<\/li>\n\n\n\n<li>Verify at a minimum one output file<\/li>\n\n\n\n<li>Share files from the cleaned folder only.<\/li>\n<\/ol>\n\n\n\n<p>Commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>exiftool -r -all= -overwrite_original \/path\/to\/to-share exiftool -G1 -a -s \/path\/to\/to-share\/somefile.jpg <\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">FAQ<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Does ExifTool take metadata off of PNG files?<\/h3>\n\n\n\n<p>Yes, it is possible to remove various kinds of metadata from PNG (like chunks of text) however, PNG metadata is distinct from JPEGs that are heavy on EXIF. Always confirm the metadata using <code>exiftool \u2013G1 \u2013a \u2013s<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Are there ways to use ExifTool delete metadata in PDF documents or documents?<\/h3>\n\n\n\n<p>ExifTool is able to handle a variety of file formats such as PDFs, however &#8220;remove everything&#8221; effectiveness varies according to the format. The exact <code>all=<\/code> strategy is usually effective but you must verify the output and ensure whether the file is still functioning properly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can this decrease the size of files?<\/h3>\n\n\n\n<p>Sometimes, yes. The removal of the embedded thumbnails and previews or large XMP blocks can decrease the size. However, this isn&#8217;t guaranteed.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Do you think <code>all=<\/code> the best choice to protect your privacy?<\/h3>\n\n\n\n<p>For the vast majority of privacy-related situations Yes. It&#8217;s the simplest method that is reliable: eliminate everything ExifTool can find in the container.<\/p>\n\n\n\n<p>If you can tell me the type of file you&#8217;re removing (JPG\/PNG\/MP4\/PDF) and if you&#8217;d like to save ICC colour profiles I&#8217;ll be able to offer the most appropriate commands for your specific situation.<\/p>\n","protected":false},"excerpt":{"rendered":"If you&#8217;ve ever posted photos online and wondered what secret details were in it, then you&#8217;re contemplating metadata.&hellip;\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,3],"tags":[27,28],"class_list":{"0":"post-91","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-software","7":"category-technology","8":"tag-exiftool","9":"tag-metadata"},"_links":{"self":[{"href":"https:\/\/renamer.io\/blog\/wp-json\/wp\/v2\/posts\/91","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/renamer.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/renamer.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/renamer.io\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/renamer.io\/blog\/wp-json\/wp\/v2\/comments?post=91"}],"version-history":[{"count":1,"href":"https:\/\/renamer.io\/blog\/wp-json\/wp\/v2\/posts\/91\/revisions"}],"predecessor-version":[{"id":92,"href":"https:\/\/renamer.io\/blog\/wp-json\/wp\/v2\/posts\/91\/revisions\/92"}],"wp:attachment":[{"href":"https:\/\/renamer.io\/blog\/wp-json\/wp\/v2\/media?parent=91"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/renamer.io\/blog\/wp-json\/wp\/v2\/categories?post=91"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/renamer.io\/blog\/wp-json\/wp\/v2\/tags?post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}