Canonical: https://toolipedia.app/key-pair-generator

# Key Pair Generator

Generate an RSA, ECDSA (P-256, P-384) or Ed25519 key pair in your browser and get PEM, OpenSSH or OpenPGP armored output together with the key fingerprint.

Breadcrumbs: Toolipedia > Developer tools > Security and validator tools > Key Pair Generator

## About Key Pair Generator

Creating a key pair normally means a command line. This tool generates the pair in your browser for RSA (2048, 3072 or 4096 bits), ECDSA on P-256 or P-384, or Ed25519, using the browser's secure random numbers and plain JavaScript maths. You choose how it is written: PEM with PKCS#8 and SPKI, the OpenSSH private key and one-line public key for authorized_keys, or an OpenPGP armored block with a user ID and self-signature that GnuPG accepts. It shows the SSH and OpenPGP fingerprints so you can check what you saved.

## How to use Key Pair Generator
1. Choose the key type and the output format, and type a comment or a user ID for OpenSSH or OpenPGP.
2. Press Generate new key pair if you want a fresh one, and wait a few seconds for the larger RSA sizes.
3. Copy or download the private and public keys right away, store the private key safely and share only the public part.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.

## Also known as
- key pair generator
- rsa key generator
- ed25519 key generator
- ecdsa key generator
- openssh key generator
- pgp key generator

## Frequently asked questions

### Which key type should I use for SSH?

Ed25519 is short, fast and widely supported by current OpenSSH. Use RSA of at least 3072 bits only when an older system does not accept Ed25519 or ECDSA.

### Is it safe to generate a private key in a web page?

The key is made on your device and never sent anywhere, but you still rely on this page's code. For high-value production keys, make them with ssh-keygen, OpenSSL or GnuPG on a trusted machine.

### Why does a 4096-bit RSA key take so long?

Finding two large random primes is a search. The time grows steeply with size and varies from run to run, so 4096 bits can take about a minute while Ed25519 is instant.

### Is Key Pair Generator free?

Yes. Key Pair Generator on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

## Related tools

More free tools that go well with Key Pair Generator:
- [Digital Signature Sign and Verify](https://toolipedia.app/digital-signature-sign-verify)
- [RSA Encrypt and Decrypt Tool](https://toolipedia.app/rsa-encrypt-decrypt-tool)
- [API Key and Secret Generator](https://toolipedia.app/api-key-generator)
- [DKIM Key Generator](https://toolipedia.app/dkim-key-generator)
- [JWK and PEM Key Converter](https://toolipedia.app/jwk-pem-key-converter)
