Type a tool name, for example "keyword density" or "transcript".
Convert SSL certificates between PEM, DER, and PFX/PKCS#12 formats.
An SSL converter changes a certificate file from one format to another so the server or app you are using can read it. This free tool converts PEM to DER, DER to PEM, PEM to PFX and PFX to PEM. Upload a file up to 2 MB, pick the target format, and download the result.
SSL certificate formats are different ways of storing the same certificate data in a file. The certificate does not change, only the packaging does. That is why a file that works on one server can fail on another that expects a different format.
Most certificates sold as SSL certificates are used for TLS, the newer protocol, but they are still called SSL certificates and follow the same X.509 standard. The three formats this page handles are listed below.
| Format | Common extensions | Typical use |
|---|---|---|
| PEM | .pem, .crt, .cer, .key | Apache, Nginx and most Linux servers |
| DER | .der, .cer | Java platforms |
| PFX / PKCS#12 | .pfx, .p12 | IIS and Windows, certificate plus key bundle |
PEM is Base64 text wrapped in lines such as -----BEGIN CERTIFICATE-----, so you can open it in any text editor. DER holds the same data as raw binary, so a text editor shows unreadable characters.
A PFX (also called PKCS#12) file bundles the certificate, its private key and optionally the intermediate chain into one password-protected file. Windows and IIS prefer it because you import everything in a single step.
You convert a certificate in a few steps: upload the file, confirm the formats, add extra files if you are building a PFX, and click the button.
To convert a CRT file to PFX, you need the certificate, its private key and ideally the intermediate certificate from your authority. Here is a realistic case.
Your certificate authority sends example-com.crt and intermediate.crt. You generated example-com.key earlier. Your new host runs IIS, which wants a single PFX file.
example-com.crt as the certificate file. The Current Format switches to Standard PEM.example-com.key as the private key and intermediate.crt as Chain Certificate.The result page reads "Converted from PEM to PFX/PKCS#12". Download the file and import it in Windows with the password you chose.
The reverse also works. Upload backup.pfx, leave the format as PFX / PKCS#12, set the target to Standard PEM, enter its password and convert. You get a PEM file you can use on a Linux server.
A successful run shows a summary with the Source Format and the Output Format, plus a download link. Confirm both match what you intended before you deploy the file.
If something goes wrong, the page shows one of these messages:
When a conversion fails, start with the format. A .cer file can be PEM or DER, so the auto-detection assumes PEM and may guess wrong. Open the file in a text editor: readable text with BEGIN CERTIFICATE means PEM, and garbled characters mean DER.
You convert a certificate whenever the system that needs it expects a different format than the one your authority delivered. These are the usual situations.
Note that a .crt file from your authority is usually already PEM. If it opens as text with BEGIN CERTIFICATE, you only need to rename it to .pem, no conversion required.
Careful preparation prevents most failed conversions and broken installs.
Open the converted PEM in a certificate decoder to confirm the domain, issuer and expiry date survived the conversion. After you install it on a live site, run an SSL checker to confirm the chain and expiry look right to visitors.
This converter does four conversions: PEM to DER, DER to PEM, PEM to PFX and PFX to PEM. Other routes are not offered as a single step.
Format detection relies on the file name, so a wrongly named file needs the Current Format set by hand.
Use the converter on this page whenever a server, panel or app rejects your certificate file. Upload it, choose the target format, add the key if you are building a PFX, and download a file that works. For more utilities that help with keys, requests and certificates, browse the security and encryption tools.
Your report has been submitted. We will look into this issue.
A VPN changes your network exit. It does not guarantee anonymity.
Themes, plugins, code, video, audio, graphics & more from 90,000+ authors.
Web Development
Design & Media
Unlimited Access
Explore Envato Market