What is file encryption?
File encryption scrambles a file's contents so that only someone with the key, here derived from a password, can restore it. An encrypted file can be stored in the cloud, emailed or put on a USB stick without exposing what's inside.
It's useful for tax returns and ID scans you keep in cloud storage, contracts you send by email, backups of private photos, and handing a file to someone over a channel you don't fully trust. This tool needs no installation or account, works with any file type and never uploads your data.
How to use the Encrypt
1.Choose encrypt or decrypt
Encrypting saves a new .enc file; decrypting restores the original.
2.Pick the file and password
Any file up to 200 MB.
3.Save the result
Keep the password safe: there's no way to recover it.
Example: encrypting a PDF
Encrypting tax-return.pdf (2.4 MB) with a passphrase:
- Saved as
- tax-return.pdf.enc
- Size
- about 2.4 MB plus 47 bytes
- Decrypted
- tax-return.pdf, byte-for-byte identical
- Wrong password
- rejected without producing a file
The encrypted copy is safe to store anywhere; only the passphrase opens it.
What the .enc file contains
The file is read into your browser's memory and encrypted with AES-256-GCM, using a key derived from your password with PBKDF2-SHA-256 and 600,000 iterations. The .enc file holds a short header, the random salt and nonce, and the encrypted data with an authentication tag that detects any change.
Decrypting restores the exact original bytes and file name minus the .enc extension. Because everything happens locally, it works for confidential documents you shouldn't upload anywhere, and keeps working offline once the page has loaded.
Frequently asked questions
What kinds of files can I encrypt?
Any type: documents, images, videos, archives, backups.
Is there a size limit?
200 MB, because the whole file is processed in memory.
Can I open the .enc file elsewhere?
Only this tool can decrypt it, using the same password.
Is the file uploaded?
No. Encryption and decryption run in your browser and nothing is sent to a server.
Related tools
Encrypt & Decrypt Text with a Password
AES-256 password encryption for notes and messages, in your browser.
Protect PDF with a password
Encrypt a PDF with AES-256 so it needs a password to open.
P2P file share
Send files straight from your browser to another with a short code.
Base64 Encoder & Decoder
Base64 and Base64url for text (UTF-8) and files.
URL Encoder & Decoder
Percent-encode or decode URLs and query values, and see a URL's parts.
JWT Decoder
Decode a JSON Web Token's header and payload and check its expiry.
More Developer tools
JSON & data
CSV tools
Network & system
Web & API
Git & releases
Encoding & security
Text & code
- Regex tester
- Text diff checker
- Cron expression explainer
- Lorem ipsum generator
- Markdown previewer
- Slug generator
- Strip HTML tags
- Unicode character inspector
- URL parser
- Markdown TOC generator
- cURL converter
- Whitespace visualizer
- Markdown link extractor
- Regex escape
- Regex match extractor
- Split text by regex
- HTML, CSS and JS playground
- Mock data generator
- Keyboard event tester
- ASCII table