Search 93+ free tools… (e.g. json, vpn, password) ⌘K
Link Tools Dereferer Hide Referrer Link URL Shortener Affiliate Cloaker PayPal Links PayPal DonationPayPal Links Privacy Tools Password Generator Cloudflare Resolver My Referrer Torrent Tools Magnet → Torrent Torrent → Magnet Torrent Editor Pirate Bay Proxies Movierulz Proxies ExtraTorrent Proxies Dev Tools Base64 Encoder Hash Generator HTTP Headers Disposable Email Checker Company Blog About Us Contact Anonymize Free
Security Tool

RSA Key Generator

Generate RSA public and private key pairs in PEM format. Server-side generation using OpenSSL — keys are never stored.

⚙️ Key Settings
Key size:
🔒 Privacy notice: Keys are generated server-side using PHP's OpenSSL library. They are never logged, stored or transmitted beyond your browser session. For maximum security, generate keys offline using openssl genrsa -out private.pem 2048.

Frequently Asked Questions

What are RSA keys used for?
RSA key pairs are used for public-key cryptography: encrypting data that only the private key holder can decrypt, digitally signing messages to prove authenticity, and authenticating SSH connections to servers without passwords. The public key can be shared freely while the private key must be kept secret.
What key size should I generate?
2048-bit RSA is the current minimum recommended and is suitable for most uses. 4096-bit keys provide stronger security for high-value applications. For new projects, consider ECDSA keys instead — 256-bit ECDSA provides equivalent strength to 3072-bit RSA with much better performance.
Is it safe to generate RSA keys in a browser tool?
The key generation uses the browser's Web Crypto API, which implements cryptographically secure random number generation. Keys are generated entirely on your device and never transmitted to any server. For production use on critical systems, generating keys using OpenSSL on a trusted machine is considered best practice.
What key size should I use?
2048-bit RSA is the current standard recommended by NIST and is used by most SSL certificates and SSH keys. 4096-bit provides extra security at the cost of slower operations — use it for long-term key storage. 1024-bit is obsolete and should not be used.
What is RSA used for?
RSA is used for SSL/TLS certificates, SSH authentication, email encryption (PGP/GPG), code signing and secure key exchange. The public key encrypts data; only the private key can decrypt it.
What is PEM format?
PEM (Privacy Enhanced Mail) is a Base64-encoded format for cryptographic keys and certificates, wrapped in header and footer lines like -----BEGIN RSA PRIVATE KEY-----. It is the most widely supported format for OpenSSL, nginx, Apache and most programming languages.
🛡️
Your IP address and DNS queries are visible to your ISP. Protect your privacy with a trusted VPN — tested and recommended by Anonymiz.
See Recommended VPNs →

What an RSA key pair is

RSA uses two mathematically linked keys. The public key can be shared with anyone; the private key must stay secret. Data encrypted with the public key can only be decrypted with the private key, and a signature made with the private key can be checked by anyone who has the public key. This tool generates a pair in PEM format for testing, development and learning.

Choosing a key size

Common uses

Keep production keys off the web

Treat a key created in any online tool as a test key. For anything protecting real data or real users, generate the key on the machine that will use it, for example with openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:3072 -out private.pem, and make sure only the right people can read the file. Anyone holding the private key can read what was encrypted for it and sign as you.

Related articles

Related Tools

🔏
Hash Generator
Generate MD5, SHA-256 hashes
🔐
Bcrypt Generator
Generate bcrypt password hashes
🎲
Password Generator
Generate strong passwords
🔓
JWT Decoder
Decode and inspect JWT tokens
🔒
SSL Certificate Check
Check SSL certificate validity
📋
JSON Formatter
Format and validate JSON
Done!