age encrypt and decrypt

Runs in your browser

Open 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.

Waiting for input

Paste or open the file, then add your key

Armored or binary. Your secret key (AGE-SECRET-KEY-1…) or the passphrase opens it.

Examples

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.

The format

How an age file is built

PartWhat it is
age-encryption.org/v1The 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
DataChaCha20-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.

In your terminal

The same with age

Keys
age-keygen -o keys.txt
age-keygen -y keys.txt     # the recipient
Encrypt
age -r age1… -a -o secret.age secret.txt
age -p -a -o secret.age secret.txt      # passphrase
Decrypt
age -d -i keys.txt -o secret.txt secret.age
Under the hood

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.
More formats

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.

FAQ

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.

Searches the list of pages on this site. What you type stays in your browser.