Unlock Exclusive Discounts on SSL Certificates – Save Up to 80% for a Limited Time! View Deals

SSL Converter

Use this SSL Converter to convert SSL certificates to and from different formats such as PEM, DER, P7B and PFX. Different platforms and devices need different formats. Windows (IIS) server imports .pfx files, while Apache and Nginx use PEM (.crt, .cer or .pem) files. Choose your certificate file, pick its current type and the type to convert to, then click Convert Certificate.

Certificate Conversion Options

Certificate File to Convert
No file chosen
Accepted: .pem .crt .cer .key .der .p7b .p7c .pfx .p12

Privacy note: Files you upload are processed in memory and deleted as soon as the conversion finishes. A private key should stay on your own server whenever possible. If you can, convert locally with the OpenSSL commands below.

SSL certificate formats explained

Which format you need depends on the server or device you are installing the certificate on.

FormatExtensionsEncodingContainsTypically used on
PEM.pem, .crt, .cer, .keyBase64 textCertificate, chain and/or private keyApache, Nginx, Linux servers, most control panels
DER.der, .cerBinaryOne certificate or keyJava platforms and some appliances
P7B (PKCS#7).p7b, .p7cBase64 text or binaryCertificates and chain only — no private keyWindows, Tomcat, Java
PFX (PKCS#12).pfx, .p12Binary, password-protectedCertificate, chain and private keyWindows IIS, Azure, Exchange, importing into browsers

Convert with OpenSSL yourself

Prefer to keep your files on your own machine? These OpenSSL commands do the same conversions locally.

PEM to DER openssl x509 -in certificate.pem -outform DER -out certificate.der
DER to PEM openssl x509 -inform DER -in certificate.der -outform PEM -out certificate.pem
PEM to P7B openssl crl2pkcs7 -nocrl -certfile certificate.pem -out certificate.p7b
P7B to PEM openssl pkcs7 -in certificate.p7b -print_certs -out certificate.pem
PEM to PFX openssl pkcs12 -export -out certificate.pfx -inkey private.key -in certificate.crt -certfile ca-bundle.crt
PFX to PEM openssl pkcs12 -in certificate.pfx -out certificate.pem -nodes

Why Convert Your SSL Certificate?

Most CAs deliver certificates as PEM files, but IIS, Azure and Java platforms need other formats. Converting early avoids a failed installation.

Match Your Server's Format

IIS and Azure App Service use a PFX, Apache and NGINX use PEM, and Tomcat uses a JKS or PKCS#12 keystore. Convert once instead of fighting installation errors.

Keep the Whole Chain

P7B holds your certificate chain without the private key, and a PFX can hold the certificate, chain and key together. A complete chain helps avoid “not trusted” warnings.

Checked Before You Download

When you create a PFX, the tool checks that your private key belongs to the certificate, so you do not install a pair that will never work.

4 Formats: PEM, DER, P7B, PFX
12 Conversion Paths Supported
0 Files Stored On Our Servers
24/7 SSL Technical Engineers

Explore More SSL & Certificate Tools

SSL Certificate Checker

Check the certificate on any public hostname for trust status, days left, TLS protocols, cipher suites and security headers.

Check SSL

SSL Certificate Decoder

Paste a PEM or CRT certificate to read the subject, SAN list, validity dates, issuer and signature algorithm.

Decode SSL

Certificate Key Matcher

Check if a private key matches your SSL certificate or CSR by comparing public modulus hashes, and avoid install errors from a mismatched key.

Match Keys

DKIM Record Checker

Look up a DKIM record by domain and selector to check that the public key for your signed email is published correctly. DKIM can help DMARC pass.

Check DKIM

BIMI Record Checker

Check your BIMI record and VMC certificate to see if your brand logo can appear beside emails in supported inboxes.

Check BIMI

CSR Decoder

Paste a CSR to read its common name, organization, key size and signature algorithm before you send it to a Certificate Authority.

Decode CSR

Frequently Asked Questions

PEM is Base64 text and the most common format. DER is the same data in binary. P7B (PKCS#7) bundles several certificates, such as your certificate and its intermediates, but never a private key. PFX / P12 (PKCS#12) is a password-protected binary file that holds the certificate, the chain and the private key together.

An SSL converter changes a certificate file from one format to another, such as PEM, DER, P7B and PFX. It does not change the certificate itself, only how it is stored so your server can read it.

Select your PEM file, choose PEM as the current type and PFX as the target, then convert. A PFX needs the certificate, the private key and the chain. With OpenSSL, use openssl pkcs12 -export with -inkey and -certfile.

Run openssl pkcs12 -in certificate.pfx -out certificate.pem and enter the PFX password. The output holds the certificate, chain and private key. Split them into separate files for Apache or NGINX, and protect the key.

A .crt or .cer file may already be PEM. Open it in a text editor. If it starts with -----BEGIN CERTIFICATE-----, it is PEM. If it is binary, convert it from DER to PEM.

Use the tool with P7B as the current type and PEM as the target, or run openssl pkcs7 -in certificate.p7b -print_certs -out certificate.pem . A P7B holds certificates only, so it never contains a private key.

A PFX bundles the certificate, chain and private key in one file, so OpenSSL needs the key to build it. The error “No certificate matches private key” means the key is wrong. Check the pair with the Key Matcher.

Azure App Service needs a password-protected PFX with the full chain. OpenSSL 3 encrypts a PFX with AES-256 by default. If the import fails, add -keypbe PBE-SHA1-3DES -certpbe PBE-SHA1-3DES -macalg SHA1, as Microsoft advises.

A certificate is public, but a private key is not. Convert files that hold a key on your own server with the OpenSSL commands on this page. This tool deletes uploads after conversion.

Install the file, then run the SSL Certificate Checker to confirm the chain, expiry date and TLS protocols. Use the SSL Certificate & Private Key Matcher to confirm that the key belongs to the certificate.