age encrypt and decrypt
Runs in your browserOpen an age file with your secret key or passphrase, or encrypt for one or more age1… recipients. Compatible with age and rage. Nothing leaves your browser.
Paste or open the file, then add your key
Armored or binary. Your secret key (AGE-SECRET-KEY-1…) or the passphrase opens it.
Create a key pair
For a recipient or with a passphrase
The result opens with age -d and rage. Need keys? Create a pair below.
Start from an example
Each example fills in the tool above and decrypts it. All keys and passwords are demo values made for this page.
How an age file is built
| Part | What it is |
|---|---|
age-encryption.org/v1 | The header line |
-> X25519 … | One line per recipient: the file key, encrypted with X25519 and ChaCha20-Poly1305 |
-> scrypt … | Or: the file key, encrypted with a passphrase (scrypt, work factor 2^18 by default) |
--- … | A MAC over the header |
| Data | ChaCha20-Poly1305 in 64 KB chunks |
AGE-SECRET-KEY-1… is the secret key (keys.txt), age1… the recipient you share. Files encrypted for SSH keys (ssh-ed25519) and post-quantum keys (age1pq1…) aren’t supported here.
The same with age
age-keygen -o keys.txt age-keygen -y keys.txt # the recipient
age -r age1… -a -o secret.age secret.txt age -p -a -o secret.age secret.txt # passphrase
age -d -i keys.txt -o secret.txt secret.age
Tested against the original tools
Every format on this page was checked against values made by the real tool, on 3 December 2026:
- Files made by the age program 1.1: one and two recipients, armored and binary, a 140 KB file over several chunks, a passphrase file; what the tool encrypts, age decrypts.
- SOPS uses the same code for its age keys.
Other encrypted formats
Every format has its own page with the same tool. Paste anything into one of them: if it belongs elsewhere, the tool says so and takes it there.
Questions about age encrypt and
How do I decrypt an age file?
Open or paste it above with your secret key (AGE-SECRET-KEY-1…) or the passphrase. In a terminal: age -d -i keys.txt file.age.
Why does a passphrase take so long?
On purpose: scrypt makes guessing the passphrase expensive. In a browser it needs a few seconds and a few hundred MB of memory.
Can I use it with SOPS?
Yes, SOPS encrypts its data key for age recipients. The SOPS tool on this site opens such files with the same key.
Is it safe to paste my key?
Everything runs in your browser: nothing you paste is sent anywhere, not even to this site. The page’s Content-Security-Policy blocks connections to other sites; check the Network tab of your browser’s developer tools.