1. Home
  2. Files & Archives
  3. File Encrypt & Decrypt

File Encrypt & Decrypt

Lock and unlock files offline with native WebCrypto chunked AES-256-GCM.

Runs in your browser · No upload
Passphrase strength: Not set
100% Local Native WebCrypto EncryptionFiles and passphrases never leave your device. Each file uses a fresh 16-byte salt, unique 12-byte IVs per chunk, and chunk-index AAD to detect tampering, reordering, or truncation.

How to Encrypt and Decrypt Files Locally

Protect sensitive PDFs, tax documents, private photos, or source archives before uploading them to cloud storage or sending them over email and chat.

  1. Stay in Encrypt Files mode and drop one or more files into the upload zone. Dropping multiple files automatically bundles them into a single ZIP archive before encrypting.
  2. Enter a strong passphrase or click Generate Strong Passphrase to create a high-entropy 5-word Diceware passphrase with a numeric suffix. Check the real-time entropy meter and copy the passphrase into your password manager.
  3. Click Encrypt with AES-256-GCM to generate an authenticated .tenc container processed in bounded 4 MiB chunks.
  4. To unlock a file later, drop any .tenc file onto the page. The tool detects the TENC signature automatically, switches to Decrypt (.tenc) mode, verifies every GCM authentication tag, and restores the original filename and file type.

Chunked AES-256-GCM Architecture and Tamper Protection

Rather than loading an entire archive into one monolithic cipher call, this tool implements a streaming .tenc v1 format built strictly on the browser’s native WebCrypto SubtleCrypto API.

  • PBKDF2-SHA256 (600,000 iterations): Every encryption draws a fresh 16-byte cryptographically random salt via crypto.getRandomValues and stretches your passphrase through 600,000 SHA-256 rounds into a 256-bit AES-GCM key. Encrypting the same file twice with the same password always produces distinct ciphertext.
  • Encrypted Authenticated Metadata: The original filename, MIME type, byte length, and chunk count are encrypted inside an authenticated header bound to the file preamble via Additional Authenticated Data (AAD), preventing filename leakage.
  • Per-Chunk IV and Sequence AAD: Each 4 MiB slice receives its own random 12-byte IV and binds salt + chunkIndex + isFinal as AAD. If even a single bit is modified, two chunks are swapped, a trailing byte is appended, or the end of the file is truncated, decryption immediately halts with a clear tampering error instead of outputting corrupt data.

When decrypting a multi-file encrypted bundle, the restored .zip archive can be handed directly to ZIP Extract in one click without saving an intermediate file first.

100% Local Zero-Upload Privacy

All key derivation and authenticated encryption runs strictly inside your browser’s native WebCrypto engine with zero external crypto servers and zero file uploads. Because neither your files nor your passphrase ever leave your device, lost passphrases cannot be reset or recovered. Always store your passphrase safely before sharing or archiving .tenc files.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.