PDF Guides

How to Send a PDF as a Password-Protected Web Page (No Upload)

Encrypt a PDF into a single HTML file that opens in any browser with a password: how it works, choosing a passphrase, sending it safely and its limits.

Saizul Amin
Saizul Amin28 Oct 2026 · 3 min read
How to Send a PDF as a Password-Protected Web Page (No Upload)

How to Send a PDF as a Password-Protected Web Page

Most ways of sharing a confidential PDF have a catch. A plain email attachment sits readable in inboxes, backups and every forwarded thread. A password-protected PDF uses encryption that depends on the PDF reader, and older settings are weak. Secure file-transfer services work well but ask you to upload the document to someone else's server and the recipient to click a link. The free Encrypted PDF Share Page takes another approach: it turns your PDF into one self-contained web page file that only opens with the password, using encryption built into every modern browser.

What the recipient sees

They receive a file ending in .html. Double-clicking it opens their usual browser with a simple page: your title, an optional message, and a password box. When they type the right password, the PDF appears in the page, with buttons to open it in a new tab or download it. With the wrong password they get a polite error. Nothing is installed and no account is needed.

What happens behind the scenes

When you make the page, your browser:

  1. creates a random 16-byte salt and a 12-byte nonce;
  2. stretches your password into a 256-bit key using PBKDF2 with SHA-256 and 600,000 rounds, the level OWASP currently recommends, which makes guessing passwords slow;
  3. encrypts the PDF with AES-256 in GCM mode, which also detects any change to the encrypted data;
  4. writes the encrypted bytes, the salt and the settings into the HTML file along with a short script.

The recipient's browser repeats the key stretching with the password they type and decrypts the file locally. Your PDF never touches a server, ours included.

Choosing a password

The encryption is only as strong as the password, because anyone who obtains the file can try passwords offline as fast as their computer allows. A long passphrase of random words is both strong and easy to share. If you leave the password box empty, the tool generates one from five random words and a number, such as maple-orbit-lantern-quartz-otter-47, and shows it once in the report. Copy it before you close the page.

Sending it safely

  • Send the file and the password by different routes: the file by email, the password by text message or phone.
  • Do not put the password or a revealing hint in the email body.
  • If an email system blocks .html attachments, zip the file or share it through a cloud storage link.
  • On iPhone, save the attachment to the Files app and open it from there if the mail preview does not run it.

The expiry date

You can set a date after which the page refuses to open. This is checked against the recipient's device clock, so someone determined could get round it by changing the clock or reading the code. Treat it as a polite reminder that the document is time-limited, not as access control.

When this is a good fit

  • Sending payslips, contracts, medical letters or tax documents to one person.
  • Sharing board papers or legal documents with a small group who receive the password by phone.
  • Archiving a sensitive file on shared storage in a form that opens anywhere in future.

Limits to keep in mind

Once the right person opens the PDF, they can save, print and forward it; encryption protects the file on the way and at rest, not afterwards. Personal data still falls under data protection rules, so follow your organisation's policies. The page is about a third larger than the original PDF because the encrypted data is stored as text.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages