JWK and PEM Key Converter
Convert a JSON Web Key for an RSA or EC public key into a PEM block, or a PEM public key back into a JWK, without any key library.
- Free
- No sign-up
- Works on any device
About JWK and PEM Key Converter
A JSON Web Key (JWK) and a PEM file can hold the same RSA or elliptic curve public key. This converter turns a JWK into a PEM block and a PEM back into a JWK. It builds the DER bytes itself: RSA keys from the modulus n and exponent e as SubjectPublicKeyInfo or PKCS#1, and EC keys on P-256, P-384, P-521 or secp256k1 from the point x and y. The direction is detected from what you paste. Private keys are refused for your safety, and private parts in a JWK are ignored with a warning. The sample P-256 JWK converts to a PEM beginning MFkwEwYH.
How to use JWK and PEM Key Converter
- Paste a JWK as JSON or a PEM public key; the direction is detected for you.
- For RSA keys, choose between BEGIN PUBLIC KEY and BEGIN RSA PUBLIC KEY output, and add a key id if you want one in the JWK.
- Copy the converted key and check it with openssl or in your application.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
Also known as
Frequently asked questions
Is it safe to paste a key here?
Only public keys should be pasted, and this page refuses private keys. The conversion runs in your browser without sending anything, but you should never paste a private key into any website.
Which key types and curves work?
RSA public keys, and EC public keys on P-256, P-384, P-521 and secp256k1 in uncompressed form. Ed25519 and other key types are not supported.
What is the difference between the two RSA PEM formats?
BEGIN PUBLIC KEY is SubjectPublicKeyInfo, which names the algorithm and works for all key types. BEGIN RSA PUBLIC KEY is the older PKCS#1 form that holds only the modulus and exponent.
Is JWK and PEM Key Converter free?
Yes. JWK and PEM Key Converter on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.