OxyPages

Password Protect An HTML Page, With Real Encryption

Paste your page, set a password, get one HTML file that will not open without it.

Free. No account. Live in seconds.
Settings

The page to protect

or drop one here · it is read on this device, not uploaded

3,224 bytes in. Encrypting turns it into base64, which is about a third larger, so the finished file comes out near 10.2 KB.

Lock screen

Building the lock screen…

Prove it works

This runs the finished file's own decryption inside the preview above. Try the real password, then try a wrong one.

No test run yet.

AES-256-GCMPBKDF2-HMAC-SHA256, 600,000 rounds·no file yet

What this protects against, and what it does not

  • It is real encryption. Your page is AES-256-GCM ciphertext inside the file. Nobody reads it from View Source, and the password is not in there either - not in plain text, not as a hash. Most "password protect HTML" generators just compare a string in JavaScript with the page sitting next to it; this does not.
  • Anyone with the file can guess offline. The ciphertext travels with the lock screen, so an attacker who saves the page can try passwords on their own machine, as fast as their hardware allows, with nothing to slow them down but the 600,000 PBKDF2 rounds. A short or obvious password falls. A long one made of unrelated words does not.
  • It is not server-side protection. Nothing checks who is asking, nobody signs in, and once you have sent the password out you cannot take it back without making a new file. Use it for a client proposal, a draft or a party invitation - not for anything whose exposure would actually hurt. When the check needs to happen before the page is served, password protection on paid plans does that job properly.
Free. No account. Only the encrypted file is uploaded.

How It Works

How To Use The Password Protect A Page

  1. 1

    Paste The Page You Want To Lock

    Drop an .html file or paste your HTML into the editor. You can see exactly what is inside at any point on the Your Page tab.

  2. 2

    Set A Password And Design The Lock Screen

    Type a password - the meter tells you how long it would survive an offline guessing run - then pick one of five looks, an accent colour, a title and a hint line.

  3. 3

    Test It, Then Download Or Publish

    Test Unlock runs the finished file's own decryption inside the preview, so you can watch the right password open it and a wrong one bounce. Then download protected.html or publish it to a live link.

About This Tool

What This Password Protect HTML Generator Does

It encrypts your page with AES-256-GCM and hands back a single HTML file: a lock screen, a random salt, and the ciphertext. No password inside it, and no way to read the content without one.

Search for a way to password protect an HTML page and most of what you find does the same thing: it drops a line of JavaScript into your page that compares what someone types against a password written a few lines below, then reveals content that was sitting in the file all along. Anyone can press Ctrl+U and read both. It is theatre. This tool does the real thing instead - it encrypts the page - and the difference is visible in the output: open the file it makes and there is nothing to read but base64.

How It Works

Your password is stretched into a 256-bit key with PBKDF2-HMAC-SHA256 over 600,000 rounds and a fresh random 16-byte salt, and that key encrypts your page with AES-256-GCM under a fresh random 12-byte initialisation vector. The file that comes out carries the salt, the initialisation vector and the ciphertext, and a small unlock form. When a visitor types the password, their browser repeats the derivation and asks AES-GCM to decrypt. A wrong password fails GCM's authentication tag, which cannot be faked or worked around, so the page simply does not open. All of that happens on the device: the password never leaves your browser, and nothing is uploaded until you press publish.

Who It Is For

Anyone who has a page that should be on a link but not in public: a designer sending a client proposal, an agency sharing a draft, someone putting up event details for invited guests, a teacher handing out course notes, or a developer who wants to lock an HTML page for a staging preview without standing up a server. If you are holding a finished HTML file from a chatbot, an export or a template and you just need it behind a password, this is the whole job in a minute.

Its Real Limits

Be clear about what encrypting a page in the browser can do. The ciphertext is in the file, which means anyone who saves the file can try passwords offline, on their own machine, for as long as they like. The 600,000 rounds make each attempt expensive - it is the same order of work factor password managers use - but a short or guessable password will still fall. That is why the tool refuses to build a file for a password under eight characters and shows you an estimated offline guessing time for the one you typed. Treat this as protection against casual access: stopping a link being forwarded round an office, keeping a draft out of search results, keeping a proposal from a curious colleague. It is not a replacement for a login, it cannot be revoked once you have sent the password, and it does not stop someone who is genuinely determined and knows what they are doing.

A few practical notes as well. The page needs JavaScript and the Web Crypto API, which means HTTPS or the file opened directly from your own machine - a plain http:// address will not decrypt. Search engines can only ever see the lock screen, so a protected page cannot be indexed for its content. And because encryption turns the page into base64, the file grows by about a third, which matters if you were already near the 5 MB instant-publish limit. If you only want to look at a page rather than lock it, the HTML viewer renders it safely, and the coming soon page generator is the better answer when you want a holding page everyone can see.

Then Put It On A Link

Publish below and the protected page is on a free OxyPages address with HTTPS in seconds, no account needed, so you can send the link and the password separately and watch it work. That link lasts 30 minutes; claiming it is free, keeps it, and lets you pick your own address. When the content matters enough that the file itself should never reach the wrong browser, OxyPages has password protection as a hosting feature on paid plans, handled by the server rather than by the file. Compare plans or read how it works.

Questions

Frequently Asked Questions

It is actually encrypted. The page is turned into AES-256-GCM ciphertext with a key derived from your password by PBKDF2 over 600,000 rounds, and neither the password nor a hash of it goes into the file. Viewing the source shows base64 and nothing else, which is not true of the JavaScript prompt() method most other generators use.

Try It Now

Still Here? Drop It In.

The whole pitch fits in one sentence: your HTML, on a link, in seconds.

Drag and drop your HTML file(s), folders, or ZIP file

or ·

No account needed. Your unclaimed website stays live for 30 minutes on a free subdomain. Claim it to your account to keep it permanently.

  • No Account Needed
  • Free SSL
  • 30-Minute Unclaimed Link, Claim To Keep It