RSA Decrypt
Decrypt RSA-OAEP ciphertext with your PEM private key in the browser. Supports RSA-2048 and RSA-4096. Private key never transmitted.
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 RSA Decrypt
-
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-----).
-
Select Decrypt mode
Click the 'Decrypt' tab in the mode toggle.
-
Select the hash algorithm
Choose the same hash algorithm used during encryption (SHA-256 by default). Mismatching the hash algorithm causes decryption to fail.
-
Paste the Base64 ciphertext
Paste the Base64-encoded RSA ciphertext into the input panel.
-
Click Decrypt
Click Decrypt. The plaintext appears if the private key matches the public key used for encryption.
-
Copy the result
Click Copy to copy the decrypted plaintext to your clipboard.
RSA Decrypt FAQ
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?
Background
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:
- Generate a key pair on this page (RSA-2048 or RSA-4096)
- Paste the Base64-encoded RSA ciphertext
- Paste your private key in PKCS#8 PEM format
- 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.