stakritoolsstakritools
Developer
  • Base64 Encoder/Decoder
  • Color Picker & Converter
  • CSS Minifier
  • CSV to JSON Converter
  • Hash Generator
  • HTML Encoder/Decoder
  • HTML Minifier
  • JS Minifier
  • JSON Formatter & Validator
  • JSON to CSV Converter
  • JWT Decoder
  • Markdown Editor
  • Password Generator
  • Regex Tester
  • SQL Formatter
  • Unix Timestamp Converter
  • URL Encoder/Decoder
  • UUID Generator
  • XML Formatter
  • YAML Formatter
View all
Image
  • Base64 to Image
  • Favicon Generator
  • Image Compressor
  • Image Cropper
  • Image Flipper
  • Image Resizer
  • Image Rotator
  • Image to Base64
  • JPG to PNG Converter
  • PNG to JPG Converter
  • QR Code Generator
  • SVG to PNG Converter
  • Watermark Image
  • WebP Converter
View all
SEO
  • FAQ Schema Generator
  • Meta Description Generator
  • Open Graph Generator
  • Robots.txt Generator
  • SEO Site Auditor
  • SERP Preview
  • Sitemap Generator
  • Slug Generator
  • Twitter Card Generator
View all
Text
  • Case Converter
  • Character Counter
  • Find and Replace
  • Lorem Ipsum Generator
  • Random Text Generator
  • Remove Duplicate Lines
  • Remove Extra Spaces
  • Text Diff Checker
  • Word Counter
View all
Calculator
  • Age Calculator
  • BMI Calculator
  • Compound Interest Calculator
  • Currency Converter
  • Date Difference Calculator
  • Discount Calculator
  • EMI Calculator
  • GST Calculator
  • Income Tax Calculator
  • Loan Calculator
  • Percentage Calculator
  • SIP Calculator
  • Time Zone Converter
  • Tip Calculator
  • Unit Converter
View all
Astrology
  • Birth Chart Calculator
  • Chinese Zodiac Calculator
  • Moon Phase Calendar
  • Numerology Calculator
  • Tarot Card of the Day
  • Zodiac Compatibility Checker
View all
PDF
  • Compress PDF
  • Image to PDF
  • Merge PDF
  • PDF to Image
  • PDF to Word
  • Protect PDF
  • Rotate PDF
  • Split PDF
  • Unlock PDF
  • Word to PDF
View all
Blog
stakritoolsstakritools

205+ free, browser-based tools for developers, marketers, and creators — no sign-up, no clutter.

Developer Tools

  • Base64 Encoder/Decoder
  • Color Picker & Converter
  • CSS Minifier
  • CSV to JSON Converter
  • Hash Generator
  • HTML Encoder/Decoder
  • HTML Minifier
  • JS Minifier
  • JSON Formatter & Validator
  • JSON to CSV Converter
  • JWT Decoder
  • Markdown Editor
  • Password Generator
  • Regex Tester
  • SQL Formatter
  • Unix Timestamp Converter
  • URL Encoder/Decoder
  • UUID Generator
  • XML Formatter
  • YAML Formatter

PDF Tools

  • Compress PDF
  • Image to PDF
  • Merge PDF
  • PDF to Image
  • PDF to Word
  • Protect PDF
  • Rotate PDF
  • Split PDF
  • Unlock PDF
  • Word to PDF

Image Tools

  • Base64 to Image
  • Favicon Generator
  • Image Compressor
  • Image Cropper
  • Image Flipper
  • Image Resizer
  • Image Rotator
  • Image to Base64
  • JPG to PNG Converter
  • PNG to JPG Converter
  • QR Code Generator
  • SVG to PNG Converter
  • Watermark Image
  • WebP Converter

SEO Tools

  • FAQ Schema Generator
  • Meta Description Generator
  • Open Graph Generator
  • Robots.txt Generator
  • SEO Site Auditor
  • SERP Preview
  • Sitemap Generator
  • Slug Generator
  • Twitter Card Generator

Text Tools

  • Case Converter
  • Character Counter
  • Find and Replace
  • Lorem Ipsum Generator
  • Random Text Generator
  • Remove Duplicate Lines
  • Remove Extra Spaces
  • Text Diff Checker
  • Word Counter

Calculator Tools

  • Age Calculator
  • BMI Calculator
  • Compound Interest Calculator
  • Currency Converter
  • Date Difference Calculator
  • Discount Calculator
  • EMI Calculator
  • GST Calculator
  • Income Tax Calculator
  • Loan Calculator
  • Percentage Calculator
  • SIP Calculator
  • Time Zone Converter
  • Tip Calculator
  • Unit Converter

