Free online toolsVariedTools.com

Age encryption/decryption

Encrypt and decrypt files and text using Age (Actually Good Encryption), a modern, simple, and secure file encryption format designed to replace GPG. Generate X25519 identity key pairs, encrypt text messages and binary files with recipient public keys, decrypt using private keys. All operations run entirely in your browser using WebAssembly for maximum security and privacy. Perfect for secure file sharing, encrypted backups, API keys and secrets management, confidential communications, and developer workflows.

Private Key
Public Key

Age Encryption and Decryption Tool

Encrypt and decrypt files and text using Age (Actually Good Encryption), a modern, simple, and secure file encryption format designed to replace GPG. This browser-based tool provides complete client-side encryption and decryption capabilities, ensuring your sensitive data never leaves your device.

What is Age Encryption?

Age is a file encryption tool, format, and library developed by Filippo Valsorda. It provides strong encryption with simple key management, making it easier to use than traditional tools like GPG while maintaining high security standards. Age uses modern cryptographic primitives including X25519 for key exchange and ChaCha20Poly1305 for authenticated encryption.

Key Features

Generate Identity Key Pairs

Create X25519 identity key pairs directly in your browser. Each identity consists of a private key (keep this secret) and a public key (share this with others). The tool generates keys in the standard Age format, compatible with the command-line age tool and other Age implementations.

Encrypt Text Messages

Encrypt plain text messages using one or more recipient public keys. Simply paste the recipient's public key (or multiple keys, one per line), enter your message, and click encrypt. The encrypted output is in the standard Age format and can be shared securely or stored for later decryption.

Encrypt Binary Files

Upload one or more files and encrypt them using recipient public keys. Each encrypted file is automatically downloaded with a .age extension. This is perfect for encrypting documents, images, archives, or any binary data before sharing or storing.

Decrypt Text Messages

Decrypt Age-encrypted text using your private identity key. Paste your private key and the encrypted text, then click decrypt to reveal the original message. The decryption process runs entirely in your browser, ensuring your private keys never leave your device.

Decrypt Binary Files

Upload encrypted .age files and decrypt them using your private identity key. The decrypted files are automatically downloaded with the original filename restored. This makes it easy to decrypt files received from others or restore files from encrypted backups.

Use Cases

Secure File Sharing

Share sensitive files securely by encrypting them with the recipient's public key before sending via email, cloud storage, or messaging apps. Only the recipient with the corresponding private key can decrypt the files.

Encrypted Backups

Create encrypted backups of important files and documents. Store the encrypted files safely, knowing that even if they fall into the wrong hands, they remain protected. Keep your private key secure and separate from the encrypted backups.

API Keys and Secrets Management

Encrypt API keys, passwords, database credentials, and other secrets before storing them in version control or configuration files. Decrypt them only when needed, reducing the risk of accidental exposure.

Confidential Communications

Encrypt sensitive text messages or documents before sending them through insecure channels. Age encryption ensures that only authorized recipients can read the content.

Developer Workflows

Integrate Age encryption into your development workflows for protecting sensitive configuration files, environment variables, and deployment secrets. The encrypted format is text-based and can be safely committed to version control.

Security Considerations

Private Key Protection

Your private key is the master key to decrypt all messages encrypted with your public key. Never share your private key with anyone. Store it securely, preferably using a password manager or hardware security module. If your private key is compromised, generate a new identity and update your public key with all contacts.

Public Key Distribution

Public keys are safe to share publicly. You can publish them on your website, include them in email signatures, or share them through any channel. Anyone can use your public key to encrypt messages for you, but only you can decrypt them with your private key.

Multiple Recipients

When encrypting with multiple recipient public keys, the same encrypted message can be decrypted by any of the recipients using their respective private keys. This is useful for group communications or when multiple people need access to the same encrypted data.

Browser-Based Security

All encryption and decryption operations run entirely in your browser using WebAssembly. Your private keys, plain text, and encrypted data never leave your device or are transmitted over the network. This provides maximum security and privacy.

Technical Details

Cryptographic Algorithms

  • Key Exchange: X25519 (Elliptic Curve Diffie-Hellman over Curve25519)
  • Encryption: ChaCha20Poly1305 (authenticated encryption)
  • Key Format: Bech32-encoded strings (standard Age format)

File Format

Age encrypted files use a simple, text-based format that is:

  • Human-readable (ASCII)
  • Easy to parse programmatically
  • Compatible with the command-line age tool
  • Suitable for version control and text-based storage

WebAssembly Implementation

This tool uses a WebAssembly (WASM) build of the Age encryption library, compiled from Go. The WASM module runs entirely in your browser, providing native performance and security without requiring server-side processing.

Comparison with GPG

Age was designed as a simpler alternative to GPG (GNU Privacy Guard). Key advantages include:

  • Simpler Key Management: No complex key rings or trust webs
  • Modern Cryptography: Uses state-of-the-art algorithms
  • Better Performance: Faster encryption and decryption
  • Easier Integration: Simple API and file format
  • No Expiration: Keys don't expire, reducing maintenance overhead

Best Practices

  1. Backup Your Private Key: Store your private key securely in multiple locations (password manager, encrypted USB drive, etc.)
  2. Verify Public Keys: When receiving someone's public key, verify it through a trusted channel before using it
  3. Use Strong Passwords: If you choose to password-protect your private key, use a strong, unique password
  4. Regular Key Rotation: Consider generating new key pairs periodically for enhanced security
  5. Secure Storage: Never store private keys in plain text files or unencrypted cloud storage

Browser Compatibility

This tool requires a modern browser with WebAssembly support, including:

  • Chrome/Edge (version 57+)
  • Firefox (version 52+)
  • Safari (version 11+)
  • Opera (version 44+)

Privacy and Data Handling

All encryption and decryption operations are performed entirely in your browser. No data, keys, or encrypted content is sent to any server. Your privacy is fully protected, and you maintain complete control over your sensitive information.

Getting Started

  1. Generate Keys: Click the "Generate Keys" tab and click "Generate Keys" to create your identity key pair
  2. Save Your Keys: Copy and securely store your private key. Share your public key with others who need to send you encrypted messages
  3. Encrypt: Use the "Encrypt" tab to encrypt text messages, or "Encrypt Binary" to encrypt files
  4. Decrypt: Use the "Decrypt" tab to decrypt text messages, or "Decrypt Binary" to decrypt files

Age encryption provides a modern, secure, and user-friendly way to protect your sensitive data. Whether you're sharing confidential files, creating encrypted backups, or managing secrets, this tool makes encryption accessible to everyone.