Skip to main content
Toolzum

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.

100% Local Browser Native

How to Use the RSA Key Pair Generator

1. Set options

Adjust the settings for RSA Key Pair first.

2. Generate

Create your RSA Key Pair with one click.

3. Copy and reuse

Copy what you need; rerun for a fresh batch.

Similar Tools You Might Need

See all

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.

Last updated October 2026