How to Remove Hidden Data from Files

Updated December 12, 2025 | 10 min read

Hidden data in files—metadata, EXIF information, edit history, GPS coordinates, and more—can reveal sensitive personal information when you share documents, photos, or videos. This comprehensive guide shows you exactly how to remove all hidden data from every file type across all platforms.

Privacy Critical:
Before sharing any file publicly or with untrusted parties, always remove metadata. It can reveal your name, location, device information, and editing history.

Why Remove Hidden Data?

  • Privacy protection: Prevent exposure of personal information
  • Security: Hide device IDs and network information
  • Anonymity: Post files without revealing identity
  • Professional: Remove internal comments and revisions
  • Legal compliance: Meet GDPR and privacy regulations
  • Reduce file size: Remove unnecessary embedded data

Learn more about metadata as personal data under privacy laws.

Remove Hidden Data from Photos

WindowsMethod 1: File Properties

Step-by-Step:
  1. Right-click the photo file
  2. Select Properties
  3. Click the Details tab
  4. At the bottom, click "Remove Properties and Personal Information"
  5. Choose "Create a copy with all possible properties removed" (safer) or "Remove the following properties from this file"
  6. If removing selectively, check all boxes or specific metadata fields
  7. Click OK
Batch Processing:
Select multiple photos, right-click, and follow the same steps to remove metadata from many files at once.

MacMethod 1: Preview

Step-by-Step:
  1. Open photo in Preview
  2. Go to Tools → Show Inspector (or press ⌘I)
  3. Click the GPS or EXIF tab
  4. Click "Remove Location Info" for GPS data
  5. For complete removal, export the image: File → Export
  6. In export dialog, uncheck "Include GPS info" and other metadata options
  7. Save as new file

MacMethod 2: ImageOptim (Recommended)

Installation & Use:
  1. Download ImageOptim from imageoptim.com (free)
  2. Install and open the application
  3. Drag photos into ImageOptim window
  4. It automatically strips EXIF/metadata and optimizes file size
  5. Original files are replaced (make backups first)

Command LineExifTool (All Platforms)

Installation:

Mac: brew install exiftool

Linux: sudo apt install libimage-exiftool-perl

Windows: Download from exiftool.org

Usage:

Remove all metadata from single file:

exiftool -all= photo.jpg

Batch process all JPGs in folder:

exiftool -all= *.jpg

Process recursively in all subdirectories:

exiftool -r -all= /path/to/folder

iPhone/iPadiOS Methods

  • Built-in removal: Use Shortcuts app to create metadata removal workflow
  • Third-party apps: Metapho, Exif Viewer, ViewExif
  • Screenshot method: Take screenshot of photo (loses quality but removes all metadata)
  • Share without location: Some apps allow sharing without EXIF

AndroidAndroid Methods

  • Photo Metadata Remover: Free app, batch processing
  • Scrambled Exif: Removes EXIF before sharing
  • Google Photos: Strips some metadata when sharing via link

Detailed guide: Understanding EXIF data in photos.

Remove Hidden Data from PDFs

Adobe AcrobatFull Version

Step-by-Step:
  1. Open PDF in Adobe Acrobat Pro
  2. Go to File → Properties
  3. Clear author, title, subject, keywords, and other fields
  4. Click OK
  5. Then go to Tools → Redact
  6. Click "Remove Hidden Information"
  7. Check all boxes (metadata, annotations, attachments, etc.)
  8. Click Remove
  9. Save the file

Free OnlinePDF Metadata Removal

  • PDF24 Tools: tools.pdf24.org/en/metadata
  • iLovePDF: ilovepdf.com/remove-metadata-pdf
  • Sejda: sejda.com/pdf-metadata
Online Tool Caution:
Only use online tools for non-sensitive documents. Files are uploaded to third-party servers.

Print-to-PDFUniversal Method

Works on Any Platform:
  1. Open PDF in any reader
  2. Go to Print or press Ctrl+P / ⌘P
  3. Select "Save as PDF" or "Microsoft Print to PDF"
  4. Click Save
  5. The new PDF has fresh metadata (may include current username)
  6. Check and remove new metadata if necessary

Learn about PDF tracking and privacy risks.

Remove Hidden Data from Microsoft Office Files

Word, Excel, PowerPointBuilt-in Inspector

Step-by-Step:
  1. Open document in Office application
  2. Click File → Info
  3. Click "Check for Issues"
  4. Select "Inspect Document"
  5. Ensure all checkboxes are selected:
    • Comments and annotations
    • Document properties and personal information
    • Hidden text
    • Headers, footers, and watermarks
    • Custom XML data
    • Invisible content
  6. Click Inspect
  7. Review results and click "Remove All" for each category
  8. Click Close
  9. Save the document
Track Changes Warning:
"Track Changes" history can reveal all edits, deletions, and author identities. Always accept/reject all changes and turn off tracking before sharing.

Mac OfficeSimilar Process

Mac Office 365 has the same Document Inspector feature under Tools → Protect Document → Remove Personal Information.

