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) with standard headers (-----BEGIN PUBLIC KEY-----, etc.). Ready for use with OpenSSL, SSH, and most cryptographic libraries.

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?

The generated PEM keys can be converted to SSH format using OpenSSL commands. The tool exports standard keys compatible with SSH key generation tools.

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