About PEM to DER Converter
Servers, Java keystores, Windows and embedded devices disagree about whether a certificate or key should be PEM text (the -----BEGIN----- form) or binary DER. Paste PEM, Base64 or hexadecimal, or open a .pem, .crt, .cer, .der or .key file, and download it in the other form.
Each block is identified from its structure, not its file name: certificate, signing request, CRL, public key, or a private key in PKCS #8, PKCS #1 or SEC 1 form, with its algorithm and size. A whole chain is split into its certificates. Keys never leave your device.
How it works
- PEM is DER encoded in Base64 between a BEGIN and an END line. Converting is decoding or encoding that Base64 and choosing the label; the bytes inside never change.
- Every block is read as DER, strictly: a structure with a wrong length, extra bytes after it, or BER-only features is reported rather than passed on.
- The kind is recognised from the shape of the structure, so a mislabelled file is caught and its correct label offered. You can still choose any label yourself.
Questions
Which should I use, PEM or DER?
Use what the receiving software asks for. Linux servers, nginx and most libraries read PEM; Java, Windows and many devices prefer DER files named .cer or .der. A .crt file can be either, which is why the tool looks at the contents.
Can it convert an encrypted private key?
A PKCS #8 key marked ENCRYPTED PRIVATE KEY converts like any other block, staying encrypted. Keys encrypted in the older OpenSSL style, with a Proc-Type header, are not DER until decrypted and are refused with an explanation.
Is it safe to paste a private key here?
The conversion runs entirely in this page, and nothing is uploaded or stored. Still, treat a private key as you would a password and paste it only on a device you trust.
How much can I convert at once?
Text or a file of up to 1 MB, holding up to 50 PEM blocks, which covers any certificate chain.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.