age Encryption

Encrypt files and messages to someone’s age public key or a passphrase, decrypt .age files, and make key pairs, including post-quantum keys. Works with the age and rage command-line tools. Everything runs in your browser; keys and files are never uploaded or saved.

What to encrypt
Encrypt to
Anyone whose public key is listed can open the file with their secret key.

Advertisement

Guide

About the age Encryption

age is a simple, modern format for encrypting files. Instead of GPG’s keyrings and options, a public key is one short line starting with age1 and the secret key is one line starting with AGE-SECRET-KEY-1. Anyone can encrypt to your public key; only your secret key opens the result.

Files made here open with the age and rage command-line tools, and files made with them open here. Everything happens in your browser, so you can encrypt a file before sending it anywhere without trusting this site with it.

Keys or a passphrase?

  • Public keys are best when you send to the same people again: they give you their age1… key once, and there is no secret to pass along with each file. You can list several recipients; any one of them can open the file.
  • A passphrase suits a one-off: there are no keys to set up, but the passphrase must reach the other person another way, and it must be long. age slows guessing with scrypt, yet a short or common passphrase still falls quickly.

Classic or post-quantum keys?

Classic keys use X25519 and work with every age tool. Post-quantum keys (age1pq1…) combine ML-KEM-768 with X25519, so files stay protected even against a future quantum computer that could break X25519, a concern for data that must stay secret for many years. They need age 1.3 or later to open, and the public key is about 2,000 characters. Mixing both kinds in one file gives only classic protection.

The same steps on the command line

  • Make a key: age-keygen -o key.txt (post-quantum: age-keygen -pq -o key.txt)
  • Encrypt to a key: age -r age1… -o file.age file · with a passphrase: age -p -o file.age file · as text: add -a
  • Decrypt: age -d -i key.txt -o file file.age

How to use it

  1. 1To receive files, open Keys, generate a key pair, save key.txt somewhere safe and share the public key.
  2. 2To send, open Encrypt, paste the recipient’s age1… public key (or choose a passphrase), and add text or a file.
  3. 3Encrypt, then save the .age file or copy the armored text and send it.
  4. 4To open one, go to Decrypt, add the .age file or armored text, and give your secret key or the passphrase.

Frequently asked questions

Is my file or key uploaded?

No. Encryption, decryption and key generation run in a worker inside your browser tab. Keys, passphrases and file contents are not stored, not put in share links, and are gone when you close the page. Only the list of public keys you encrypt to is remembered, because it is not secret.

Can I encrypt to an SSH key (ssh-ed25519)?

Not here. The age command line can encrypt to ssh-ed25519 and ssh-rsa keys, but the browser library used by this page supports age’s own keys and passphrases only. Use age -R ~/.ssh/id_ed25519.pub on the command line for that.

What happens if I lose my secret key?

Files encrypted to it cannot be opened, by you or anyone else. There is no recovery. Keep key.txt backed up, or encrypt important files to a second key as well.

Does age sign files or prove who sent them?

No. age only encrypts: anyone with your public key can make a file for you, so it does not show who sent it. It does detect any change to an encrypted file, so a modified file will not decrypt.

How large can files be?

Up to 2 GB here. Binary .age output is streamed, so memory use stays low. ASCII-armored text has to be built in memory, so it is limited to 16 MB of input; larger files are saved as binary.

Is this the same as the age tab in AES Encryption?

Yes, both use the same code. This page adds post-quantum keys, streaming for large files, the file header preview and the key tools.