PEM to JWK converter

OpenSSL writes keys as PEM. OpenID Connect describes them as JSON, in a JWK. This converts one into the other. Paste an RSA or elliptic curve key, private or public, and see the same numbers written the other way.

Paste the whole PEM block, BEGIN and END lines included. Generate one with openssl genrsa or openssl ecparam, or export the public half with openssl pkey -pubout.