Crypto & Hashing

Key Pair Generator

Generate RSA, ECDSA, and Ed25519 key pairs and export them as PEM or JWK.

  • Nothing savedInput and output stay in memory and are gone when you leave this page.
  • Runs in your browserProcessing happens in this page. No application server receives your input.

Key pair

Nothing on this page is saved. Closing or reloading the tab discards it permanently.

What this tool does

Key Pair Generator (T25) generates an Ed25519, RSA (2048, 3072, or 4096 bits), or ECDSA (P-256, P-384, or P-521) key pair in your browser and exports it as RFC 7468 PEM (64-character line width), JWK, and (for RSA and Ed25519) an OpenSSH authorized_keys public key line.

Nothing on this page is saved. Closing or reloading the tab discards it permanently.

Supported algorithms and execution model

FamilySizes / curvesExecutionExport formats
Ed25519256-bit (RFC 8032 / RFC 8410)Main thread via audited @noble/curves/ed25519 and randomBytes(32)PEM (SPKI / PKCS#8), JWK (OKP), OpenSSH (ssh-ed25519)
RSA2048, 3072, 4096 bitshash.worker.ts (keygen task via crypto.subtle)PEM (SPKI / PKCS#8), JWK, OpenSSH (ssh-rsa)
ECDSAP-256, P-384, P-521hash.worker.ts (keygen task via crypto.subtle)PEM (SPKI / PKCS#8), JWK

Examples and reference output

Generating an Ed25519 key pair produces a 32-byte private key wrapped as a 119-character PKCS#8 PEM block, a 44-byte SPKI public key PEM block, and an ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI... line ready to paste into authorized_keys.

Limits and non-goals

Public-key export only for OpenSSH: no OpenSSH private key format, which is its own container with its own KDF. No passphrase-encrypted PKCS#8. No X.509 certificate: issuing one needs a subject, an issuer, and a validity policy, none of which belong in a one-click generator. Reading an existing key or certificate is T34, not this tool.

  • Error reference:
    • This tool needs the Web Crypto API, which browsers expose only over HTTPS or on localhost. This page is served over plain HTTP, so the operation cannot run here.
    • Key generation was cancelled. No key was produced.
    • This browser does not support rsa-4096.
    • OpenSSH export is not available for ECDSA in this tool. Use PEM.

Related tools

Scope: this covers the page itself. Your browser, operating system, clipboard, downloads, extensions, and crash recovery may keep copies, and a compromised site origin would not be protected.