How do I generate an RSA key pair online?
Select your desired key size (e.g. 2048 or 4096 bits) and click the Generate button. Our tool compiles secure public and private key pairs instantly in your browser. If you need secure passwords instead of SSH keys, check out our
Password Generator.
Is this online RSA key generator safe to use?
Yes, 100%. The key generation logic uses the browser's native window.crypto.subtle Web Cryptography API. Keys are generated entirely inside your local device's memory; they are never uploaded to any external server.
What is the difference between the public and private key?
The public key is used by remote systems (like GitHub or AWS) to encrypt data or authenticate you. The private key resides securely on your computer to decrypt that data or prove your identity. The private key must never be shared.
What key size should I choose for SSH?
For standard setups, 2048 bits is the minimum required and is highly compatible. For maximum security, we recommend choosing 4096 bits.
What format are the generated keys in?
The private key is formatted in standard PEM PKCS#8 (labeled BEGIN PRIVATE KEY), and the public key is formatted in PEM SubjectPublicKeyInfo (SPKI) (labeled BEGIN PUBLIC KEY).
How do I use these keys in my Linux server?
Save the private key as a file (e.g., id_rsa) and run chmod 600 id_rsa. Save the public key in your server's ~/.ssh/authorized_keys file.
What is the public exponent used?
The generator utilizes the standard exponent 65537 (expressed as [0x01, 0x00, 0x01] or AQAB in base64), which is the security industry standard for optimal encryption efficiency and safety.
Does the generator support SSH-DSS or DSA keys?
No, DSA/DSS is deprecated and insecure. Our tool focuses on generating secure, modern RSA key pairs which are fully supported by all modern SSH implementations.
Can I download the keys directly?
Yes. Click 'Download Private Key' or 'Download Public Key' inside the header panels to write the key files directly to your downloads directory.
Why does generating a 4096-bit key take slightly longer?
Finding prime numbers of larger bit sizes requires more mathematical checks. A 4096-bit key search consumes more CPU iterations, resulting in a brief generation pause (usually under 1 second).
Does this tool require internet connection?
No. Once loaded, the key pair generator operates 100% offline since the Web Cryptography engine resides completely inside your browser.
How do I add these keys to my GitHub account?
Copy the generated Public Key, log in to your GitHub account settings, navigate to "SSH and GPG keys", click "New SSH Key", and paste the public key there.
Can I verify the integrity of my key pair?
Yes, you can calculate the SHA-256 hash checksum of your keys using our
Hash Generator to verify that files match.
What is PKCS#8 format?
PKCS#8 is a standard syntax for cryptographic private key information, widely used to represent RSA, ECC, and private key structures with uniform formatting.
Can I generate multiple key pairs in sequence?
Yes. Each click of 'Generate Key Pair' generates a completely unique, randomized cryptographic key pair, replacing the old outputs.