RSA Encrypt Decrypt — Free Online RSA Encryption & Decryption Tool
Generate RSA key pairs and encrypt/decrypt text with RSA-OAEP — uses Web Crypto API with 2048 or 4096-bit keys.
Jump to tool ↓Frequently Asked Questions
RSA Public Key Encryption: How Asymmetric Cryptography Works
RSA is the foundation of modern public-key cryptography. Unlike symmetric encryption (where the same key encrypts and decrypts), RSA uses a mathematically linked key pair. Your public key can be freely shared — anyone can use it to encrypt messages that only your private key can decrypt. This solves the key distribution problem that plagued symmetric systems.
This tool uses RSA-OAEP with SHA-256 — the modern, recommended approach to RSA encryption. OAEP padding adds randomness to each encryption operation, meaning the same plaintext produces different ciphertext each time, preventing pattern analysis attacks. The Web Crypto API implementation is native to your browser, requiring no external libraries.
Important: RSA is only suitable for small amounts of data. For large files, use hybrid encryption — encrypt the file with AES, then encrypt the AES key with RSA. This is exactly how TLS, PGP, and most secure protocols work in practice.
Standards & References
Built and maintained by DevDecode. This tool processes your input in your browser; it is not uploaded for processing. Found an issue? Let us know.
Related Tools
Related Guides
Hashing vs Encryption: What's the Difference?
Hashing is one-way; encryption is reversible. Learn the difference between hashing and encryption, where encoding fits in, and when to use each — with clear examples.
EncryptionSymmetric vs Asymmetric Encryption: What's the Difference?
Symmetric encryption uses one shared key; asymmetric uses a public/private key pair. Learn how each works, their speed trade-offs, and why TLS and PGP use both.
EncryptionWhat Is a Cipher? Types and Examples Explained
A cipher is an algorithm that encrypts and decrypts data. Learn the difference between ciphers and codes, plus block, stream, symmetric, and classic cipher types.
EncryptionWhat Is PGP Encryption and How Does It Work?
PGP encrypts emails and files using a public/private key pair. Learn how PGP works, what a PGP key is, the difference between PGP and GPG, and how to start.