Company

  • Blog
  • About
  • Privacy Policy
  • Contact
© 2026 stakritools. All rights reserved.
  1. Home
  2. PDF
  3. Protect PDF
PDF

Protect PDF

Add a password and permission restrictions to a PDF right in your browser — set an open password, an owner password, and control printing, copying, and editing. Nothing, including your passwords, is ever uploaded to a server.

Try:

Everything happens in your browser — your PDF and passwords are never uploaded to a server.

Drag and drop a PDF file here, or click below to browse.

How To Use

  1. 1.Drag and drop a PDF file onto the upload area, or click it to browse your device.
  2. 2.Set a user password if you want the file to require a password just to open it — leave it blank if anyone should be able to view the file freely.
  3. 3.Set an owner password if you want a separate password required to remove restrictions or change permissions — leave it blank to use the user password for this too.
  4. 4.Toggle Allow Printing, Allow Copying, and Allow Editing to control what someone can do with the file once it's open, independent of whether it requires a password to open at all.
  5. 5.Click Protect PDF to encrypt the file with your chosen passwords and permissions.
  6. 6.Download the protected PDF — it now requires your password (if you set one) to open, and respects the permissions you chose, in any standards-compliant PDF viewer.

Examples

3-page sample PDF
Loads a small generated PDF so you can try setting passwords and permissions without your own file.

About Protect PDF

Why Protect a PDF?

Not every PDF is meant for unrestricted access. A contract shouldn't be casually editable after both parties have signed it. An internal report might need to circulate freely for reading but shouldn't be easy to copy into a competitor's document. A personal or financial document you're emailing deserves at least a basic password barrier against a wrong recipient or a compromised inbox. Protection gives you a standard, widely-supported way to add exactly that kind of barrier, using a mechanism every PDF reader already understands rather than a proprietary wrapper only your own tool can open.

This comes up constantly in ordinary work: password-gating a document before emailing it to a client, distributing a read-only reference PDF that shouldn't be edited or redistributed piecemeal, or simply adding a password to a personal document — tax records, medical paperwork, financial statements — before storing it somewhere less trusted than your own device.

How PDF Password Protection Works

When you protect a PDF, this tool derives a cryptographic key from your chosen passwords using the PDF specification's published key-derivation algorithm, then uses that key to encrypt the document's text, images, form data, and other content throughout the file. It also computes two special values — often called O and U — that let any standards-compliant PDF reader verify a password is correct without ever storing the password itself anywhere in the file; a reader checks a candidate password by running the same derivation and comparing the result, not by comparing plaintext passwords.

Alongside the password mechanism, a permissions value gets embedded in the file recording exactly which operations (printing, copying, editing) are allowed. Every compliant PDF viewer reads and respects this value once the file is decrypted, which is what makes permission restrictions work consistently across different software rather than being tied to any one application's proprietary behavior.

Choosing Passwords and Permissions Together

Think of the user password and the permission toggles as two independent layers you can combine freely. A user password alone (with all permissions left allowed) is the simplest setup: nobody can even open the file without the password, but once they do, they can do anything with it. An owner password alone, with some permissions turned off, is the opposite: anyone can open and read the file, but printing, copying, or editing are restricted for everyone except whoever knows the owner password. Setting both together — a user password to gate access, an owner password with restricted permissions to limit what's allowed even for people you've given the open password to — gives you the most granular control, useful for something like a confidential draft you're sharing with a reviewer who should be able to read it but not print or forward its contents.

Protection as a Deterrent, Not a Guarantee

It's worth being realistic about what PDF protection actually accomplishes: it's a well-understood, broadly respected convention that stops casual access, printing, or copying by anyone using standard PDF software as intended. It is not equivalent to strong, modern encryption protecting a secret against a determined attacker with specialized tools — the underlying cipher this tool uses (like the classic security handler in general) is considered comparatively weak by current cryptographic standards. For everyday document control — keeping honest people honest, adding a reasonable barrier to accidental or casual access, satisfying an organization's basic 'documents must be password protected before emailing' policy — it's exactly the right tool. For protecting something where a sophisticated, motivated attacker is a real threat, treat PDF password protection as one layer among several, not a complete solution on its own.

FAQs

No. Every part of protecting a PDF — reading the file, deriving encryption keys from your passwords, and encrypting the document — happens entirely inside your browser using a from-scratch JavaScript implementation of the PDF password standard, with no server-side component involved at any point. Your passwords never leave your device, since they're only ever used locally, in memory, to compute encryption keys. You can verify this yourself by opening your browser's developer tools and watching the network tab while you protect a file — you won't see any outgoing requests carrying your PDF or your passwords, and protection still works even without an internet connection once the page has loaded.

