Key Pair Generator: Create RSA, ECDSA, and Ed25519 Keys
The Key Pair Generator creates an asymmetric public and private key pair in your browser using WebCrypto. Choose RSA (2048, 3072, or 4096), ECDSA (P-256, P-384, or P-521), or Ed25519. Copy the public key as PEM (SPKI) or JWK and the private key as PEM (PKCS8) or JWK; keys stay on your device.
The Key Pair Generator creates an asymmetric public and private key pair in your browser with WebCrypto. It supports RSA using RSASSA-PKCS1-v1_5 with key sizes of 2048, 3072, or 4096; ECDSA with P-256, P-384, or P-521; and Ed25519. The tool is free, and you can copy the key format your project expects.
For each generated pair, the public key can be exported as PEM (SPKI) or JWK, while the private key can be exported as PEM (PKCS8) or JWK. Choose an algorithm and its available size or curve option before generating. These formats provide different ways to represent key data, so selecting the one expected by your development tool can make it easier to use the generated values in tests, fixtures, or seed data.
PEM encodes key data in a text-friendly form, while JWK represents key data as a JSON object. The tool offers both formats for public and private keys, with PEM using SPKI for public keys and PKCS8 for private keys. Generate a pair when you need matching public and private key values rather than creating example strings manually.
Generation runs entirely in your browser. Keys are not sent to a server, and the page has no server dependency, so the tool continues to work offline after it has loaded. This makes it useful when you want to create and copy key values without uploading them.
Developers and DevOps engineers can use the Key Pair Generator to prepare values for tests, fixtures, sample data, or development workflows that need a specific algorithm and export format. Choose the supported options, generate the pair, and copy the outputs your project requires.
Step 1: Choose the key algorithm and any available size or curve option. RSA supports 2048, 3072, and 4096; ECDSA supports P-256, P-384, and P-521.
Step 2: Generate the key pair in your browser. The tool creates a public key and a private key using WebCrypto.
Step 3: Choose the output format your tool or project expects. Public keys are available as PEM (SPKI) and JWK; private keys are available as PEM (PKCS8) and JWK.
Step 4: Copy the public key, private key, or both. Keep the private key protected when using it outside a test or development context.
Use case: Create key-pair values for tests, fixtures, or seed data instead of writing sample values by hand.
Use case: Generate a batch of key pairs when you need multiple values for testing or sample data.
Use case: Use properly generated random key values rather than values guessed or typed manually.
Use case: Prepare public and private keys in PEM format for a tool or project that expects SPKI and PKCS8.
Use case: Export keys as JWK when a development workflow expects that JSON-based key format.
Use case: Compare supported RSA, ECDSA, and Ed25519 key formats while working on an application or test setup.