RSA Decrypt
Runs in browserDecrypt RSA-OAEP ciphertext with your PEM private key in the browser. Supports RSA-2048 and RSA-4096. Private key never transmitted.
Last updated 02 Apr 2026
Paste Base64 RSA ciphertext and your PKCS#8 PEM private key, then click Decrypt to recover the original plaintext. Supports RSA-OAEP with SHA-256, SHA-384, and SHA-512. Fully browser-based via WebCrypto — your private key is never uploaded.
Note: RSA can only encrypt small amounts of data (up to ~200 bytes for RSA-2048). For large data, use AES and encrypt the AES key with RSA.
Never share your private key.
For large data encryption, use the AES Encrypt tool instead.
How to use
- 1
Generate or provide your private key
Click 'Generate Key Pair' to create a new RSA-2048 or RSA-4096 key pair on this page, or paste your existing PKCS#8 PEM private key (begins with -----BEGIN PRIVATE KEY-----).
- 2
Select Decrypt mode
Click the 'Decrypt' tab in the mode toggle.
- 3
Select the hash algorithm
Choose the same hash algorithm used during encryption (SHA-256 by default). Mismatching the hash algorithm causes decryption to fail.
- 4
Paste the Base64 ciphertext
Paste the Base64-encoded RSA ciphertext into the input panel.
- 5
Click Decrypt
Click Decrypt. The plaintext appears if the private key matches the public key used for encryption.
- 6
Copy the result
Click Copy to copy the decrypted plaintext to your clipboard.
Frequently asked questions
What do I need to decrypt RSA ciphertext?
Is this tool safe? Is my private key sent to a server?
Are inputs sent to a server?
Why does RSA decryption fail?
What format does the private key need to be in?
Can I decrypt OpenSSL RSA output here?
What is the size limit for RSA decryption?
What is RSA-OAEP?
What is the difference between RSA-2048 and RSA-4096?
Decrypt RSA-OAEP ciphertext using your private key directly in the browser.
All operations run on your device via the WebCrypto API — no data is
transmitted.
**RSA asymmetric decryption:** The public key encrypts; only the private key
can decrypt. This tool accepts Base64 ciphertext produced by the RSA Encrypt
tool on this site (RSA-OAEP scheme with SHA-256 by default).
**Getting started:**
1. Generate a key pair on this page (RSA-2048 or RSA-4096)
2. Paste the Base64-encoded RSA ciphertext
3. Paste your private key in PKCS#8 PEM format
4. Click Decrypt to recover the plaintext
**Important size limits:** RSA is designed for small payloads. The maximum
plaintext for RSA-2048 with SHA-256 is 190 bytes; RSA-4096 supports up to
446 bytes. For larger data, the standard workflow is hybrid encryption: the
sender encrypts a random AES key with RSA, then AES-encrypts the actual
payload. You decrypt the AES key with RSA, then decrypt the payload with AES.
**Privacy:** Your private key never leaves your browser. All decryption runs
via the WebCrypto API. Nothing is logged or transmitted.
Related tools
RSA Encrypt
Encrypt text with RSA-OAEP using a public key in your browser. Generate RSA-2048 or RSA-4096 key pairs. Max ~190 bytes plaintext. Nothing uploaded.
AES Decrypt
Decrypt AES ciphertext in your browser. Supports GCM, CBC, CTR, and ECB modes with 128/192/256-bit keys. Password never transmitted.
Base64 Decoder
Decode Base64 or Base64URL strings to plain text or download as a binary file. Handles MIME line-wrapping and PEM certificates automatically.
SHA-256 Hash Generator
Generate SHA-256 hashes from text instantly. WebCrypto hardware-accelerated, real-time output. Used in Bitcoin, TLS, and digital signatures. Zero uploads.
Password Generator
Generate cryptographically secure passwords with custom length (8–128), character sets, entropy display, and exclude-ambiguous option. Runs in your browser.