Unlock a PDF on Mac: choose the local workflow
macOS gives you two strong local paths when you know the password: Preview for an interactive copy and qpdf for an auditable command-line workflow. A forgotten password is a different branch; first check saved credentials and identify the encryption revision.
Scope
This page is Mac-specific. It does not describe iPhone Files/Preview gestures and does not repeat generic recovery probability content.
Preview: create and verify a separate copy
Open the PDF in Preview and enter the known password. Use Export or the current permissions controls to create the intended copy, giving it a new filename so the encrypted original remains intact.
Apple documents separate open and owner/permissions settings. After export, close Preview, reopen the new file, test the expected prompt behavior, and inspect pages, forms, attachments, and signature status.
qpdf: local command-line decryption
Install qpdf through an approved package source and inspect the file before decrypting. Use a password file or secure input method rather than leaving the secret in shell history.
Create a new output path, record the qpdf version and source hash, and open the result in Preview plus another reader. Command success alone does not prove forms, signatures, or embedded files survived as intended.
Check saved credentials and source history
Search your password manager, secure notes, Mail, Messages, project folders, and the application that created the PDF. Keychain Access may contain related website or application credentials, but macOS does not automatically guarantee that arbitrary PDF passwords were stored there.
Check Time Machine, cloud version history, and an unencrypted source document before starting recovery.
Signed and certificate-protected PDFs
Exporting or decrypting can change signature validation. Preserve the signed original and capture validation details before creating a derivative.
Certificate security requires the recipient private key or authorized identity. qpdf and Preview cannot manufacture a missing certificate credential.
Primary references
Frequently asked questions
Can Preview recover an unknown PDF password?
No. Preview can open or change protection when the required credential is available; it does not search candidate passwords.
Is qpdf processing local?
Yes when run on your Mac against local paths. Protect the password from shell history and verify the output.
Will export preserve a digital signature?
Rewriting may invalidate or remove signature status. Preserve and validate the original before creating a derivative.
Next step
Classify the file locally on the Mac before choosing known-password decryption or recovery.
Check PDF encryption