Convert certificates, keys, CSRs and bundles between PEM and DER. The file type and correct PEM label are detected from the bytes and checked.
Initializing in your browser…
Generate a certificate signing request and private key in your browser, with SANs and RSA or ECDSA keys, checked before you send it to a CA.
Decode any SSL/TLS certificate in your browser: issuer, dates, host names and extensions in plain words, with host checks and chain verification.
Create a self-signed SSL certificate for local development: host names and IPs that browsers accept, key and .p12 downloads, and server settings.
A colleague sends you a 121-byte binary file called server.key and your web server will not load it. A DER file carries no label, so nothing in its name says what is inside.
The first 24 bytes of the file
3077 0201 0104 2088 112f eaf8 c714 90e0 3b5d 1344 aff4 3e4a
What the converter says, and what it writes
EC PRIVATE KEY 121 DER bytes, read from binary DER A SEC1 ECPrivateKey: the private scalar, the curve and usually the public point. Defined in RFC 5915 section 3. -----BEGIN EC PRIVATE KEY----- MHcCAQEEIIgRL+r4xxSQ4DtdE0Sv9D5Kc6jv2jxR/+wEV4uhWhp+oAoGCCqGSM49 AwEHoUQDQgAEtEkgueZhIh3rtAYv1i9Wlpu0U8OkOuTICDRgZkUEFOlQJbALiN7C GmC7H+8YkvV+yTEj2sRN1bqoPb3Tw+pR+w== -----END EC PRIVATE KEY----- Checked: the PEM below was read back and the bytes came out 121 bytes identical. Read it back: openssl ec -in server.pem -noout -text
The bytes 30 77 open a structure of 119 bytes, 02 01 01 is the version number 1, and 04 20 is a 32-byte private value: the shape of a SEC1 elliptic-curve key, so the label is EC PRIVATE KEY. The label matters because the three private key formats each have their own: PRIVATE KEY for PKCS #8, RSA PRIVATE KEY for PKCS #1 and EC PRIVATE KEY for SEC1. Under the wrong one, OpenSSL and most servers refuse the file with an error that names neither format. The PEM is wrapped at 64 characters, as the standard asks, and reads back to the same 121 bytes.
Convert certificates, signing requests, revocation lists, keys and PKCS #7 bundles between PEM text and DER binary. Drop any file and the converter works out what it holds from the bytes themselves, writes the right PEM label, checks the result reads back identically, and gives you the OpenSSL command to inspect it.
Two forms of the same data. DER is the binary encoding used for certificates and keys. PEM is the same bytes in base64, wrapped at 64 characters a line between a BEGIN and an END line, so it can travel in e-mail and configuration files. Converting between them never changes the content; it only changes how it is written. Windows tools and Java often want DER (.der, .cer), while web servers usually want PEM (.pem, .crt, .key).
The label is not decoration. The word in the BEGIN line tells every program which parser to use. PRIVATE KEY means PKCS #8, RSA PRIVATE KEY means PKCS #1, and EC PRIVATE KEY means SEC1; write a key under the wrong one and OpenSSL refuses it with an unhelpful error. A DER file has no label at all, so the converter reads the structure of the bytes to decide what they are, explains how it decided, and warns if you choose a label that does not match.
What it accepts. Drop or choose any file, whatever its extension: a .cer can be PEM or DER, and a .key can be either too, so the contents decide. You can also paste PEM blocks, or the base64 or hex of DER. A file with several objects, such as a certificate chain, is shown object by object and converted as a whole.
Checked every time. After converting, the tool reads its own PEM output back and confirms the bytes are identical, so you never ship a file that silently changed. You can choose the line width (64 is the standard; 76 and single-line output are there for systems that expect them) and Windows line endings.
Inspect it with OpenSSL. For the type you are writing, the page shows the exact OpenSSL command that reads the PEM or DER file back, with the right subcommand and flags. Everything runs in your browser, so private keys never leave your device.
Drop it in: the converter reads the structure, names it (for example an EC private key in SEC1 form) and writes the PEM label your server expects.
Paste the PEM certificate and download the DER file (.der or .cer), which certificate import dialogs accept.
Paste a chain file to see each certificate as its own object and convert them in one go, or switch a .p7b bundle between PEM and DER.
They hold the same data. DER is binary; PEM is that binary in base64 with BEGIN and END lines. PEM is easier to paste into configuration files, DER is what some Windows and Java tools expect.
Usually the label is wrong. A PKCS #1 key must be labelled RSA PRIVATE KEY and a PKCS #8 key PRIVATE KEY. The converter picks the label from the bytes, so keep the detected one.
Yes. The conversion happens entirely in your browser and nothing is uploaded. As with any key, avoid copying it onto shared or untrusted machines.
No. PKCS #12 files are password protected containers. Extract the certificate and key with openssl pkcs12 first, then convert those here if needed.
The PEM standard, RFC 7468, says so, and almost every reader expects it. The 76 and single-line options exist for the few systems that want them.
Use .pem or .crt for PEM certificates, .der or .cer for DER, .csr for requests, .crl for revocation lists, .key for private keys and .p7b for bundles. The download picks the usual one for the type.
This runs as client-side JavaScript. Keys, tokens, payloads, and other inputs never leave your device.