Skip to content
PDFLovePDFby CodingMarble

Protect a PDF with a password

Protect PDF online in a few seconds. Choose a password, and the file is encrypted with AES-256 so nobody can open it without that password. Free, with no sign-up and no watermark.

or drop a file here · you can also paste

Sent over an encrypted connection and deleted right after processing.

How to protect a PDF file with a password

  1. 1

    Select your PDF

    Tap Select PDF file or drop the document on the page. One file at a time, up to 100 MB.

  2. 2

    Type a new password

    Enter it in the New password box. It needs at least 4 characters, but longer is much stronger. Write it down somewhere safe first.

  3. 3

    Click Protect PDF

    The file is sent over an encrypted connection, locked with AES-256, and the upload is deleted after your result is delivered.

  4. 4

    Download and share

    Save the protected copy. Send the file one way and the password another way, such as the PDF by email and the password by phone.

Password protect a PDF online before you send it

Email gets forwarded. WhatsApp groups have people you have never met. A phone gets lost with every download still on it. If the PDF holds your Aadhaar or PAN copy, a salary slip, a rent agreement, medical reports or a client's quotation, a password decides who can read it once it leaves your hands.

This page lets you password protect a PDF online without buying or setting up anything. You pick the password and we encrypt the file. From then on, every PDF reader on every device asks for that password before it shows a single page. You can protect a PDF free of charge, as often as you need, with no account and no watermark added to your pages.

Protecting a PDF with a password works on any PDF document: a scan from your phone, an export from a Microsoft Word document, a form you filled in, a 300-page report.

What AES-256 encryption means for your file

To encrypt a PDF with a password means the content is scrambled using a key made from that password. Without it, the file is unreadable noise. AES-256 is the strongest encryption the PDF format offers, and the same family of encryption banks use. So when you encrypt a PDF online here, the weak point is never the maths. It is the password.

The best way to password protect a PDF is a long password

The tool accepts 4 characters, but treat that as a floor. A short word or a birth date can be guessed by a program in minutes. Three or four unrelated words, like mango-river-table-42, are easy for you to type and very hard for anyone else to guess. People ask for the best way to protect a PDF, and it comes down to two habits: a long password, and sending it through a different channel than the file.

A forgotten password can't be recovered

We never store your password, and there is no back door. If you forget it, neither you nor we can open the protected copy. Your original, unprotected file stays on your device, so keep it until you are sure the password is saved in a notebook or a password manager.

Does protecting keep the PDF small?

Yes. Encryption adds only a few kilobytes, so a protected PDF stays as small as the original, and the pages look exactly the same. If a portal has a size limit, compress the PDF first and protect it second, because a locked file can't be compressed later without the password.

Can you protect a PDF from editing and copying?

Many people want a different kind of lock: the file opens for everyone, but nobody can change it or copy from it. Here is an honest picture of what we offer and what we don't.

Protect PDF from editing without a password to open: not offered

This tool adds an open password only. It does not set the separate permission flags that try to protect a PDF from editing while leaving it open to read. We left them out on purpose, because they are weak: a file that opens freely can have those flags stripped in seconds by common tools. An open password is real protection. Someone without it can't view, print, copy or edit the PDF at all, since they never get in. So you can't protect a PDF from editing without a password here, and we would rather say so than sell a false sense of safety.

Protect PDF from copying text: what actually works

If your goal is to protect a PDF from copying, think about who the readers are. For trusted readers, the open password is enough. To protect a PDF from copying text by anyone who opens it, turn the pages into pictures: convert the PDF to JPG, then build a new file with JPG to PDF. With no real text left, there is no copy paste. The trade-off is that the text can't be searched either, and the file gets larger.

  • To discourage reuse, add a watermark with the receiver's name across every page.
  • To protect a PDF from editing and copying of private parts, redact those details so they are removed, not just hidden.
  • For a contract, a signature plus a password-protected copy shows if a changed version turns up later.

Password protect a PDF in Edge, in Chrome or on a Mac

A common surprise: browsers can open a locked PDF, but none of them can create one. There is no menu to password protect a PDF in Edge, and printing to PDF from Chrome makes an unprotected file. Since this protect PDF tool is a website, you can password protect a PDF in Chrome, Edge, Safari or Firefox just by opening it there. Nothing is installed.

To password protect a PDF on a Mac, the same steps work in Safari. On an Android phone or iPhone, pick the file from your Downloads or Files app. After downloading, test it once: a password protected PDF should open online in your browser's viewer, or in any reader app, only after you type the password.

Protect a PDF with a password on OneDrive for the web

Cloud drives share by link and have no option to put a password inside the PDF itself. To protect a PDF with a password on OneDrive for the web, download the file, lock it here, and upload the protected copy in place of the old one. The same goes for Google Drive and Dropbox. Now even if the share link leaks, the document stays closed.

Password protect a PDF free offline, including in Apple Preview

This tool needs an internet connection, because the encryption runs on our server. If you want to know how to protect a PDF file with a password offline, look at the software you already have. Most office suites offer a password option when you export a document as PDF. To password protect a PDF in Apple Preview, open the file, choose Export from the File menu, tick Encrypt and type a password. Both routes let you password protect a PDF free offline, though Preview uses older encryption than the AES-256 applied here.

Password protect a PDF on Windows 11 or Linux

Desktop systems are where people expect a built-in lock and don't find one. Here is what each one actually offers, and how this page fills the gap.

Password protect a PDF on Windows

