Convert CRT/CER to PEM
Free online tool to convert CRT or CER digital certificate files to PEM format using our browser-based tool or OpenSSL/Bash (Linux/Unix) commands.
Convert Online (Browser-Based)
⚠️ Upload only leaf or intermediate certificates. Do not include root CA certificates.
Convert Using OpenSSL/Bash (Linux/Unix)
openssl x509 -in certificate.crt -out certificate.pem -outform PEM
Note: Files with .cer, .crt, and .pem extensions are often PEM format. If your .crt file already contains the following header (below), it’s already PEM encoded, so you can just rename its extension:
-----BEGIN CERTIFICATE-----
While OpenSSL version 3.X and later accept PEM- and DER-encoded input files, older versions do not and may require adding -inform DER to the command.