Skip to content
browserutils

RSA Key Generator

Generate RSA public/private key pairs

RSA Key Generator is a free online tool from BrowserUtils that generate rsa public/private key pairs. It runs entirely in your browser — your data never leaves your device. No account required.

Key Size:

How to use RSA Key Generator

  1. 1 Paste or type your input into the editor above.
  2. 2 The tool processes your data instantly — right in your browser, with nothing sent to a server.
  3. 3 Copy the result with one click or continue editing your input.

About RSA Key Generator

Free online RSA key pair generator. Create 2048-bit or 4096-bit RSA keys in PEM format using the Web Crypto API for secure asymmetric encryption. This tool runs entirely in your browser — your data is never sent to a server. Just paste your input, get instant results, and copy with one click. No sign-up or installation required.

RSA Key Generator specs

Runtime
100% client-side (browser)
Built on
Web Crypto API (SubtleCrypto) for hashing and crypto.getRandomValues for secure randomness
Cost
Free — no account, no rate limits, no usage caps
Browser support
Chrome 90+, Firefox 88+, Safari 14+, Edge 90+
Part of
299 developer tools on BrowserUtils (100% client-side)

Questions

What key size should I use?
2048-bit keys are considered secure for most applications. Use 4096-bit keys for extra security, though they are slower to generate and use.
Are these keys generated securely?
Yes. Keys are generated using the Web Crypto API which uses a cryptographically secure random number generator. Keys never leave your browser.
What is the difference between public and private keys?
The public key can be shared freely and is used to encrypt data or verify signatures. The private key must be kept secret and is used to decrypt data or create signatures.
RSA vs Ed25519: which should I use?
Ed25519 keys are shorter, faster, and considered more secure for new projects. RSA is more widely supported, especially in legacy systems. For SSH, Ed25519 is the recommended choice.
Can I use these RSA keys for SSH authentication?
Yes, the generated PEM-format keys can be used for SSH. Save the private key to a file, set permissions to 600, and add the public key to the server authorized_keys file.
How long does it take to generate a 4096-bit RSA key?
Generation time depends on your device. A 2048-bit key typically takes under a second, while a 4096-bit key may take a few seconds on slower devices since the browser must find large prime numbers.
Embed this tool

Copy this code to embed the tool on your website. Adjust the height to fit your layout.

<iframe src="https://www.browserutils.dev/embed/rsa-key-generator" width="100%" height="500" frameborder="0" title="RSA Key Generator"></iframe>

Related tools

More Hashing & Crypto

View all Hashing & Crypto tools