# Key Pair Generator

Generate public/private key pairs for various cryptographic algorithms

> Canonical page: https://elysiatools.com/en/tools/key-pair-generator

- **Category:** Security

- **Keywords:** key, pair, generator, public, private, cryptographic, RSA, ECC, key pair generator

## Overview

The Key Pair Generator is a secure utility designed to create public and private key pairs for various cryptographic standards, including RSA, ECC, and Ed25519. It allows developers and security professionals to quickly generate cryptographically strong keys in multiple output formats for use in authentication, data encryption, and digital signatures.

## Inputs

- **Algorithm** (select)
- **Key Size** (select)
- **Output Format** (select)

## When to use

- Setting up SSH access for remote servers or cloud instances.
- Implementing asymmetric encryption for secure data transmission.
- Generating credentials for signing digital documents or software packages.

## How it works

- Select your preferred cryptographic algorithm from the available options.
- Choose the appropriate key size to meet your security requirements.
- Select your desired output format, such as PEM, Hex, or Base64.
- Click generate to instantly produce your unique public and private key pair.

## Use cases

- Generating unique identity keys for API authentication.
- Creating secure key pairs for local development environments.
- Preparing cryptographic assets for secure communication protocols.

## Frequently asked questions

### Are the generated keys secure?

Yes, the tool uses standard cryptographic libraries to generate high-entropy keys suitable for secure applications.

### Where are my keys stored?

This tool generates keys locally in your browser; no keys are stored or transmitted to our servers.

### Which algorithm should I choose?

RSA is widely compatible, while ECC and Ed25519 offer higher security with smaller key sizes, making them ideal for modern applications.

### Can I use these keys for SSH?

Yes, you can generate RSA or Ed25519 keys and save them in PEM format for use with SSH clients.

### What is the difference between PEM, Hex, and Base64?

These are simply different encoding formats for the same raw key data; PEM is the most common standard for file-based storage.

## Related tools

- [AGEX Keypair Generator](https://elysiatools.com/en/tools/agex-keypair-generator): Generate an Ed25519 keypair for AGEX bundle signing and verification
- [ML-KEM / Kyber Keypair & Encapsulation Tester](https://elysiatools.com/en/tools/ml-kem-kyber-keypair-and-encapsulation-tester): Generate ML-KEM-512/768/1024 (FIPS 203 / CRYSTALS-Kyber) keypairs, encapsulate a random shared secret against the public key, decapsulate it with the private key, and verify both sides match — with the exact wire sizes of all three parameter sets checked live against the standard.
- [RSA Key Pair Generator](https://elysiatools.com/en/tools/rsa-key-generator): Generate an RSA key pair (2048/3072/4096-bit) as PEM-encoded public and private keys. Optionally encrypt the private key with a passphrase. PKCS#8 (recommended) or PKCS#1 private key format. Everything runs locally.
- [Password Generator](https://elysiatools.com/en/tools/password-generator): Generate secure random passwords
- [Env File Secret Rotation Planner](https://elysiatools.com/en/tools/env-file-secret-rotation-planner): Paste a .env file and get a staged secret-rotation plan. Detects database URLs, API keys, auth tokens, private keys, cloud credentials, payment keys and encryption secrets, scores each by exposure and age, and schedules them across a 4-week rotation timeline with a dual-key checklist and a generated .env.example. Optional last-rotated dates and a configurable cadence (30/90/180/365 days) drive compliance scoring.
- [Digital Signature Generator](https://elysiatools.com/en/tools/digital-signature-generator): Sign a message with a private key or verify a signature with a public key — supports RSA-PSS (SHA-256), ECDSA (P-256), and Ed25519. Pure client-side crypto (Node crypto.createSign/createVerify), no network. Paste a PEM key to sign or to verify a base64 signature. This tool signs/verifies; it does not generate key pairs.
- [JWK Generator & Parser](https://elysiatools.com/en/tools/jwk-generator): Generate JSON Web Keys (JWK) for RSA, EC (P-256/P-384/P-521/secp256k1), and OKP (Ed25519/Ed448/X25519/X448), or parse an existing JWK to inspect its parameters, thumbprint, and metadata
- [PKCE Code Verifier & Challenge Generator](https://elysiatools.com/en/tools/pkce-code-verifier-generator): Generate, validate and verify OAuth2 / OIDC PKCE (RFC 7636) code_verifier and S256 code_challenge pairs. Three modes: (1) generate a fresh verifier + challenge from cryptographically secure random bytes at 256/384/512/768-bit entropy, (2) audit a verifier you already have against the RFC — length (43–128), charset \[A-Za-z0-9-._~\] and ≥256-bit entropy, and (3) verify a verifier/challenge pair by recomputing BASE64URL(SHA256(verifier)). Optionally build the full authorization-request URL and token-exchange body. Complements the generic nonce-generator (which only emits a verifier+challenge pair) with RFC-compliance auditing and pair verification.

## Samples

- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion
- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Web Image Processing Rust Samples](https://elysiatools.com/en/samples/web-image-processing-rust): Web Rust image processing examples including image read/save, scaling, and format conversion

## Related content

- [Key Material Generation and Public-Key Recording](https://elysiatools.com/en/hubs/key-material-generation-and-recording): Generate or validate a BIP39 mnemonic or create an asymmetric key pair, then record only public material while keeping private material out of uploads, articles, and logs.
