JWK ↔ PEM Converter
Convert JSON Web Keys to PEM and PEM keys back to JWK.
JWK input
Keys are converted locally with the Web Crypto API — nothing is uploaded.
PEM output
About the JWK ↔ PEM Converter
Convert public and private keys between JWK (JSON Web Key) and PEM (SPKI / PKCS#8) using the browser's Web Crypto API. Supports RSA keys for RSASSA-PKCS1-v1_5, RSA-PSS and RSA-OAEP, and elliptic-curve keys on P-256, P-384 and P-521. The key never leaves your device.
Examples
EC public key
{ "kty": "EC", "crv": "P-256", "x": "...", "y": "..." }Output
-----BEGIN PUBLIC KEY-----Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
Base32 Encoder
Encoders & Crypto
Encode or decode text using RFC 4648 Base32.
Base64 Encoder
Encoders & Crypto
Encode or decode text to/from Base64, UTF-8 safe.
Basic Auth Header Generator
Encoders & Crypto
Build or decode an HTTP Basic Authorization header.
File Base64 Encoder/Decoder
Encoders & Crypto
Convert any file to a Base64 data URI, or decode Base64 back to a file.
HTML Entity Encoder
Encoders & Crypto
Encode or decode HTML entities in text.
JWT Decoder
Encoders & Crypto
Decode a JWT's header and payload, and check expiry.
Frequently asked questions
Read more
- OpenSSL commands and key formats, explained without the man page
CSRs, self-signed certificates, PEM vs DER vs PKCS#8 vs JWK, and how to check what a certificate actually contains.
Version 1.0.0 · Updated 2026-08-22 · Runs entirely in your browser