Toolbox / RSA key pair generator Runs in your browser中文
Security & cryptography

RSA key pair generator

Generate RSA key pairs with browser Web Crypto and export SPKI / PKCS#8 PEM or JWK.

Ctrl / ⌘ + Enter Run

Ready when you are

Less switching. More focus.Functional build · Validation in progress

Using this tool

Generate an ephemeral RSA-OAEP test key pair and inspect export formats.

Actions: Generate key pair

Example

Preview of SPKI public and PKCS#8 private PEM blocks; ellipses are not keys and every generated pair differs.

Example action and settings

Action: Generate key pair
RSA bits (2048–8192): 2048
Format: PEM (SPKI / PKCS#8)

Input / action

Result / expected behavior

-----BEGIN PUBLIC KEY-----
…
-----END PUBLIC KEY-----

-----BEGIN PRIVATE KEY-----
…
-----END PRIVATE KEY-----

Available options: RSA bits (2048–8192) · Format

Scope and limitations

  • Key sizes are 2048–8192 in multiples of 256; large keys may be slow and require Web Crypto.
  • Refreshing or closing does not save the private key.

Common mistakes

  • Do not share private keys or treat the page as a key vault; these are RSA-OAEP/SHA-256 keys, not signing certificates.

Related tools

Encrypt / decrypt text PDF signature checker

Privacy and browser support

Input is processed in this browser. Do not use real keys or active sensitive credentials as demonstration data. Device features require browser support and your permission.