Local File Encryption Studio

Encrypt and decrypt files with AES-256-GCM and a password.

Up to 100 MB.

If this form is sent to our server (for example with JavaScript turned off), the file is uploaded, processed and then deleted.

More options

Use a long passphrase. It cannot be recovered: without it the file is lost.

Raw-key mode. Leave empty when encrypting to generate a random key (shown once).

At least 600,000 (OWASP 2023 recommendation for PBKDF2-HMAC-SHA-256). Decryption reads the value from the file.

Only for reproducible demos. Reusing a salt/IV with the same password breaks AES-GCM security.

Try an example: · ·

More about this tool

Part of Keysmith Cryptography & security tools

How it works

Encrypts any file up to 100 MB with AES-256-GCM, using a password (PBKDF2-SHA-256, at least 600,000 iterations) or a raw 256-bit key, and decrypts it again. The output is a small documented container.

  • Encryption: AES-256 in GCM mode (authenticated encryption) with a random 96-bit IV. The 16-byte authentication tag detects a wrong key and any modification of the file or its header.
  • Password mode: the key is PBKDF2-HMAC-SHA-256(password in Unicode NFC, UTF-8; random 16-byte salt; ≥ 600,000 iterations; 32 bytes). Raw-key mode uses your 32-byte key directly (or a random one generated for you).
  • Container "UWFE" v1, all integers big-endian: bytes 0–3 "UWFE"; 4 version (1); 5 KDF (1 = PBKDF2-SHA-256, 0 = raw key); 6–9 iterations (0 for raw key); 10 salt length S; then S salt bytes; then IV length (12) and the IV; then ciphertext followed by the 16-byte tag. The whole header is authenticated as GCM additional data.
  • With JavaScript on, the page uses WebCrypto (crypto.subtle: PBKDF2, AES-GCM) and offers the result as a download.
  • Without JavaScript or via the API/MCP, the server performs the same steps with Node.js crypto. It then receives the file and the password; the output is kept as a download for about 2 hours and then deleted.

If you forget the password or lose the key, the file cannot be recovered. Keep an unencrypted backup until you have tested decryption.

Sources

Use this tool in an app

These free programs for your browser have this tool built in, next to everything else the task needs.

  • Keysmith Crypto & secrets lab

    Audit certificates, keys, TLS and passwords in one lab; server runs ask first.

    Open Keysmith

  • Bundlekeep Local project backup

    Back up projects from every usefulweb app into one file, check it and restore any part.

    Open Bundlekeep

Related tools

How to use the Local File Encryption Studio

Encrypt and decrypt a file with AES-256-GCM using a password or a raw key, and understand the small container format it produces.

What it is for

You want to email a tax return, put a contract in shared cloud storage or keep a backup on a USB stick, and you don't want anyone who intercepts it to be able to read it. This studio encrypts any file up to 100 MB with AES-256-GCM, and decrypts it again with the same password or key.

Without JavaScript, or through the API, the server does the same work. It then receives the file and password, and keeps the output as a download for about 2 hours.

It isn't a replacement for disk encryption or for tools your recipient may already have, like 7-Zip AES or age. The .uwenc file can only be opened with this studio, or with your own code that follows the documented format.

Worked example

We encrypted a 58-byte notes.txt ("Meeting notes: the spare key is under the blue flowerpot.") with the password correct horse battery staple and the default 600,000 PBKDF2 iterations. For a reproducible demo we used the seed demo. Never do that for real files.

Result: Encrypted 58 B → 114 B with AES-256-GCM (PBKDF2-SHA-256, 600,000 iterations), saved as notes.txt.uwenc. The 56 extra bytes are a 40-byte header (with salt e964e2ae… and IV 1cfeab33…) plus the 16-byte authentication tag.

Decrypting with the same password gave back exactly 58 bytes. With one letter missing from the password, the studio refused: "Decryption failed: wrong password or key, or the file was modified (the authentication tag does not match)."

In raw key mode with the key field left empty, a 2-byte file became 42 bytes and the studio generated a random 256-bit key. The warning said to store it now, because it's shown only once.

How to read the result

  • Format / KDF / iterations: the container version (UWFE v1) and how the key was derived. Raw-key files have no salt and no iterations.
  • Salt and IV: random per file. They're stored in the header, so you don't need to note them.
  • Input and output bytes: the overhead is fixed (56 bytes with a password, 40 with a raw key) and doesn't depend on the file size.
  • Generated key: only in raw-key mode with an empty key field. Copy it to a password manager right away.
  • Download: the encrypted .uwenc file, or the original file name after decryption.

Tips and common mistakes

  • There is no recovery. Forget the password and the file is gone. Keep the original until you've tested a full decrypt.
  • Use a long passphrase. PBKDF2 slows down guessing, but it can't save a 6-character password. The Password & Passphrase Generator helps.
  • The iteration count can be raised but not lowered below 600,000. Decryption reads it from the file automatically.
  • Send the password over a different channel than the file, for example by phone or a messenger, not in the same email.
  • GCM authenticates the header as well, so a tampered file is rejected rather than decrypted into garbage.
  • The demo seed fixes the salt and IV. Reusing them with the same password breaks AES-GCM's security, so leave that field empty.

FAQ

Is AES-256-GCM secure enough for personal files?

Yes. It's the authenticated mode NIST standardised in SP 800-38D. With a strong password, the weak point is the password, not the cipher.

Can someone else decrypt the file?

Anyone with the password, or the raw key, and this studio, or code that follows the published UWFE v1 layout, can decrypt it.

Does it need a network connection?

Once the page has loaded with JavaScript on, encryption and decryption use only your browser.

Why is the encrypted file a bit larger?

The header stores the format, iteration count, salt and IV, and GCM adds a 16-byte tag. That's 56 bytes in password mode.

Guide last updated:

For scripts and AI agents

  • JSON API: POST https://fileencryptionstudio.usefulweb.site/api/v1/calculate (same calculation as this page)
  • Interface description: OpenAPI 3.1 · AI guide: llms.txt
  • MCP server (Streamable HTTP): https://fileencryptionstudio.usefulweb.site/mcp · tool name file_encryption_studio
Example request
curl -s -X POST https://fileencryptionstudio.usefulweb.site/api/v1/calculate \
  -H 'content-type: application/json' \
  -d '{"action":"encrypt","file":{"filename":"notes.txt","contentType":"text/plain","contentBase64":"TWVldGluZyBub3RlczogdGhlIHNwYXJlIGtleSBpcyB1bmRlciB0aGUgYmx1ZSBmbG93ZXJwb3QuCg=="},"keyMode":"password","password":"correct horse battery staple","seed":"demo"}'
Feedback · ideas & bug reports welcome