The user password (sometimes called the 'open' password) is required just to view the document — leave it blank and anyone can open and read the file freely, with no prompt at all. The owner password (sometimes called the 'permissions' password) is a separate password that controls who can remove restrictions or change permissions on the file; it doesn't have to match the user password, and you can set one without the other. A common setup is a user password with no owner password (a straightforward 'you need this password to open the file at all'), or an owner password with no user password (anyone can open and read the file, but the printing/copying/editing restrictions you set can only be lifted by someone who knows the owner password). Setting both gives you two independent levels of control.

Allow Printing controls whether a PDF viewer will let someone print the document at all. Allow Copying controls whether text and images can be selected and copied out of the file — note that text extraction for accessibility tools like screen readers is deliberately kept independent of this setting and always remains available, matching the PDF specification's own guidance, so restricting copying doesn't interfere with accessibility. Allow Editing controls a bundle of content-modification permissions together — changing the document's contents, adding or editing annotations and form fields, and reordering, inserting, or deleting pages. Turning any of these off doesn't require a password to open the file (that's what the user password controls); it restricts what a compliant PDF viewer will permit once the file is open, and only someone with the owner password can lift those restrictions.

Yes — this is one of the most common real-world uses of PDF protection. Leave the user password blank and set only an owner password: the file opens freely for anyone, with no password prompt, but a compliant PDF viewer will still enforce whatever printing, copying, and editing restrictions you chose, and only someone who knows the owner password can remove those restrictions or change them. This is exactly how many organizations distribute read-only reports or reference documents — freely viewable, but not meant to be edited or redistributed piecemeal.

This tool uses the PDF specification's classic 'standard security handler' with RC4 encryption at up to 128-bit key length — broadly compatible with virtually every PDF reader in existence, including older software, but not considered strong enough by modern cryptographic standards to protect content against a well-resourced, determined attacker. It's well suited to everyday, good-faith use: keeping a document from being casually opened, printed, or edited by someone who doesn't have the password, or discouraging casual copying of its content. It is not a substitute for encrypting genuinely high-stakes secrets (financial credentials, classified material, or anything where a sophisticated adversary is a realistic threat) — for that level of sensitivity, use AES-256 protection via a tool like Adobe Acrobat, or a purpose-built encryption tool outside the PDF format entirely.

No — protecting a PDF encrypts its existing content in place; it doesn't alter, re-render, or recompress any text, image, or vector graphic within the file. Every page, font, and image looks and behaves exactly as before once the correct password is entered; the only difference is that a password (if you set one) is now required to open the file, and the permission restrictions you chose are enforced by any compliant viewer. The file size increases very slightly due to the added encryption structure, but the underlying content is untouched.

This tool detects that the file is already encrypted and stops with a clear message rather than attempting to layer new protection on top of the old — doing so without first removing the existing protection would produce a corrupted, unreadable file, since the existing encrypted content can't simply be re-encrypted on top of itself. If you need to change an already-protected PDF's password or permissions, use Unlock PDF first to remove the existing protection, then use Protect PDF to apply your new settings to the now-unlocked file.

There's no way to recover a lost password from this tool, or from the protected PDF itself — the whole point of password protection is that the content is genuinely inaccessible without it. Make sure to save your password somewhere secure (a password manager is the obvious choice) before closing the tab, since neither this tool nor the protected file retains any record of what password you set. If you do lose it, your only options are a dedicated password-recovery tool (which can take a very long time for anything beyond a short, guessable password) or, if you still have the original unprotected file, simply protecting that copy again with a password you'll remember.

Nothing is retained anywhere. Because protection happens entirely in your browser's memory with no server storage, database, or persistent browser storage involved, closing the tab, refreshing the page, or navigating away immediately and permanently discards your uploaded file, any passwords you typed, and any protected result you haven't yet downloaded. Make sure to download your protected PDF — and save your password somewhere safe — before leaving the page, since there's no way to recover a session afterward.

Related Tools

Protect PDF adds password and permission restrictions. These related PDF tools cover the rest of a typical PDF workflow — removing protection, and combining or converting documents.

Unlock PDF
PDFRemove an existing password before applying new protection, or when protection is no longer needed.
Merge PDF
PDFCombine documents into one file before protecting the final result.
Compress PDF
PDFShrink a PDF's file size before protecting and sending it.
Rotate PDF
PDFFix page orientation before applying password protection.