JWK and PEM Converter

Convert an RSA public key between JWK and PEM formats, in both directions, in your browser.

Runs in your browser. Nothing is uploaded — your input is processed on this device and discarded when you close the tab.

JWK and PEM Converter

How to use this tool

  1. Enter your values in the fields above.
  2. Press Generate to see the result.
  3. Use Load sample to try the worked example, Copy result to copy it, or Clear to start again.

Worked example

The sample RSA public JWK converts to a PEM block beginning with BEGIN PUBLIC KEY, and converting that PEM back returns the same n and e values.

What this tool does not do / Limits

This tool converts RSA public keys only, in both directions, in your browser. It does not convert private keys, EC keys or other key types, and it never uploads your input. Never paste a real production private key here.

Frequently asked questions

Does it handle private keys?

No. Only RSA public keys are converted; private key input is not supported.

Which directions work?

Both: RSA public JWK to PEM, and PEM public key back to JWK.

Related tools