Skip to content

Remove Metadata from PDF on Mac

Remove metadata from PDF on Mac with Preview save-as, ExifTool, and GetCompress. Strip author, title, and embedded XMP before sharing contracts and decks.

By Petr Samokhin

Legal sends a redacted contract PDF, but Document Properties still lists the paralegal’s name, your company template path, and the original Word author. Remove metadata from PDF files before external share, e-discovery upload, or public download when hidden fields should not leave your org.

PDF metadata types

PDF files store more than page content. Viewers expose some fields under File → Properties or Get Info.

MetadataWhere it appears
Title, Author, SubjectDocument properties panel
Creator and ProducerExport app and PDF engine
Creation and modification datesProperties and some compliance scans
XMP packetsEmbedded XML for DAM and Adobe workflows
Custom info dictionaryInternal tags from enterprise tools

Embedded JavaScript, attached files, and hidden layers are separate hygiene topics. This guide focuses on standard document metadata and lightweight sanitization before share.

Compliance teams sometimes ask for both metadata removal and embedded image optimization in one pass. Handle image weight first when file size blocks email, then strip author fields before external share.

Metadata removal differs from image compression inside the PDF. See how to compress PDF on Mac when byte size from embedded photos is the main problem.

Privacy and file size

ScenarioWhy metadata matters
Client contractInternal author name reveals staffing
RFP responseProducer string shows unreleased toolchain
Public whitepaperOld Title from draft filename leaks topic
Archive uploadDates conflict with embargo narrative

Stripping tags rarely shrinks a PDF as much as recompressing embedded images, but compliance reviews often require both. Read lossy vs lossless compression when you optimize scanned pages vs vector slides.

Online PDF sanitizers upload the full document. For NDAs, board decks, and unreleased pricing, keep processing local. See are online file compressors safe for what upload actually means.

Remove metadata in Preview

Preview on Mac can produce a cleaner copy for simple files:

  1. Open the PDF in Preview.
  2. Choose File → Export… (not Save on a dirty original).
  3. Save as a new filename in a redacted/ folder.
  4. Open the copy, choose Tools → Show Inspector → More Info when available, and compare fields.

Preview does not guarantee complete XMP removal on every export. Complex PDF from InDesign or enterprise Word may retain packets. Use ExifTool or qpdf when compliance requires proof of stripping.

For image-heavy PDF where metadata is fine but size is not, re-export slides from Keynote at screen quality instead of repeated filter passes.

Strip with ExifTool in Terminal

Install ExifTool through Homebrew:

brew install exiftool
exiftool -PDF:Author= -PDF:Title= -PDF:Subject= -PDF:Keywords= input.pdf

Remove all metadata aggressively:

exiftool -all= -overwrite_original input.pdf

Safer for archives: write a new file:

exiftool -all= -o clean.pdf input.pdf

Verify remaining tags:

exiftool clean.pdf

Batch a folder:

mkdir clean
for f in *.pdf; do exiftool -all= -o "clean/$f" "$f"; done

Ghostscript and qpdf options

qpdf linearizes and can rewrite structure with minimal visual change. Install via Homebrew:

brew install qpdf
qpdf --linearize input.pdf output.pdf

For metadata-focused rewrite, combine with ExifTool after qpdf produces output.pdf.

Ghostscript rewrites PDF during compression passes, which may drop some info dictionary entries:

brew install ghostscript
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH \
  -sOutputFile=clean.pdf input.pdf

Compare one page visually after Ghostscript. Aggressive settings can soft-type on scans. Prefer ExifTool when you must preserve exact rendering.

When slides embed huge photos, compress images inside the PDF separately per how to compress PDF on Mac , then strip metadata on the smaller output.

Slide decks destined for the web often embed PNG screenshots that should become WebP in the HTML version of the same content. See PNG to WebP on Mac when raster figures leave the PDF and enter a site template.

Using GetCompress

GetCompress processes PDF files locally without upload. Useful when legal and marketing folders need both smaller bytes and share-ready copies.

  • Drop contract or deck PDF files and compress embedded images when size is the primary pain.
  • Export sanitized copies through your local workflow before external upload portals.
  • Batch remove metadata from PDF on Mac alongside image optimization when handoffs mix PDF and JPEG attachments.
  • Avoid browser sanitizers that receive full contracts on third-party servers.

GetCompress is not a certified redaction tool for classified content. It fits routine author-field removal and pre-share hygiene. Pair with how to compress images on Mac when source slides are exported as images before PDF merge.

Keep originals/ with full metadata for internal records. Send only clean/ copies externally and log which batch tool produced them for audit trails.

Spot-check Document Properties on one file before you zip the entire packet for the client portal.

Buy GetCompress now for local media compression with reusable presets and no media upload.