Home › PDF Tools › Protect PDF with Password

Protect PDF with Password

Add an open password to any PDF and encrypt it with AES-256, the strongest standard PDF encryption. You can also restrict printing, copying and editing. The file is encrypted on your own device and never uploaded.

Last updated:

Advertisement
Advertisement

How to use the Protect PDF with Password

  1. Choose your PDF by dropping it into the box or clicking to browse.
  2. Type an open password twice, or press Generate strong password and save it somewhere safe.
  3. Optionally restrict permissions: tick the box, set a permissions password and choose what is allowed.
  4. Press Protect PDF. Encryption takes a second or two.
  5. Download the protected PDF and check it by opening it: your PDF reader will ask for the password.

Open password vs. permissions password

A PDF can carry two different passwords, and this tool lets you set either or both:

PasswordAlso calledWhat it doesStrength
Open passwordUser password, document open passwordNeeded to view the file. Without it the content cannot be decrypted.Strong: protected by AES-256 encryption
Permissions passwordOwner password, master passwordControls printing, copying, editing, commenting and page assembly.Enforced by PDF apps that follow the standard

If you only want to stop casual copying of a document you publish openly, set permissions without an open password. If the content is confidential, always set an open password.

What the encryption covers

This tool uses the PDF standard security handler with AES-256 (encryption dictionary V 5, R 6, crypt filter AESV3), defined in ISO 32000-2 (PDF 2.0). Every content stream, image, font, form field value, annotation and bookmark title is encrypted with a random 256-bit file key, and each string and stream gets its own random initialization vector. The file key itself is wrapped with keys derived from your passwords using the standard's iterated SHA-256/384/512 hash, which makes password guessing slower.

  • The page structure (number of pages, page sizes) stays visible, as in every encrypted PDF.
  • The title, author and other metadata are encrypted too, unless you untick that option to keep them searchable.
  • Digital signatures are invalidated by encryption, so protect the PDF before signing it.

Choosing a good PDF password

Encryption is only as strong as its password. Attackers who get the file can try passwords offline at high speed, so length matters more than complexity:

  • Use at least 12 to 16 random characters, or a passphrase of four or more random words.
  • Avoid names, dates, keyboard patterns and passwords you use elsewhere.
  • Send the password through a different channel than the file, for example the PDF by email and the password by text message or phone.

Frequently asked questions

How do I password protect a PDF for free?

Open the PDF in this tool, type a password in both boxes and press Protect PDF, then download the file. Anyone who opens the new PDF must enter the password. The encryption runs in your browser, so the document is not uploaded anywhere.

How secure is AES-256 PDF encryption?

AES-256 is the strongest encryption defined by the PDF standard (ISO 32000-2) and is not known to be breakable. The weak point is the password: a short or common password can be guessed by trying millions of combinations, so use at least 12 random characters or several random words.

What is the difference between the open password and the permissions password?

The open password (user password) is needed to view the file at all. The permissions password (owner password) controls restrictions such as printing and copying. Someone who opens the file with the open password gets only the permissions you allowed, while the permissions password unlocks everything.

Can someone remove the printing and copying restrictions?

Restrictions are enforced by PDF apps that follow the standard, such as Adobe Acrobat, Chrome and Preview, but they are not as strong as the open password. Anyone who can open the file could use other software to ignore them. To keep a document confidential, always set an open password.

Will the protected PDF open on phones and in Preview?

Yes. AES-256 PDFs open in Adobe Acrobat and Reader (version X and later), Chrome, Edge, Firefox, macOS and iOS Preview, and Android PDF viewers. Very old readers from before 2010 may not support AES-256.

What if I forget the password?

There is no back door. A strong AES-256 password cannot be recovered, so keep a copy of the original unprotected PDF or store the password in a password manager.

Does protecting a PDF change its content or size?