Windows 11 ships with no tool to password protect a PDF on Windows itself. The Print to PDF option makes a plain file, and the built-in viewer only reads. The quickest way to password protect a PDF on Windows 11 is to open this page in Edge or Chrome, select the file from Downloads or Documents, type a password and click Protect PDF. Nothing is installed, which matters on office computers where you can't add programs. If you write the document yourself in a word processor, you can also set a password in its Save as PDF dialog before the file ever exists.

Password protect a PDF on Linux

On Linux, the same web page works in Firefox or Chromium, so you can password protect a PDF on Linux without adding packages. Offline, the free office suites that ship with most distributions can export a document as an encrypted PDF, and command-line users often have a PDF utility installed that can add an AES password to an existing file. For a finished PDF and no terminal in sight, this page is the shorter route.

Lock a PDF online free after merging, editing or signing

The password should go on last. Every other tool on this site, and most software elsewhere, refuses to open an encrypted file, so do the work first and lock the PDF online free as the final step.

Merge PDFs and password protect the result

People look for an app to merge PDF and password protect it in one go. Here it is two clicks apart. First merge the PDF files, for example the application form, ID proof and salary slips a loan officer wants as one document. Download the merged file, then select it on this page and protect it. One password now guards the whole bundle instead of three separate ones.

Edit, sign and compress before you lock

Fill in the blanks with the PDF editor, sign the PDF if it needs your signature, shrink it if a portal has a size limit, and only then add the password. If you protect it too early, you will find yourself unlocking it again for each change. Keep the unprotected working copy in a safe folder until the document is final.

Removing a password and converting protected PDFs

Locks need to come off too. If you have a password protected PDF, how to remove the password is simple as long as you know it: open our unlock PDF tool, type the password once and download an open copy. That is how you turn a password protected PDF to a normal PDF, for example a bank statement that you are tired of unlocking every month. It is the reverse of this page: password protect a PDF today, and go back to a normal PDF whenever you choose. Going from a protected PDF to an unprotected PDF always needs the current password. We don't crack files.

Converters can't read encrypted files either. There is no direct password protected PDF to Excel converter, and no protect PDF to JPG converter, because the converter would see only scrambled data. Unlock first, then use PDF to Excel or PDF to JPG. And remember that a JPG can't carry a password, so if you were hoping to password protect a PDF to JPG, keep it as a PDF and lock that instead.

Protect PDF: questions and answers

How do I protect a PDF with a password?

Select the PDF on this page, type a password of at least 4 characters in New password and click Protect PDF. Download the locked copy and share it. Anyone who opens it will be asked for the password first. It takes under a minute, and you can protect a PDF with a password free of any sign-up.

Can I password protect a PDF without paid software?

Yes. You can password protect a PDF free on this page, and the protection is the same AES-256 standard that paid desktop programs use. There is no trial period, no page limit and no watermark. The only limit is a file size of 100 MB.

Why can't I password protect a PDF?

The usual reasons: the file already has a password or restrictions, so unlock it first with its current password. Or your PDF viewer simply has no such feature, which is true of all browsers. Or the password you typed is under 4 characters. Here, select the file, enter a longer password and try again.

Why do I get a bad parameter error when I password protect a PDF?

A password protect PDF bad parameter message usually means the file itself is damaged or is not really a PDF, for instance a download that stopped halfway or a file that was renamed from another format. Run it through the Repair PDF tool first, or download a fresh copy from the source, then protect the repaired file. A password with unusual characters can also be the cause, so try plain letters and numbers.

Should I password protect a PDF or put it in a zip file?

Protect the PDF itself. If you password protect a PDF zip file instead, the receiver must unzip it first, which is awkward on phones, and the PDF that comes out is unprotected again and can be forwarded freely. A password inside the PDF travels with the document wherever it goes.

How do I remove a password after I password protect a PDF?

Use the Unlock PDF tool. Select the protected file, type its password and download an open copy. So if you password protect a PDF and later want to remove the lock, you can, as long as you still know the password. Without it, nobody can remove it, including us.

Is it safe to lock a PDF online?

When you lock a PDF online here, the upload travels over HTTPS, the encryption is applied automatically, and the file is deleted right after your result is delivered. Your password is used once and never stored. For extra peace of mind, send the password to your receiver by a different route than the file.

What is an example of a password protected PDF?

A common password protected PDF example is a bank statement sent by email, which opens with something like your customer ID or birth date. Others are e-Aadhaar downloads, salary slips, insurance policies and income tax notices. You can give your own documents the same protection before sending them to a landlord, agent or employer.

Can I protect a PDF using a password and still edit it later?

Yes. After you protect a PDF using a password, you can open it with that password and keep working. Most editors and converters will ask you to unlock the file first, so the simple route is to keep your unprotected original, edit that, and protect the new version again with the same password.

How to stop someone who has the password from sharing my PDF?

You can't fully. Anyone who can open a document can also photograph the screen or pass on the password. A password controls who gets in, not what they do next. For sensitive papers, share with fewer people, watermark each copy with the receiver's name, and redact details that a given reader does not need.

Can I password protect a PDF on Windows 11 without extra software?

Yes, through this page. Windows 11 has no built-in option to add a password to an existing PDF, but any browser on it can open this tool. Select the file, type a password and download the locked copy. If you are writing the document yourself, your word processor's export dialog can usually add a password too.

Can I protect a PDF online with a password on my phone?

Yes. To protect a PDF online with a password from a phone, open this page in Chrome or Safari, select the file from your storage, type the password and tap Protect PDF. The locked PDF file saves to your Downloads, ready to attach in WhatsApp, Gmail or a job portal. You can protect a PDF online free on mobile, just as on a computer.

More PDF tools you might need