How to Remove Metadata from Photos and Files
Nearly every digital file is born with a hidden dossier attached: where it was created, by which device, with which software, and by whom. Removing that metadata is not difficult, but the method matters — some approaches (like renaming a file) do nothing at all, and others strip only part of the data.
What metadata do your files carry?
Metadata is data about the file, stored inside the file itself. The most common types:
- EXIF (Exchangeable Image File Format) — written by cameras and phones into JPEG images: camera make and model, exposure settings, capture time and, on most phones, GPS coordinates.
- XMP (Extensible Metadata Platform) — an XML block added by Adobe products and many editors, holding titles, keywords, ratings and processing history.
- IPTC — press-oriented fields like captions, bylines and copyright, often embedded by photo software.
- PNG text chunks — key-value pairs such as Author, Software, Comment and Creation Time.
- PDF Info and XMP — the document's Title, Author, Creator, Producer and creation dates, plus XML metadata streams.
- Office document properties — author names, company and revision history in Word, Excel and PowerPoint files.
Where each file type hides its data
| File type | Where metadata lives | Typical fields | What basic removal often misses |
|---|---|---|---|
| JPEG | EXIF, XMP and IPTC blocks inside the image file | Camera, lens, exposure, timestamp, GPS | XMP streams — Windows “Remove Properties” can leave them behind |
| PNG | Text chunks (tEXt, iTXt, zTXt) | Author, Software, Comment, Creation Time | All chunks survive renaming; some tools only strip GPS from JPEGs |
| GIF | Comment and application-extension blocks | Software, comments | Rarely inspected at all by built-in OS tools |
| Info dictionary plus embedded XMP streams | Title, Author, Creator, Producer, dates | XMP streams survive most basic editors | |
| Office documents | Document properties (core + extended) | Author, company, revision history | Extended properties and revision authors |
The pattern: the more advanced the metadata format (XMP, extended properties), the more likely basic tools are to leave it behind. If the file matters, verify afterward or use a sanitizer that rebuilds the file entirely.
Why remove metadata before sharing
Because each field is a small clue. GPS coordinates are the most sensitive field in the list: they can resolve to a home address, a workplace, or a child's school, and they survive on almost every phone photo unless location is off or the data is stripped. Camera model can identify a specific device. Timestamps reveal routines. Author strings tie anonymous-looking files to named people. When several files are shared together, these clues combine into a pattern that a recipient — or a scraper — can assemble. We dig deeper into the location side in EXIF and GPS: Why Your Photos Tell People Where You Were.
Removing metadata on Windows and macOS
Windows
- Right-click the file and choose Properties.
- Open the Details tab — you'll see the metadata stored in the file.
- Click Remove Properties and Personal Information.
- Choose “Remove the following properties” or “Create a copy with all possible properties removed”.
This works for many common files, but it doesn't touch every metadata block — embedded XMP streams in JPEGs and PDFs, for example, are often left behind.
macOS
Open the image in Preview, then choose Tools → Show Inspector, select the info tab and use “Remove Location Info” for GPS. For thorough cleanup, a dedicated tool or a local sanitizer is the more reliable route.
Heads-up: right-click removal varies by file type and often skips XMP. If the file matters, verify afterward or use a sanitizer that rebuilds the file entirely.
Removing metadata in your browser (fastest, most private)
Because metadata removal requires rewriting the file, the most reliable approach is a tool that rebuilds the file without its metadata blocks. The File Metadata Sanitizer does exactly that, entirely on your device:
- Open the tool page.
- Drop in up to 25 JPEG, PNG, GIF or PDF files.
- Review the detected metadata, then click Sanitize all files.
- Download each sanitized copy and keep the report of what was removed.
Nothing is uploaded — the page runs the whole process with JavaScript on your computer. That makes it safe even for contracts, ID scans or other sensitive files you'd never want to send to an online service.
How to verify metadata is really gone
- On Windows, open Properties → Details — the fields should be empty.
- On macOS, open Preview → Tools → Show Inspector and check the info tabs.
- In a browser, open the file in a new tab and inspect it with the developer tools.
- Re-run the file through a metadata reader — including the detection step of the File Metadata Sanitizer, which parses files before touching them.
Frequently asked questions
Does renaming a file remove its metadata?
No. Renaming changes only the filename in the file system. Every metadata block inside the file remains.
Do messaging apps strip metadata?
Some re-encode images and drop GPS in the process, but many platforms preserve or re-add metadata. Never assume a chat app cleans your files.
Is removing metadata reversible?
No — once the metadata blocks are removed and the file is saved, the data is gone. Keep your own original copy if you need the metadata later.
