Skip to content

JWK to PEM Converter

Convert JSON Web Key (JWK) format to PEM public key format with key metadata.

Input

json
loading editor…

Paste your JWK here...
or drop a file anywhere in this pane

Output

text

Converted PEM will appear here...
press to convert to pem

What Is JWK?

JWK (JSON Web Key) is a JSON-based format defined by RFC 7517 for representing cryptographic keys. It is commonly used in OAuth 2.0, OpenID Connect, and JWT-based authentication systems to convey public keys in a structured, machine-readable JSON format.

This tool is used for:

  • JWT Verification: Convert JWK keys from identity providers into PEM format for use with standard JWT libraries that expect PEM-encoded public keys.
  • OAuth / OpenID Connect: Extract PEM public keys from JWK Sets (JWKS) exposed by authorization servers like Auth0, Okta, or Azure AD.
  • TLS and Certificate Management: Transform JWK format keys into PEM for use with OpenSSL, TLS libraries, and other security tooling.

How to Use JWK to PEM Online

  1. Paste your JWK: Enter your JSON Web Key object, which typically includes kty, n, e, and alg parameters for RSA keys.
  2. Click Convert to PEM: The tool extracts the key parameters and generates a PEM-formatted public key with proper headers and base64 encoding.
  3. Use with your tools: Save the PEM output for use with OpenSSL command-line tools, Node.js crypto module, or any library that expects PEM input.

Frequently Asked Questions

What is the difference between JWK and PEM formats?

JWK is a JSON object that stores key parameters (modulus, exponent) as structured fields, while PEM is a base64-encoded DER format with BEGIN/END headers. PEM is the de facto standard for OpenSSL and many cryptographic libraries, making conversion necessary when integrating JWK-based systems.

Is this tool safe?

Yes. All processing happens 100% client-side in your browser. Nothing is uploaded to any server.

Is this tool free?

Yes, completely free with no usage limits or registration required.

Real-World Examples

Security engineers integrating OIDC authentication often fetch JWKS endpoints from identity providers to validate JWT signatures. The returned JWK keys must be converted to PEM format for use with most JWT verification libraries. This tool streamlines that conversion, saving developers from manually implementing base64url decoding and ASN.1 structure construction.

Related Tools