PEM to DER Converter
Convert certificates, keys and CSRs between PEM text and binary DER files, with the block type detected for you. Hex and Base64 DER are read too.
How to convert PEM and DER
Paste PEM or open a file
Paste a PEM block, Base64 or hex, or open a .der, .cer or .crt file.
Check the type
The block type is detected; choose another if needed.
Download
Save the DER or PEM file.
When to use PEM to DER Converter
A Java keystore, Windows import dialog or embedded device wants a binary .der or .cer file, but you have a PEM certificate.
A file from a device or Windows export is binary and you need it as PEM for a web server or OpenSSL.
Tips for a better PEM to DER Converter result
Choose the label yourself when detection says unknown, for example X509 CRL or PKCS7, so other tools read the PEM correctly.
For a certificate chain, keep the PEM file whole for servers and convert block by block only where each certificate is needed alone.
PEM to DER Converter: limits and what to check
Encrypted private keys stay encrypted after conversion, so you still need the password to use them.
PKCS#12 (.pfx and .p12) files are a different format holding keys and certificates together, and are not converted here.
About PEM to DER Converter
PEM is Base64 text between BEGIN and END lines; DER is the same data in binary. Windows, Java keystores and many devices want DER, while web servers and OpenSSL mostly want PEM. A file with several PEM blocks, such as a certificate chain, gives one DER file per block.
FAQs
Is .cer PEM or DER?
Either. Open it here: text that starts with -----BEGIN is PEM, anything else is read as DER.
How is the type detected?
From the structure of the DER data: certificates, CSRs, public keys and the common private key forms each look different.
Does converting change the certificate?
No. Only the wrapping changes, so fingerprints and signatures stay the same.