← All tools

PEM ↔ JWK Converter

Convert RSA, EC (P-256, P-384, P-521) and Ed25519 keys between PEM and JSON Web Key locally.

pem-to-jwk-converterLOCAL WORKSPACE

Enabling local controls…

Use public keys or disposable test private keys. Conversion runs locally without uploading or storing your key.

One key, up to 32 KiB. Use SPKI PUBLIC KEY or unencrypted PKCS#8 PRIVATE KEY. Private RSA JWKs need the CRT fields p, q, dp, dq and qi. Certificates, legacy PKCS#1/SEC1, encrypted keys and JWK Sets are unsupported.

Sources reviewed 2026-11-21: RFC 7468 · PEM · RFC 7517 · JWK · RFC 8037 · Ed25519

Convert a key to see the result.

How to use this tool

Choose a direction, enter one key and convert locally. For RSA → JWK, the hash sets the JWK alg field. PEM exports contain key material without JWK metadata such as alg, kid, or x5c.

When not to use it

Use a public key or a disposable test private key. Private-key output still contains the secret and should be kept private.