RSA Key Pair Generator

Generate an RSA public/private key pair in your browser via WebCrypto.

Generated entirely in your browser via WebCrypto. The private key never leaves your device.

Frequently asked questions

What does this tool generate?

It generates an RSA public and private key pair in PEM format directly in your browser using the WebCrypto API. You get both keys ready to copy.

Does my private key leave my device?

No. The key pair is generated locally with WebCrypto, so the private key never leaves your browser or gets uploaded. It stays entirely on your device.

What is the difference between the public and private key?

The public key can be shared and is used to encrypt data or verify signatures, while the private key must be kept secret and is used to decrypt or sign. Together they form a matched pair.

What is PEM format?

PEM is a common text encoding for keys, wrapping the Base64 key data between clear begin and end header lines. It is widely accepted by servers, libraries and tools.

Is a browser-generated key safe to use in production?

WebCrypto uses the browser secure cryptographic implementation, so the keys are properly random, but you must handle and store the private key securely afterwards. Treat the private key with the same care as any production secret.

What key size does it use?

RSA key pairs are generated at a modern secure size suitable for general use. Larger keys are stronger but slower, and the tool picks a sensible default.

Can I generate more than one key pair?

Yes. You can generate a fresh pair each time, and every generation produces a new, independent set of keys. Save each private key before generating another.