JWK Generator — PEM to JWK, JWK to PEM & JWKS Generator | Authgear

JWK Generator — Convert PEM to JWK & Generate JWKS

Generate and convert cryptographic keys in PEM and JWK formats for secure signing and encryption.

PEM to JWK

Enter a PEM encoded key or certificate

Key ID (kid)

**Key Algorithm (alg) **

Key Use (use)

Generate JWK

JWK (JSON Web Key)

Enter a PEM key and click "Generate JWK" to see the output

JWK (JSON Web Key)

Convert to PEM

PEM Output

Enter a JWK and click "Convert to PEM" to see the output

JWK Format Help:

Key Use

Key Type

Supports multiple signature algorithms

Key Algorithm

Key Size (bits)

Key ID (kid) A unique identifier for this key. If left empty, a SHA256 fingerprint will be generated automatically.

Generate Key

Building authentication into your app?
Start Building →

Our lightweight JWK generator runs entirely in your browser — no keys leave your machine. Use it to convert PEM to JWK, convert JWK to PEM, or generate new keys and export a JWKS for your jwks_uri endpoint. Learn more: What is JWKS

How the JWK Generator Works

Step 1.

Convert Between PEM and JWK:

Step 2.

Generate New Keys:

Step 3.

Use Your Keys Securely:

What is a JWK (JSON Web Key)?

A JWK is a JSON data structure that represents a cryptographic key. A JWKS (JSON Web Key Set) is an object with a keys array of JWKs. JWKS is the standard format used by identity providers to publish public keys at a jwks_uri so clients can validate JWT tokens (see RFC 7517).

What is PEM

PEM (Privacy Enhanced Mail) is the base64-encoded format commonly used to store and share cryptographic keys and certificates. Use PEM to JWK conversions to make PEM keys consumable by JWKS endpoints and modern JOSE libraries.

Best Practices