RSA Encryptor & Decryptor.
Secure Asymmetric Encryption. Generate RSA key pairs, encrypt with public key, decrypt with private key. Industry-standard PEM format.
- Security & Privacy
- Runs in your browser
RSA Key Pair Generator
Key Information
Public Key
Share this with others to receive encrypted messages
Private Key
Keep this secret! Used to decrypt messages
Key Size Guide
512-bit
Fast but not recommended
1024-bit
Legacy systems only
2048-bit
Industry standard
4096-bit
Maximum security
Use cases
Real-world uses.
- Secure Email Communication
- Encrypt sensitive emails so only the recipient with the matching private key can read them. Perfect for confidential business communications.
- API & Web Services
- Secure API communications by encrypting requests with the server's public key. Commonly used in payment gateways and authentication systems.
- Secure Key Exchange
- Safely exchange encryption keys over insecure channels. Encrypt AES keys with RSA for secure transmission.
- Digital Signatures
- Verify the authenticity and integrity of messages. Sign documents with your private key to prove they came from you.
- Multi-Party Communications
- Share your public key with multiple parties. Each can send you encrypted messages that only you can decrypt.
- SSL/TLS Certificates
- RSA is the foundation of HTTPS. Generate keys for SSL certificates or understand how web security works.
How it works
Four steps.
- 01
Generate an RSA key pair (2048-bit recommended) or import existing keys
- 02
To encrypt: Enter your message and use the recipient's public key
- 03
To decrypt: Paste encrypted message and use your private key
- 04
Copy or download the encrypted/decrypted result
Features
Powerful RSA Encryption Features.
Key Pair Generation
Generate RSA public/private key pairs with 512, 1024, 2048, or 4096-bit strength
Public Key Encryption
Encrypt messages using the recipient's public key for secure transmission
Private Key Decryption
Decrypt messages using your private key - only you can read them
Asymmetric Security
Public key for encryption, private key for decryption - no shared secrets
Export & Import Keys
Download keys in PEM format or upload existing keys for encryption/decryption
Quick Copy & Share
One-click copy for encrypted messages and public keys to share
Real-Time Processing
Instant encryption and decryption with visual feedback
PEM Format Support
Industry-standard PEM format for maximum compatibility
What is RSA encryption?
RSA is an asymmetric encryption algorithm that uses a public key for encryption and a private key for decryption. It's widely used for secure data transmission and digital signatures.
What's the difference between RSA and AES?
RSA is asymmetric (uses public/private key pairs) while AES is symmetric (uses the same key). RSA is slower but allows secure key exchange, while AES is faster for bulk data encryption.
Which key size should I use?
Use 2048-bit for standard security (recommended). 4096-bit offers maximum security but is slower. Avoid 512-bit and 1024-bit for sensitive data as they're considered weak.
Can I encrypt large files with RSA?
RSA can only encrypt data smaller than the key size (e.g., ~245 bytes for 2048-bit). For large files, use hybrid encryption: generate a random AES key, encrypt the file with AES, then encrypt the AES key with RSA.
Is it safe to share my public key?
Yes! The public key is meant to be shared. Others use it to encrypt messages that only you can decrypt with your private key. Never share your private key.
Does this tool store my keys?
No, all key generation and encryption/decryption happens locally in your browser. Your keys never leave your device.
Can I use these keys with other tools?
Yes! The keys are in standard PEM format, compatible with OpenSSL, GPG, SSH, and most encryption tools.
What happens if I lose my private key?
If you lose your private key, you cannot decrypt messages encrypted with your public key. Always backup your private key securely.
Related tools
More Security & Privacy tools.
AES Cipher
Encrypt and decrypt using AES
Bcrypt Hash Generator
Generate secure BCrypt password hashes
Blowfish Cipher
Fast symmetric block cipher encryption with variable-length keys (32-448 bits)
Clickjacking Tester
Test websites for clickjacking vulnerabilities
CSP Generator
Generate Content Security Policy headers
CSRF Token Generator
Generate secure CSRF protection tokens
DES Cipher
DES and Triple DES encryption/decryption for legacy system compatibility
Hash Calculator
Calculate MD5 SHA hashes quickly
Built by Infyways
Need more than a tool.
These utilities are made by the Infyways studio. When a free tool is not enough, we build the real thing.