Convert certificates. Simply.

PFX to PEM, CER to PEM, PEM to PFX or P7B – plus CSR creation and certificate inspection. Everything runs locally in your browser, nothing is uploaded.

1Input file

Drag a file here or click to choose
.pem .crt .cer .der .cert .key .p12 .pfx .p7b .p7c
or paste PEM text
Optional: add intermediate certificate / root CA
Drag an intermediate certificate (or root CA) here or click
PEM · DER · PKCS#7 — multiple files allowed
Added certificates are included in the chain when converting to PEM, PKCS#7 and PKCS#12 (order: end-entity → intermediate → root). DER can only hold a single certificate.

2Check chain & extract individually

Root CA, intermediate(s) and end-entity certificate are detected automatically and can be downloaded individually as PEM or DER.

3Target format (convert the whole file)

The output file is named like the uploaded file — only the extension changes to match the target format.

How-to: converting certificates

Every conversion works two ways: right here in the browser or with OpenSSL on the command line. The converter shows the matching command for every step, and the most common ones are listed here too.

Convert PFX / P12 to PEM

Splits a PKCS#12 container into certificate, private key and chain, e.g. for Apache, nginx or HAProxy.

In the converter: Drop the file on the “Convert” tab, enter the password, choose PEM as the target format.

With OpenSSL:
openssl pkcs12 -in bundle.pfx -clcerts -nokeys -out cert.pem
openssl pkcs12 -in bundle.pfx -nocerts -nodes -out key.pem

Convert PEM to PFX / P12

Bundles certificate, key and intermediates into one password-protected file, e.g. for Windows, IIS or Exchange.

In the converter: Drop the certificate, add the key and intermediates, choose PKCS#12 as the target format.

With OpenSSL:
openssl pkcs12 -export -in cert.pem -inkey key.pem \
  -certfile chain.pem -out bundle.pfx

Convert CER / DER to PEM

Turns a binary certificate into the text form starting with -----BEGIN CERTIFICATE-----.

In the converter: Drop the file, the format is detected automatically, choose PEM.

With OpenSSL:
openssl x509 -inform der -in cert.cer -out cert.pem

Convert PEM to DER

Creates the binary form expected by Java, Windows and some appliances.

In the converter: Drop the PEM file or paste the text, choose DER.

With OpenSSL:
openssl x509 -in cert.pem -outform der -out cert.der

Convert P7B (PKCS#7) to PEM

Extracts every certificate of a chain from a P7B file, as delivered by many certificate authorities.

In the converter: Drop the P7B, the chain is shown. Root and intermediates can be downloaded individually.

With OpenSSL:
openssl pkcs7 -print_certs -in chain.p7b -out chain.pem

Convert PEM to P7B (PKCS#7)

Bundles certificate and chain without the private key, e.g. for Windows or Tomcat.

In the converter: Drop certificate and intermediates, choose PKCS#7.

With OpenSSL:
openssl crl2pkcs7 -nocrl -certfile chain.pem -out chain.p7b

Create a CSR

Creates a certificate signing request with subject fields and SANs, using a new or an existing key.

In the converter: Open the “Create CSR” tab, enter common name and SANs, let it generate a key.

With OpenSSL:
openssl req -new -newkey rsa:2048 -nodes -keyout key.pem -out request.csr \
  -subj "/CN=www.example.com" \
  -addext "subjectAltName=DNS:www.example.com,DNS:example.com"

Inspect a certificate and check the key

Shows validity, issuer, extensions and fingerprints and checks whether certificate, key and CSR belong together.

In the converter: Drop the files on the “Inspect” tab, matching pairs are highlighted automatically.

With OpenSSL:
openssl x509 -in cert.pem -noout -text
openssl x509 -in cert.pem -noout -pubkey | openssl sha256
openssl pkey -in key.pem -pubout | openssl sha256

Certificate formats at a glance

FormatFile extensionsEncodingTypical content and use
PEM.pem .crt .cer .keyBase64 textcertificates, keys and chains; default for Apache, nginx and Linux
DER.der .cerbinarya single certificate; common on Windows and Java
PKCS#7.p7b .p7cBase64 or binarycertificate chain without private key; Windows, Tomcat
PKCS#12.pfx .p12binary, password-protectedcertificate, private key and chain in one file; Windows, IIS, Exchange, browser import

Certificate converter FAQ

Is it safe to convert private keys here?

Yes. The conversion runs entirely in your browser; files and passwords are never sent to a server. You can verify this in the network tab of the developer tools or save the page and use it offline.

What is the difference between .crt, .cer and .pem?

The extension says little about the content. A .crt or .cer file can be text (PEM) or binary (DER). The converter detects the format from the content.

Is PFX the same as P12?

Yes. Both extensions stand for PKCS#12, a password-protected container for certificate, private key and chain.

Why does my server need the intermediate certificates?

Browsers only trust the root certificate authority. The server has to send the intermediates so the chain is complete. The converter detects chains, sorts them and verifies the signatures.

Does the converter work offline?

Yes. All libraries are hosted on this site. Save the page and it works without an internet connection.