LibreOfficeOpen Source Alternative

Step-by-Step:
  1. Open document in LibreOffice
  2. Go to File → Properties
  3. Clear all metadata fields in Description and Custom Properties tabs
  4. Uncheck "Apply user data" option
  5. Go to Edit → Track Changes → Manage Changes
  6. Accept or reject all changes
  7. Save document

Remove Hidden Data from Videos

Video FilesMP4, MOV, AVI

FFmpeg Method (All Platforms):

Install FFmpeg, then run:

ffmpeg -i input.mp4 -map_metadata -1 -c:v copy -c:a copy output.mp4

This copies video/audio streams without re-encoding while stripping all metadata.

GUI ToolsUser-Friendly Options

  • HandBrake: Free video transcoder, strips metadata
  • VLC Media Player: Convert → uncheck metadata options
  • Adobe Premiere Pro: Export without metadata
  • Final Cut Pro: Export settings with metadata removal

More details: GPS data in videos.

Remove Hidden Data from Audio Files

MP3, FLAC, M4AAudio Metadata

  • MP3Tag (Windows): Free, batch metadata editing/removal
  • Kid3 (Mac/Linux): Audio tag editor
  • iTunes/Music: Select file → Get Info → clear fields
  • Audacity: Import → Export with empty metadata
ExifTool for Audio: exiftool -all= audiofile.mp3

Batch Processing Multiple Files

Bulk OperationsFor Large Quantities

ExifTool - Most Versatile

exiftool -all= -r /path/to/folder

Recursively removes metadata from all supported files.

Windows PowerShell Script

Get-ChildItem -Path "C:\Photos" -Recurse | ForEach-Object {
    $_.Attributes = 'Normal'
}

Mac Automator Workflow

  1. Open Automator
  2. Create new Quick Action
  3. Add "Run Shell Script" action
  4. Paste: for f in "$@"; do exiftool -all= "$f"; done
  5. Save as "Remove Metadata"
  6. Right-click files → Quick Actions → Remove Metadata

Verify Metadata Removal

How to Check if Metadata is Really Gone

Windows

  1. Right-click file → Properties → Details tab
  2. Verify fields are empty or say "Not available"

Mac

  1. Select file and press ⌘I (Get Info)
  2. Check "More Info" section
  3. Or use: mdls filename in Terminal

ExifTool Verification

exiftool filename.jpg

Should show minimal/only essential data.

Online Checkers

  • Exifdata.com
  • Jeffrey's Image Metadata Viewer: exif.regex.info
  • Metapicz.com

Complete File Anonymization

For maximum privacy, beyond just removing metadata:

  • Screenshot/re-capture: Creates entirely new file
  • Format conversion: Convert between file types
  • Re-encoding: Video/audio transcoding removes embedded data
  • OCR for documents: Extract text, create new file
  • Encryption: Secure files in encrypted containers

Full guide: Complete file anonymization.

Automated Solutions

Enterprise/Professional Tools

  • Adobe Experience Manager: Automated metadata policies
  • DAM systems: Digital Asset Management with sanitization
  • DLP solutions: Data Loss Prevention with metadata scrubbing
  • MAM platforms: Media Asset Management automation

Developer Solutions

  • ExifTool library: Perl module for custom scripts
  • Pillow (Python): Image processing with metadata control
  • PyPDF2: Python PDF metadata manipulation
  • FFmpeg API: Programmatic video metadata handling

Platform-Specific Considerations

Social Media Platforms

Many platforms automatically strip metadata:

  • Facebook: Removes EXIF/GPS from uploaded photos
  • Instagram: Strips location and camera data
  • Twitter: Removes most metadata automatically
  • Reddit: No metadata preserved in uploads
Don't Rely on Platform Stripping:
Always remove metadata yourself before uploading. Platform policies can change, and direct message sharing may preserve metadata.

Email Attachments

  • Email itself doesn't strip metadata from attachments
  • Recipients receive files with all original metadata intact
  • Use ZIP encryption for sensitive files (metadata still visible in archive)

Cloud Storage

  • Google Drive: Preserves metadata
  • Dropbox: Keeps original metadata
  • OneDrive: Maintains file properties
  • iCloud: Retains all EXIF data

Best Practices

  1. Default privacy policy: Remove metadata before any sharing
  2. Check before sharing: Always verify metadata is gone
  3. Use dedicated tools: Don't rely on manual editing
  4. Batch process: Establish workflows for efficiency
  5. Educate others: Train family/colleagues on metadata risks
  6. Camera settings: Disable GPS tagging on smartphones
  7. Regular audits: Periodically check shared files
  8. Backups first: Always keep originals before removing metadata

Conclusion

Removing hidden data from files is essential for privacy protection in the digital age. Whether using built-in OS tools, command-line utilities like ExifTool, or online services, make metadata removal a standard practice before sharing any files. The methods outlined above cover all major file types and platforms, ensuring your personal information stays private.

Back to Resources