No. Pages, text, images, links and form fields stay exactly the same. The file size usually changes by only a few kilobytes because every part of the file is encrypted rather than recompressed.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Unlock PDFRemove the password and print, copy or edit restrictions from a PDF you have the password for.Redact PDFBlack out names, numbers and any text in a PDF for real: the hidden text is removed, not covered.Watermark PDFStamp a text or logo watermark on PDF pages with custom opacity.PDF Metadata EditorView and edit a PDF's title, author, subject, keywords and dates, or clear them all.Merge PDFCombine several PDF files into one document.Compress PDFReduce PDF file size while keeping it readable.Split PDFExtract pages or split a PDF into separate files.Delete PDF PagesRemove pages from a PDF using a visual thumbnail grid.Rotate PDFRotate one page or all pages of a PDF by 90, 180 or 270 degrees.Add Page Numbers to PDFNumber PDF pages with your choice of position, format and font.Sign PDFDraw, type or upload a signature and place it on any PDF page, free and private.Fill PDF FormFill in PDF form fields online: text boxes, checkboxes, radio buttons and dropdowns.Flatten PDFFlatten PDF form fields and annotations into the page so they can no longer be edited.Grayscale PDFConvert a color PDF to grayscale or pure black and white for printing, right in your browser.PDF ViewerOpen and read PDF files in your browser with zoom, search, thumbnails and fullscreen.PDF Word CounterCount words, characters and lines in a PDF, page by page, with top words and CSV export.Organize PDFReorder, rotate, delete and duplicate PDF pages with drag-and-drop thumbnails.Crop PDFTrim PDF margins by dragging a crop box on the page, for all pages or selected ones.Resize PDFChange PDF page size to A4, Letter, Legal, A3 or custom and scale content to fit.PDF EditorAdd text, whiteout, shapes, images and drawings to any PDF page, then save a new PDF.Compare PDFCompare two PDF files and see added, removed and changed text side by side, page by page.Insert Pages into PDFInsert blank pages or pages from another PDF anywhere in your document, privately in your browser.PDF Page CounterCount the pages of many PDFs at once, with totals, page sizes and a CSV export.Add Header and Footer to PDFAdd header and footer text with page numbers, date and file name to every PDF page.Invert PDF ColorsTurn a PDF into dark mode: invert colors, keep hues or use a night sepia theme for easy reading.PDF N-UpPrint 2, 4, 6, 9 or 16 PDF pages per sheet with your own order, margins and borders.PDF Booklet MakerTurn a PDF into a print-ready folded booklet: pages imposed 2 per sheet in saddle-stitch order.Add Stamp to PDFStamp APPROVED, PAID, DRAFT or custom text with a date onto any PDF page.Remove Blank Pages from PDFFind and delete empty or near-blank pages in a PDF automatically.Add Bookmarks to PDFAdd, edit and nest PDF bookmarks (outline) or auto-generate them from headings, in your browser.Add Margins to PDFAdd white space margins or a binding gutter to PDF pages, enlarging pages or scaling to fit.Alternate Merge PDFInterleave two PDFs page by page, e.g. scanned fronts and backs, into one combined file.Bates Numbering PDFStamp sequential Bates numbers on one or many PDFs, numbered continuously across files.Change PDF Background ColorGive PDF pages a sepia, cream, pastel or custom background color behind the text.Create Fillable PDF FormTurn any PDF into a fillable form: add text fields, checkboxes, radio buttons and dropdowns.Extract Highlights from PDFPull highlighted text and comments out of a PDF with page numbers; export to Markdown, TXT or CSV.Extract Links from PDFList every hyperlink and URL in a PDF with page numbers; copy them or export as CSV.Extract PDF AttachmentsList the files embedded in a PDF and download them one by one or all as a ZIP.Check Register PrintablePrint a blank check register or fill one in online with an automatic running balance.Debt Payoff Tracker PrintableTurn your debts into a printable snowball or avalanche coloring tracker with a payoff date.Time Off Request FormMake a PTO request form with dates, leave type, hours and approval, as a fillable PDF.PDF to Speech ReaderListen to any PDF read aloud with your browser's voices, with speed control and highlighting.Remove Annotations from PDFStrip comments, highlights, sticky notes and drawings from a PDF, with counts per page.Repair PDFFix damaged or corrupted PDF files: rebuild the xref table and recover readable pages.Reverse PDF Page OrderFlip the page order of one or many PDFs in one click, with a thumbnail preview.Split PDF Pages in HalfCut each PDF page into two pages, left/right or top/bottom, ideal for scanned book spreads.Savings Tracker PrintableColor-in savings goal tracker: jar, grid or thermometer for any goal and amount per cell. Print PDF.Book Interior FormatterTurn a manuscript into a print-ready 6x9 (or any trim size) book PDF with gutters, headers and page numbers.Book Spine Width CalculatorSpine width and full cover size with bleed from page count, paper type and trim size.Mail Merge to PDFMerge a {{field}} letter template with CSV or Excel rows into personalized PDFs, combined or zipped.
See all 51 Edit & Organize PDF →