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.
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.
| Format | Extensions | Encoding | Contains | Typically used on |
|---|---|---|---|---|
| PEM | .pem, .crt, .cer, .key | Base64 text | Certificate, chain and/or private key | Apache, Nginx, Linux servers, most control panels |
| DER | .der, .cer | Binary | One certificate or key | Java platforms and some appliances |
| P7B (PKCS#7) | .p7b, .p7c | Base64 text or binary | Certificates and chain only — no private key | Windows, Tomcat, Java |
| PFX (PKCS#12) | .pfx, .p12 | Binary, password-protected | Certificate, chain and private key | Windows 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.
openssl x509 -in certificate.pem -outform DER -out certificate.deropenssl x509 -inform DER -in certificate.der -outform PEM -out certificate.pemopenssl crl2pkcs7 -nocrl -certfile certificate.pem -out certificate.p7bopenssl pkcs7 -in certificate.p7b -print_certs -out certificate.pemopenssl pkcs12 -export -out certificate.pfx -inkey private.key -in certificate.crt -certfile ca-bundle.crtopenssl pkcs12 -in certificate.pfx -out certificate.pem -nodesWhy 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.
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 SSLSSL Certificate Decoder
Paste a PEM or CRT certificate to read the subject, SAN list, validity dates, issuer and signature algorithm.
Decode SSLCertificate 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 KeysDKIM 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 DKIMBIMI Record Checker
Check your BIMI record and VMC certificate to see if your brand logo can appear beside emails in supported inboxes.
Check BIMICSR Decoder
Paste a CSR to read its common name, organization, key size and signature algorithm before you send it to a Certificate Authority.
Decode CSRFrequently 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.
