Free Online RSA Encrypt and Decrypt with OAEP, Signing and Verifying
Encrypt or decrypt a short message with RSA-OAEP, or sign and verify one with PKCS1 v1.5 or RSA-PSS. Paste a public or private key as PEM or as JWK, pick the hash, and the page tells you the OAEP size limit before you hit it. Nothing is uploaded.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
How to Use RSA Encrypt and Decrypt
Step by step, start to finish.
Encrypting and verifying need a public key. Decrypting and signing need the private one. The label above the key box changes to say which, so there is no guessing.
A PEM beginning BEGIN PUBLIC KEY or BEGIN PRIVATE KEY, or the JSON of a JWK. A PKCS1 PEM, the kind that says BEGIN RSA PUBLIC KEY, gets a clear message rather than a silent failure.
OAEP and the signature schemes both bind a hash, and both sides have to agree. If the other end used SHA-256, choose SHA-256 here, otherwise a correct key will still fail.
The page shows the OAEP ceiling for your key and hash, and how long your message is. If it does not fit, encrypt a random AES key with RSA and the data with AES instead.
Key Features
What this tool does, and what it does not do.
Encrypt and decrypt with RSA-OAEP and SHA-256, SHA-384 or SHA-512.
PKCS1 v1.5 or RSA-PSS, with the signature as base64 and a plain verdict.
Paste either. A PKCS1 PEM gets named and explained rather than silently refused.
The OAEP ceiling for your key and hash, next to the length of your message.
A failed verify says so clearly, and a wrong key is distinguished from a wrong signature.
No history and no saved setups. A pasted private key never reaches browser storage.
About RSA Encrypt and Decrypt
RSA does one thing: it turns a number smaller than the modulus into another number, one way with the public key and the other way with the private one. Everything built on it is arrangement around that single operation. Encryption pads the message into a number with OAEP, signing hashes the message first and pads the digest, and both of those padding schemes bind a hash that the other side has to match. This page exposes all four combinations because they share every input except the key.
The part worth knowing before you start is the size limit, so it is on screen rather than in an error. RSA-OAEP can carry the key length in bytes minus twice the hash length minus two, which is 190 bytes on a 2048 bit key with SHA-256 and 126 bytes if you switch to SHA-512. The page computes that from the key you actually pasted and shows it beside the length of your message, because the alternative is a failed operation and a guess about why.
The other common wall is the key format. Web Crypto imports SPKI and PKCS8, which are the PEMs that say BEGIN PUBLIC KEY and BEGIN PRIVATE KEY, and it has no idea what to do with PKCS1, the older BEGIN RSA PUBLIC KEY form that plenty of tools still emit. Rather than returning an unhelpful failure, the page recognises the header, names the format, and says what converts it. JWK is accepted too, since that is what a JWKS endpoint hands you.
What this page is for is the moment when two systems disagree: a signature that will not verify, a ciphertext that will not open, a key that one library accepts and another rejects. Having the job, the scheme, the hash and the key all visible at once is usually enough to find the mismatch in a minute. What it is not for is protecting real data, both because RSA alone cannot carry much of it and because a private key in a browser tab has already been somewhere you cannot audit.
Frequently Asked Questions
Common questions about this tool.