Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Hashing & Crypto

Cryptographic Keypair Generator

Create a brand-new public/private key pair entirely on-device with the Web Crypto API. Choose RSA (2048–4096), ECDSA (P-256 or P-384) or Ed25519, copy out the private key (PKCS#8) and public key (SPKI) as PEM, and optionally sign the message in the input box to confirm the pair works.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Options

Your result will appear here

Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.

How it works

What this generates

Pick an algorithm from the panel, RSA 2048, 3072 or 4096, ECDSA on P-256 or P-384, or Ed25519, and this calls the Web Crypto generateKey to mint a brand-new pair in memory. The result table shows the algorithm, key size, a SHA-256 fingerprint of the public SPKI bytes, and both keys as PEM blocks you copy out, the private one in PKCS#8 and the public in SPKI.

Why the sign-and-verify step is there

With Sign the input text on, whatever you typed is signed with the fresh private key and the signature is checked against the public key, so the exported pair is proven coherent before you use it. That catches a mistyped or truncated PEM early rather than at 2 a.m. on a production server.

How the PEMs behave outside the browser

Private key PKCS#8 and public key SPKI are the plain, unencrypted forms that openssl genpkey and openssl rsa or ec write accept, so the blocks drop straight into key files or OpenSSL pipelines. No passphrase is baked in, so wrap a stored key with something like openssl pkcs8 -topk8 if you need it encrypted at rest.

Caveats about size and safety

Larger RSA keys must search for ever-bigger primes and can take several seconds, so RSA-4096 feels slow rather than broken. Ed25519 is the smallest and fastest choice here. Because the key lives only in memory and clipboard history, it suits short-lived test and development keys, not long-lived production secrets you would back up on trusted hardware.

Questions

Are the keys stored anywhere?

No. Keys are generated in memory with the browser’s secure random generator, shown once, and discarded when the page reloads. Copy both keys before leaving — they cannot be recovered.

Are the exported PEMs OpenSSL compatible?

Yes. The private key is standard PKCS#8 (no encryption) and the public key is SPKI, the formats openssl genpkey and openssl rsa/ec write. Wrap them in a password with tools like openssl pkcs8 -topk8 if you store them.

Should I generate production keys this way?

For anything long-lived, prefer generating keys on a trusted machine or hardware token and backing them up offline. Browser-generated keys are convenient and cryptographically random, but the private key lives only in your clipboards history.

What does sign-and-verify prove?

It proves the exported pair is coherent: the signature made with the private key verifies against the public key. Useful right after generating keys to catch copy/paste errors.

Why is RSA-4096 slow?

Finding two 2048-bit primes takes a few seconds of computation. If the page seems frozen, it is working — larger keys are safer but slower both here and on every sign/verify.

See category