SSL Converter

Convert SSL certificates between PEM, DER and other common formats, so a certificate works with your server or control panel.

PEM and DER are the same data, two encodings

A PEM certificate is just a DER-encoded (binary ASN.1) certificate, base64-encoded and wrapped in -----BEGIN CERTIFICATE----- / -----END CERTIFICATE----- lines so it can be handled as plain text. This tool converts directly between the two: strip the PEM wrapper and base64-decode to get DER bytes, or base64-encode DER bytes and add the wrapper to get PEM. Everything happens in your browser - your certificate is never uploaded anywhere.

Why different systems expect different formats

Some servers and tools (particularly on Windows and in Java environments) expect DER, while most open-source tools (Apache, Nginx, OpenSSL) expect PEM - this covers the conversion either direction needs, which comes up often when moving a certificate between a Windows IIS server and a Linux-based one, or between a Java keystore and an OpenSSL-based tool.

Why DER is a binary format and PEM is text

DER is the raw binary ASN.1 encoding the certificate standard actually defines - compact, but not safely transmittable through systems that expect plain text (like pasting into a config file or an email). PEM exists specifically to solve that: the same binary data, base64-encoded into text-safe characters and wrapped with clear markers, so it survives being copied, pasted, and stored as a plain text file.

Why this tool is scoped to certificates, not private keys

Private keys carry higher-stakes handling considerations than certificates (a certificate is public by design; a private key must stay secret), so converting a private key's format is better handled with a trusted local tool like OpenSSL, run on a machine you control, rather than any web-based converter.

Certificate formats

SSL/TLS certificates come in different file formats, such as PEM, DER, PFX or P12 and P7B. Different servers and platforms expect different ones, so you often need to convert a certificate before installing it.

Choosing the conversion

PEM is text-based and common on Linux and Apache. DER is binary and often used in Java and Windows. PFX or P12 bundles the certificate with its private key and is common on Windows and IIS. Pick the target format your server documents.

Protect your private key

A private key must never be shared. If a conversion involves a key or a password-protected bundle, think carefully before using any online service, and prefer local tools such as OpenSSL for production keys. Test the converted file after installation.

Formats

PEM files are text with BEGIN and END lines and are common on Apache and Nginx. DER is a binary form, PFX or PKCS#12 bundles a certificate and private key and is common on Windows and IIS. Convert to the format your server needs.

Safety

Private keys and PFX passwords are sensitive. Convert on a trusted machine and delete extra copies afterwards.

Install and test

After converting, install the new file and test the site with an SSL checker. Confirm the full chain is present and the private key still matches the certificate.

Frequently asked questions

Does this work for private keys too?

This tool is scoped to certificates specifically. Private key files carry more sensitive handling considerations, so convert those with a trusted local tool like OpenSSL rather than a web-based one.

Why did it say my DER file is invalid?

A valid DER-encoded certificate always starts with the ASN.1 SEQUENCE tag byte (0x30). If your file does not start with that byte, it is either not DER-encoded, already in PEM/text format, or corrupted.

Why do Windows and Java systems often expect DER?

Windows certificate stores and Java keystores historically adopted the binary DER format as their native handling format, while most open-source Unix tooling (OpenSSL, Apache, Nginx) adopted the text-friendly PEM format.

Is my certificate uploaded to a server during conversion?

No - the entire conversion happens locally in your browser using JavaScript. Nothing is sent anywhere.

Can I convert a .crt or .cer file with this tool?

Yes - .crt and .cer are just alternate file extensions commonly used for certificates in either PEM or DER format; the actual format (text vs binary) is what determines which conversion direction you need, not the extension.

What is the difference between PEM and DER?

PEM is a text format with BEGIN and END lines, while DER is the same data in binary form.

Is it safe to convert a PFX online?

It contains a private key, so prefer local conversion for anything important.

Why did my certificate not install?

The format, chain order or missing intermediate certificates are common causes.

More in Technical SEO & Site Management