RSA Key Pair Generator
Generate RSA key pairs (2048/4096-bit) using the Web Crypto API. Export public and private keys as PEM strings. All client-side, no server uploads.
How to Use the RSA Key Pair Generator
Similar Tools You Might Need
See allSSH Key Generator
Generate SSH key pairs locally with ed25519, RSA 2048, or ECDSA P-256/P-384. Copy or download the public and private parts; nothing uploads.
API Key Generator
Generate secure API keys with configurable length, character set, and optional prefix. Use with any authentication scheme.
Random Token Generator
Generate random tokens in hex, base64, or alphanumeric formats for secrets and sessions. Hex and base64 draw from Web Crypto (alphanumeric uses Math.random — see format notes). The API-key preset mints 64-char secrets in one click — local generation, free, no signup.
PGP Key Generator
Generate PGP key pairs with OpenPGP.js — public for sharing, private stays local. Encrypt mail like it's 1991 but working — local crypto, unlimited saves.
Text to Speech (TTS)
Generate natural-sounding speech from text using your browser's built-in voices. Adjust speed and pitch, and download your text as .txt — Pro users can also export MP3 audio in 12 languages (English + 11 Indian), synthesized server-side with zero retention.
Frequently Asked Questions
What key sizes are supported?
2048-bit and 4096-bit RSA keys. 2048-bit is standard for most applications; 4096-bit provides stronger security for sensitive use cases.
What format are the keys exported in?
PEM format (Base64-encoded DER): SPKI for the public key and PKCS8 for the private key, wrapped at 64 characters per line. The pair is RSA-OAEP with encrypt/decrypt usages only, so it is ready for OpenSSL and cryptographic libraries that need encryption keys.
Is the key generation secure?
Yes. Keys are generated using the Web Crypto API's cryptographically secure random number generator (CSPRNG) in your browser.
Can I use these keys for SSH?
Not directly. This tool exports RSA-OAEP encrypt/decrypt keys, not SSH-format signing keys. Use the SSH Key Generator for authorized_keys-ready output; converting these PEMs externally does not change their usages.
Are my keys uploaded?
No. All key generation happens locally in your browser using the Web Crypto API. No keys are transmitted to any server.
What can the generated keys be used for?
Encrypt and decrypt only: the pair is generated as RSA-OAEP with SHA-256 and usages encrypt plus decrypt (no signing), publicExponent [1, 0, 1]. PEM wraps base64 at 64 characters per line (SPKI public, PKCS8 private), and the details panel echoes algorithm, bit length and usages after each run.
Related Developer Tools
AES Encrypt
Encrypt text using AES symmetric encryption with a passphrase. Generate ciphertext that can be safely transmitted or stored. Code never leaves your device — formatting and validation run locally in your browser.
SSH Key Generator
Generate SSH key pairs locally with ed25519, RSA 2048, or ECDSA P-256/P-384. Copy or download the public and private parts; nothing uploads.
Last updated October 2026