Sign up free

Encrypt a File: AES-256 Encryption and Decryption

Lock any file with AES-256 on your own device, then decrypt it anywhere with the password.

or drop files here

Runs in your browser. Your files never leave your device.

About Encrypt File

Encryption and decryption with a password: encrypt a file before it goes somewhere you don't fully control, like a cloud drive, a USB stick that could get lost, or an email to your accountant. Pick the file, choose a password and your browser turns it into an encrypted .cfenc copy. Without the password, the contents can't be read.

The work happens on your device, so neither the file nor the password is sent to us. Under the hood it's AES-256-GCM, with the key derived from your password through 600,000 rounds of PBKDF2-SHA256, which makes guessing slow and expensive. The original name and file type are sealed inside and restored when you decrypt. Forget the password, though, and nobody can recover the file, us included.

How to use Encrypt File

  1. 1
    Pick the file

    Click Choose a file to encrypt or drop it on the page. Any type works, from PDFs and photos to spreadsheets and archives.

  2. 2
    Set a strong password

    Type it twice. It needs at least 6 characters, and the strength bar shows how you're doing; longer is better.

  3. 3
    Encrypt and download

    Click Encrypt and download. Your browser will encrypt the file and save it with .cfenc added, for example tax-return.pdf.cfenc.

  4. 4
    Pass the password separately

    Store or send the .cfenc file and share the password another way. It opens with Decrypt File on any device.

Why use Cubfile for this

  • Stays on your device

    Encryption runs in your browser. The file and the password never reach our servers.

  • AES-256-GCM with PBKDF2

    The same cipher family that secures HTTPS connections, with a key stretched through 600,000 rounds of PBKDF2 to slow down password guessing.

  • Tampering is detected

    Every piece of the file carries an authentication tag, so a damaged or altered file is reported instead of decrypting to garbage.

  • Original name restored

    The file name and type are sealed inside, so decrypting gives back report.pdf, not a mystery file.

FAQ

Encrypt File: questions and answers

Can Cubfile see the file or the password when I encrypt a file?
No. The page does the encryption inside your browser, so neither the file nor the password ever leaves your device.
What format is the encrypted file, and who can open it?
It's a .cfenc file, Cubfile's own AES-256-GCM format. Anyone with the password can open it with Decrypt File on this site, in any browser, for free. Other programs can't read it.
What happens if I forget the password?
The file stays locked for good. We never see the password, so we can't reset or recover it. Keep it in a password manager.
Is there a size limit to encrypt a file?
It depends on your device rather than on us. Nothing is uploaded and it doesn't use your daily tasks; very large files just take longer and need enough free memory in the browser.
Can I encrypt several files at once?
One file at a time. To protect a group of files, bundle them with Zip Files first, which also runs in your browser, then encrypt the ZIP.
Share Encrypt File with a friendIt runs in any browser, and they can try it without signing up.

Related tools

ZIP Unzip OnlineOpen ZIP, RAR, 7Z and TAR archives and save the files you need.
ZIP Password Protect ZIPCreate an AES-256 encrypted ZIP that opens in 7-Zip and WinRAR.
ZIP Zip FilesBundle several files into one ZIP right in your browser. Nothing is uploaded.
FILE Decrypt FileOpen files you encrypted here with your password.
FILE File Hash CheckerCompute MD5, SHA-1, SHA-256 and SM3 and compare with the expected value.
ZIP Split ZIPSoonSplit big files into ZIP volumes that fit email limits.
IMG Compress ImageShrink JPG, PNG, WebP and GIF with no visible loss, in bulk.
PDF Compress PDFMake PDFs smaller for email and upload portals, text stays sharp.