How to unlock a pdf to allow text copying
- Step 1Open the unlocker — Load the PDF Unlock tool. qpdf compiles in your browser; the document stays local throughout.
- Step 2Add the copy-restricted PDF — Drop the file in. The file panel confirms its name and size.
- Step 3Enter the password — Type the user or owner password into the single
Enter current passwordfield. It's required — the tool won't run without it. - Step 4Decrypt to clear the copy lock — qpdf runs
--decrypt, validates the password, and rebuilds the file without the encryption dictionary that held the extraction restriction. - Step 5Download the copyable PDF — Save the result — a decrypted PDF where text can be selected and copied.
- Step 6Select and copy, or extract in bulk — Open the copy in any viewer and select text normally. To pull all the text in one shot, run the unlocked file through PDF to Text.
Copy-related permission bits and what unlock does
Text and image copying are both governed by the extract-content bit. Decrypting removes the dictionary, clearing it (and the others) at once.
| Permission bit | Effect when denied | After unlock |
|---|---|---|
| Extract content | Text and images can't be selected/copied | Cleared — copying enabled |
| Extract for accessibility | Screen readers blocked from reading text | Cleared — accessibility extraction allowed |
| Modify | Editing blocked (often set together) | Cleared as well |
| Printing blocked (often set together) | Cleared as well |
When clearing the copy lock actually gives you text
The extraction bit only matters when there is real text on the page. This is the single biggest source of confusion for this use case.
| PDF type | Has selectable text? | After unlock |
|---|---|---|
| Digitally-created PDF (Word, LaTeX, export) | Yes | Text selects and copies |
| Scanned document (image-only pages) | No | Still nothing to copy — run PDF OCR first |
| Scanned PDF with an OCR text layer | Yes (the OCR layer) | OCR text selects and copies |
| Mixed (some text pages, some scans) | Partial | Text pages copy; scan pages need OCR |
Engine and tier facts
What runs and the real limits enforced before processing.
| Aspect | Value |
|---|---|
| Engine | qpdf WebAssembly (~1.3 MiB), in-browser |
| Operation | --decrypt --password=<pw> |
| Password | Required; user OR owner accepted |
| Free tier | 2 MB / 50 pages / 1 file |
| Pro tier | 50 MB / 500 pages / 5 files |
Cookbook
Copy-lock scenarios and exactly what qpdf does. Decryption needs the password; selectable text needs real text on the page.
Can't select text in a born-digital PDF
A report exported from Word that blocks selection. You have the owner password. Unlock to re-enable copying.
Input: whitepaper.pdf — text won't highlight
Action: PDF Unlock, password = owner password
qpdf: --decrypt --password=<owner pw>
Output: whitepaper-unlocked.pdf — text selectable
and copyableUnlock, then extract all text at once
Once copying is enabled, the fastest way to get every word is the dedicated text extractor rather than selecting page by page.
Step 1: PDF Unlock → copyable, decrypted copy
Step 2: PDF to Text on the unlocked file →
full plain-text extraction in one pass
(see /pdf-tools/pdf-to-text)Scanned PDF — copy lock removed but still no text
The trap for this use case. The pages are images; there was never any text to copy. Unlocking the extraction bit changes nothing because there's nothing to extract.
Input: scan.pdf — image-only pages, copy blocked
Action: PDF Unlock with the password → lock cleared
Reality: still nothing to select — pages are pictures
Fix: run PDF OCR to add a text layer first
(see /pdf-tools/pdf-ocr)Wrong password
qpdf validates before decrypting; a mismatch fails cleanly.
Action: run with an incorrect password qpdf: exit code 2 Message: "qpdf could not process this PDF..." Fix: re-check the password (case-sensitive)
No password entered
The field is required; the tool won't try to clear the copy lock without it.
Action: run with the field blank Error: "Enter the owner password." Fix: enter the user or owner password
Edge cases and what actually happens
Scanned (image-only) PDF
By designClearing the extraction bit doesn't create text. If the pages are scanned images there's nothing to select even after unlocking. Run PDF OCR to add a searchable text layer, then copy from the unlocked, OCR'd file.
No password supplied
rejectedThe password field is required. Without it the tool stops with Enter the owner password. It does not attempt to clear the copy restriction or guess the password.
Wrong password
errorqpdf validates the password and exits with code 2 on a mismatch (qpdf could not process this PDF...). Passwords are case-sensitive — re-check before retrying.
Either user or owner password works
Supportedqpdf --decrypt accepts both. If you only know the open password, that decrypts the file and re-enables copying without needing the separate owner password.
Copied text comes out garbled after unlocking
By designIf the PDF uses a non-standard font encoding or custom glyph mapping, copied text can be scrambled even with copying enabled — this is a font-encoding issue, not a permission one. PDF OCR re-derives clean text from the rendered page in that case.
Accessibility extraction was separately blocked
SupportedSome files allow normal copying but block screen-reader extraction via a separate accessibility bit. Decrypting removes the whole dictionary, so both bits clear together and assistive tech can read the text.
DRM-protected document
errorVendor or e-book DRM is not standard PDF encryption. qpdf cannot decrypt it (exit code 2), so the copy lock can't be removed here.
File over the tier limit
blockedA copy-locked file over 2 MB / 50 pages is blocked on the free tier before processing. Pro raises the cap to 50 MB / 500 pages.
Corrupted PDF
errorA damaged structure can make qpdf fail even with the correct password. Run PDF Repair first, then retry the unlock.
Frequently asked questions
Why can't I copy text from some PDFs?
The author set the content-extraction (/P extract) permission bit to deny inside the document's encryption dictionary. It's a soft restriction — the text is in the file, but viewers honour the flag and refuse to copy it. Decrypting the document with its password clears the flag and re-enables copying.
Do I need a password to enable copying?
Yes. This tool decrypts the PDF with qpdf, which requires the password. The single password field is required (blank stops with Enter the owner password.). Either the user (open) or owner (permission) password works — whichever you know.
I unlocked it but still can't select any text — what's wrong?
The PDF is almost certainly a scanned image rather than real text. The extraction bit only governs copying of actual text; if the pages are pictures, there's nothing to select even after unlocking. Run PDF OCR to add a searchable text layer, then copy from the result.
Can I extract all the text at once after unlocking?
Yes. Run the unlocked copy through PDF to Text to pull every word in a single pass, rather than selecting page by page. For scanned pages, OCR them first with PDF OCR.
Does removing the copy restriction change how the PDF looks?
No. qpdf decrypts the existing pages without re-rendering them — fonts, layout, and the underlying text are identical. Only the security layer (and with it the copy lock) is removed.
Is my document uploaded anywhere?
No. qpdf runs as a WebAssembly module entirely in your browser and the decryption happens locally. The copy-locked file is never transmitted to a server. Only an anonymous usage counter is recorded when you're signed in.
Why does copied text come out garbled even after unlocking?
That's a font-encoding problem, not a permission one. Some PDFs use custom glyph mappings or subset fonts without proper Unicode mapping, so the copied bytes don't match the displayed characters. PDF OCR re-derives clean text from the rendered page in that situation.
Will copying for a screen reader also work?
Yes. Some files block accessibility extraction with a separate bit. Decrypting removes the entire encryption dictionary, so both the normal-copy and accessibility-extraction bits clear together, and assistive technology can read the text.
What encryption does the copy lock use?
Whatever the file was encrypted with — RC4 40/128-bit or AES 128/256-bit. qpdf decrypts all of them given the correct password; the copy bit clears the same way regardless of cipher.
I don't have the password — can I still enable copying?
No. This is decryption, not cracking. Without the user or owner password the copy restriction can't be removed. If you own the document, retrieve the password from its author or your records.
How large a file can I process?
Free tier: 2 MB / 50 pages. Pro: 50 MB / 500 pages. Pro + Media: 500 MB / 2,000 pages. Developer: 2 GB / 10,000 pages. One file per run.
Can I re-block copying again afterward?
Yes. After unlocking, use PDF Permission Setter to set a new owner password and disallow copying while leaving other actions (like printing) permitted.
Privacy first
All PDF processing runs locally in your browser using PDF-lib and pdf.js. No file is ever uploaded — only metadata counters are saved for signed-in dashboard stats.