Unlock PDF

Make a copy of a PDF that opens without a password, or one that you can print and copy text from again. Add the file, enter its password if it asks for one, and download the unlocked copy. Nothing is redrawn or turned into pictures: the text, fonts, images, links and bookmarks stay exactly as they were, and only the encryption is taken off. This tool does not crack or guess passwords. You need the password, or the file has to open without one already, which is the case for many PDFs that only block printing or copying. Please unlock only files that are yours or that you have the right to unlock.

This tool does not crack or guess passwords. You need the password, or the PDF must already open without one. Only unlock files you own or have the right to unlock.

How to remove a PDF password

  1. Drop a PDF into the box above, or click it to choose one.Tap the box above and choose a PDF. The file is opened on your device and nothing is uploaded.
  2. Hanji checks the file. If it is not encrypted, you are told so and there is nothing more to do.
  3. If a password is needed to open the file, type it in (press Show to check what you typed) and press Unlock PDF. If the file opens without a password but blocks printing or copying, press Remove restrictions instead.
  4. ClickTap Download unlocked PDF. The copy is saved with “-unlocked” added to the name, and your original file is untouched.

Good to know

  • If a password is refused, check the small things first: Caps Lock, the keyboard language (a Korean or Japanese input mode is easy to leave on) and a space at the end. Press Show to see exactly what you typed.
  • A PDF can have two passwords. The one that opens the file is the user password, and the owner password sets the permissions. The owner password opens the file as well, so if you have it, it works here too.
  • Statements, payslips and invoices sent by email are often protected with a password the sender describes in the message, such as a date of birth. Look for that email before assuming the file is lost.
  • The unlocked copy is no longer protected. If it holds personal or financial details, keep it somewhere safe and delete it when you are finished.
  • The whole file is held in your device’s memory while it is processed. Very large PDFs can fail on an older phone; a computer copes better.

How PDF protection works

How PDF passwords and permissions work

A PDF can carry two passwords. The user password is needed to open the file: the content is encrypted with a key derived from it, with RC4 in older files and AES in newer ones. The owner password sets permissions, flags that say whether printing, copying text or editing is allowed. When a file has an owner password but no user password, it opens for everyone, because the content is encrypted with a key that follows from an empty user password, and the permissions are honoured by well-behaved PDF software rather than enforced by the encryption. That is why such a file can be unlocked without any password, while a file that needs a user password cannot be read at all without it. Hanji uses qpdf to decrypt the data and write the file again without the encryption entries, and leaves page content alone.

PDF

PDF (Portable Document Format) looks the same on every device and printer, which is why it is the standard for documents, forms and scans. A PDF can hold text, vector graphics and images, and several pages in one file.

Frequently asked questions

I forgot the password. Can you recover it?

No. This tool does not crack, guess or recover passwords, and there is no way around that for a file whose password you do not have: modern PDF encryption is built so that the content cannot be read without it. What you can do is look for the password where it came from, such as the email that carried the file, a password manager, or the person or company that made the PDF, and ask them for an unprotected copy. If the PDF only blocks printing or copying and opens without a password, this tool can remove that.

Does unlocking change the text, fonts or quality?

No. Nothing is redrawn, re-compressed or turned into images. The tool removes the encryption and leaves the pages, text, fonts, images, links and bookmarks as they are, so the text stays selectable and searchable. The new file is written out again, so its size can differ a little from the original, and a certificate-based digital signature on the file will no longer validate because the file’s bytes changed.

Which kinds of PDF protection does it handle?

Password protection with RC4 (40-bit and 128-bit) and with AES (128-bit and 256-bit), whether the file needs a password to open or only carries owner restrictions. That covers the protection that common PDF programs apply. Files encrypted for particular certificates or by a rights-management service are not supported, and neither are damaged files.

The PDF opens fine, but I cannot print or copy from it. Why?

The person who made it set an owner password with permissions that forbid printing, copying or editing. Such a file needs no password to open, so you can use Remove restrictions without entering anything. Please do this only for files you are entitled to use that way; the restrictions were set by the author for a reason, and the rules differ by country and by document.

Is my file or my password uploaded?

No. The unlocking runs inside your browser with qpdf, a well-known open-source PDF library compiled to WebAssembly and served from hanji.page itself. Your file and the password you type stay in your device’s memory while the page is open and are never sent anywhere.

Is it free, and does it work on my phone?

It is completely free, with no sign-up and no watermark. It works in current versions of Chrome, Safari, Samsung Internet and other modern browsers, on phones too. The first file you add loads a 1.3 MB engine, which is then reused.

Related tools