🗝️ SSH Public Key Format Converter
Convert an RSA or EC (P-256 / P-384 / P-521) public key between PEM (SPKI, -----BEGIN PUBLIC KEY-----) and OpenSSH (ssh-rsa AAAA… / ecdsa-sha2-… AAAA…) format.
Public keys only. OpenSSH's private key format is a different, more complex
structure (bcrypt KDF, its own container) and is out of scope here. This tool only ever handles public
keys — nothing you paste is sent anywhere, all parsing happens with the Web Crypto API in your browser.
Try a sample key
No key handy? Generate a fresh sample public key to see the conversion in action.