PT Privacy Tools

Encrypt File

Password-encrypt and decrypt local files with AES-GCM and PBKDF2 in your browser. No uploads, no server processing.

πŸ”’ Runs entirely in your browser β€” nothing is uploaded

Choose any file. All work happens locally in this tab.

Was this tool useful? Rate it:

Encrypt private files locally

This tool password-encrypts a file without sending it anywhere. When you choose Encrypt, the browser reads the file bytes, stores the original filename and MIME type inside the encrypted payload, derives a 256-bit AES-GCM key from your passphrase with PBKDF2 and creates a downloadable .enc file. A fresh random salt and IV are generated for every encryption with browser cryptography. The salt and IV are not secret; they are saved at the front of the encrypted file so the same passphrase can derive the correct key during decryption. The original file stays on your device and is not modified.

Decrypting and restoring the original file

To decrypt, select the encrypted file, switch to Decrypt mode and enter the same passphrase. AES-GCM authenticates the ciphertext before releasing data, so an incorrect passphrase or damaged file should fail instead of producing a misleading result. If decryption succeeds, the page reads the encrypted metadata and downloads the restored bytes using the original filename when available. Because the process is local, Privacy Tools cannot reset the passphrase, inspect the contents or tell you what went wrong beyond a general failure message. Keep a backup of important encrypted files and test decryption before deleting originals.

Good passphrase practices

File encryption is only as safe as the secret protecting it. Use a long unique passphrase that is not reused on websites, preferably a random passphrase saved in a password manager. Do not send the encrypted file and passphrase through the same channel if the data is sensitive. For very large files, browser memory limits may matter because the file is read into memory for Web Crypto. This helper is best for personal documents, keys, exports and small archives where the convenience of a private browser-only workflow is useful. For business records, full disk encryption and dedicated backup software may still be the better long-term storage layer.

How to use

  1. Choose encrypt or decryptSelect the mode for the local file operation.
  2. Pick a file and passphraseUse any file type and a long passphrase you can keep safe.
  3. Download the resultSave the .enc file or restored original file after the browser finishes.

Frequently asked questions

Are files uploaded for encryption?
No. The selected file is read, encrypted or decrypted and downloaded entirely in your browser.
What format is inside the .enc file?
The file starts with a random salt and IV, followed by AES-GCM ciphertext that contains the original filename, type and bytes.
Can Privacy Tools recover my file if I forget the passphrase?
No. The passphrase never leaves your browser and cannot be recovered by this site.
How strong should the passphrase be?
Use a long unique passphrase, ideally several random words, because PBKDF2 can only protect as well as the secret you choose.