Tool Hub

RSA Key Pair Generator

Generate an RSA key pair (2048/4096 bit) and export as PEM (WebCrypto)

Generate an RSA key pair in your browser and export it as PEM. The private key never leaves this page.

How to use

  1. Choose a key size: 2048 bits for general use or 4096 bits for higher security.
  2. Click 'Generate key pair'; the browser's Web Crypto API generates the keys locally.
  3. Copy the public key PEM from the first output box to share with servers or services.
  4. Copy the private key PEM from the second output box and store it securely.
  5. The private key never leaves this page — all generation runs in your browser.

Examples

  • Selecting 2048 bits and clicking Generate produces a -----BEGIN PUBLIC KEY----- block and a -----BEGIN PRIVATE KEY----- block within a few seconds.
  • Selecting 4096 bits takes a moment longer but produces a significantly longer private key suitable for long-lived certificates.

Verify outputs before using in production. No warranty — see Terms.