RSA key pair generator

Generate a new random RSA private and public pem certificate key pair.

Enable JavaScript to use the interactive tool. The guide below explains how it works.

RSA Key Pair Generator

What it does

The RSA Key Pair Generator is a secure, browser-based utility for creating asymmetrical cryptographic keys. It generates a Public Key and a Private Key in the standard PEM format. You can customize the strength of the keys by adjusting the bit length, ranging from 256 bits for testing up to 16,384 bits for extreme security.

Why someone uses it

Step-by-step instructions

  1. Choose Bit Length: Enter the number of bits in the Bits field. The industry standard is 2048, while 4096 is used for higher security. The value must be a multiple of 8.
  2. Generate Keys: The tool generates keys automatically. If you want a different set, click Refresh key-pair.
  3. Copy Public Key: Copy the top block of text. This is what you share with others or upload to servers (e.g., your authorized_keys file).
  4. Copy Private Key: Copy the bottom block. Warning: Keep this key secret and never share it.

Examples

FAQs

Common mistakes

Use cases

Related tools

All tools

Guides and articles