OmniConvert

Convert PEM to JWK

Convert a PEM public key or certificate to a JSON Web Key with a SHA-256 key ID

Drop a file or click to browse

Accepted: .pem,.pub,.crt

or paste below

Free and unlimited for files up to 5 MB. No account needed.

Related Security conversions

About this conversion

Convert a PEM public key or certificate to a JSON Web Key with a SHA-256 key ID. This converter processes your PEM public key file server-side and returns a JWK file instantly — no account, no software installation, and no file storage. Files are deleted from our servers immediately after conversion.

Learn more: PEM / DER / CER / CRT file format explained

How to convert PEM public key to JWK

  1. 1. Upload — drag your PEM public key file onto the converter above, or click to browse.
  2. 2. Convert — press Convert. Processing happens on secure servers in seconds.
  3. 3. Download — your JWK file downloads automatically. No sign-up required.

Convert PEM public key to JWK from the command line

curl --fail-with-body \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -F "file=@input.pem" \
  -F "conversionId=pem-to-jwk" \
  https://www.omniconvert.cloud/api/convert -o output.json

The API needs a token from a credit pack, and each API conversion uses one credit. Converting on this page stays free. API documentation

Frequently Asked Questions

Can I upload a certificate instead of a public key?
Yes. For a PEM certificate, the public key inside it is converted. Private keys are refused, because they should never be uploaded to an online tool.
How is the "kid" chosen?
It is the base64url SHA-256 hash of the key in DER (SubjectPublicKeyInfo) form, so the same key always gets the same ID. Replace it if your system expects a different key ID.
How do I convert PEM public key to JWK?
Upload your PEM public key file above, click Convert, and download the JWK result instantly. No account or software needed.
Is converting PEM public key to JWK free?
Yes. It is free and unlimited for files up to 5 MB, with no account required. Larger files get 3 free conversions per day; beyond that, credit packs start at $3 and credits never expire.
Are my files stored or shared?
No. Files are processed in server memory and deleted immediately after conversion. File contents are never written to disk or retained.
Do I need to install anything?
No software installation needed. OmniConvert runs in the browser — just upload, convert, and download.

No account needed · Credits never expire · Share your token link across devices