Convert certificates between PEM, DER, P7B/PKCS#7, and PFX/PKCS#12 formats. Upload your files or paste the data below.
The PEM format is the most common format that Certificate Authorities issue certificates in. It is Base64-encoded ASCII with -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- header/footer lines.
Used by: Apache, Nginx, HAProxy, cPanel, most Linux/Unix based web servers. PEM files can contain the server certificate, intermediate certificates, and the private key — though most platforms (like Apache) expect them in separate files.
File extensions: .pem, .crt, .cer, .key
A binary form of a certificate instead of the ASCII PEM format. DER files are not human-readable in a text editor. All types of certificates and private keys can be encoded in DER format.
Used by: Java platforms (Java KeyStore, Tomcat), some embedded devices. DER files often have a .cer extension — the only way to distinguish them from PEM .cer files is to open them in a text editor and check for the BEGIN/END lines.
File extensions: .der, .cer
Stored in Base64 ASCII format with -----BEGIN PKCS7----- header. P7B files contain only certificates and chain certificates — they do not include the private key.
Used by: Microsoft Windows (Certificate Export Wizard), Java Tomcat, IIS. P7B is the format used by Windows when exporting certificates with their chain.
File extensions: .p7b, .p7c
A binary format that bundles the server certificate, any intermediate (chain) certificates, and the private key into a single encrypted file. PFX files are password-protected to secure the private key.
Used by: Microsoft Windows IIS, Windows Certificate Import Wizard, macOS Keychain, VMware. When converting PFX to PEM, OpenSSL extracts all certificates and the private key into one file — you typically need to split them into separate files for Apache/Nginx.
File extensions: .pfx, .p12
For maximum security, convert certificates on your own machine using the OpenSSL commands below:
Security Note
Your private key is processed server-side during conversion to provide instant results. It is never stored, logged, or cached. However, for production or sensitive keys, we strongly recommend using the OpenSSL commands above to convert certificates locally on your own machine.
Formats: PEM, DER, P7B, PFX certificate conversion
Components: Certificate, key, and chain conversion
Security: Password-protected format handling
Output: Converted certificate files with validation