Omnikit
DevFilesMoneyAll toolsExams
Ctrl K
Dev toolsFile toolsMoney calculatorsAll toolsExams
HomeDeveloper toolsPEM to PFX Converter: Make a .pfx / .p12 in Your Browser

PEM to PFX Converter: Make a .pfx / .p12 in Your Browser

dev

PEM certificate and key to a password-protected .pfx (PKCS#12), key never uploaded

Runs in your browser. Nothing you type is sent anywhere. Checked against sources on 16 Nov 2026.
What this does
PEM certificate and key to a password-protected .pfx (PKCS#12), key never uploaded.
What it does not do
It does not need an account or a sign-in.
What leaves your browser
Nothing you type or open leaves your device. The page sends only a usage count: the tool’s name and the action, never the content.

Checked against the tool’s code on 18 November 2026. Figures read from their sources on 16 November 2026. What we collect

Paste the certificate and its private key and this page builds a password-protected .pfx in your browser; the key is never uploaded. From the example it plans an RSA 2048 private key + certificate for shop.example.com + 1 chain certificate, checks the key matches first, then encrypts the key with AES-256-CBC and PBKDF2-HMAC-SHA-256.

What goes into the .pfx this page writes
PartHow it is stored
Example contentsRSA 2048 private key + certificate for shop.example.com + 1 chain certificate
Private keyPBES2: PBKDF2-HMAC-SHA-256, 2048 iterations, 16-byte salt, AES-256-CBC
CertificatesLeaf first, then the chain; stored unencrypted (certificates are public)
Integrity checkHMAC-SHA-256, 2048 iterations
Friendly nameThe certificate's Common Name
Planned by the tool itself from the synthetic example; the file is built with WebCrypto in your browser.

Nothing is uploaded: this runs in your browser.

Next:
  • Certificate Decoder Read an SSL certificate, CSR or public key: names, dates, key size and fingerprints
  • htpasswd Generator Make a user:password line for Apache or nginx basic auth, in bcrypt, apr1 or SHA-512
  • SSH Key Fingerprint Get the SHA256 and MD5 fingerprint of an SSH public key, as ssh-keygen -l shows it

How to convert a PEM certificate and key to PFX

1

Paste the certificate, the private key and any chain certificates, or open the .pem, .crt and .key files.

2

Check the green line: the key must match the certificate, or no PFX is made.

3

Type the password that will protect the PFX.

4

Press Download .pfx and import the file into Windows, IIS, Azure or Java.

Why convert PEM to PFX

Linux servers (nginx, Apache, Let's Encrypt) keep the certificate and the private key as two PEM text files. Windows, IIS, Azure App Service, Exchange and many Java and .NET programs want one file instead: a PFX, also called PKCS#12 or .p12, which holds the certificate, its chain and the private key, protected by a password.

Most online converters ask you to upload the private key, which hands a stranger the key to your site. This page builds the file with your browser's own WebCrypto, and the key and password never leave it. It also refuses to build a PFX from a key that does not belong to the certificate, the commonest reason an imported PFX fails.

In short

Question Answer
Input A PEM certificate, its private key (PKCS#8, PKCS#1 or EC) and any chain certificates, in any order
Output One .pfx file with the leaf certificate first, the chain, and the encrypted key
Encryption AES-256-CBC with PBKDF2-HMAC-SHA-256 (2048 iterations), HMAC-SHA-256 integrity check
Reads it Windows 10 version 1709 and later, Windows Server 2019 and later, macOS, Java 11 and later, OpenSSL 1.1.1 and 3
Older systems Windows Server 2016 and earlier need the legacy 3DES layout: openssl pkcs12 -export -legacy
Also Each certificate as a binary .cer (DER) file

Checked on 16 November 2026 against RFC 7292, RFC 8018 and the OpenSSL 3 pkcs12 manual. Page last updated on 16 November 2026.

The same job with OpenSSL

The terminal equivalent is openssl pkcs12 -export -in certificate.pem -inkey private-key.pem -certfile chain.pem -out shop.example.com.pfx. To check a key and a certificate belong together without building anything, use the certificate key matcher; to read what a certificate says, the certificate decoder.

Frequently asked questions

How do I convert PEM to PFX without OpenSSL?

Paste the certificate and the private key on this page, or open the .crt and .key files, type a password and press Download .pfx. The file is built by your browser with WebCrypto, so nothing is installed and the private key is never uploaded. Chain certificates go in the same box.

Is it safe to convert a private key to PFX online?

Only when the key never leaves your device. Many converters upload the key to their server, which then holds a copy. Here the PEM text is read and encrypted inside the page; nothing is sent to any server or stored anywhere. Check the network tab in your browser to confirm.

What is the difference between PFX and P12?

None in content: .pfx and .p12 are two file extensions for the same PKCS#12 format. Windows and IIS usually say .pfx, Java and macOS often say .p12. Rename the downloaded file to .p12 if a program asks for that extension; the bytes stay the same.

Why does my PFX import fail with a password or format error?

Three usual causes: the private key does not belong to the certificate (this page refuses that case), the password is mistyped, or an old system cannot read AES-256. Windows Server 2016 and older need the legacy 3DES layout, which openssl pkcs12 -export -legacy writes.

Do I need to include the chain certificates in the PFX?

Usually yes. Servers such as IIS send the chain to browsers, and a missing intermediate certificate gives some visitors a trust error. Paste the intermediate certificates from your certificate authority below the key; the page puts the leaf certificate first and the chain after it, whatever the order you paste.

How do I convert PEM to CER or CRT?

Press Certificate as .cer (DER) to save each certificate as a binary .cer file, the form Windows and Java import. A .crt file is often just the PEM text with another name, so renaming .pem to .crt is enough when a program accepts PEM text.

Sources

  • RFC 7292, PKCS #12: Personal Information Exchange Syntax v1.1The PFX layout, the safe bags and the MAC key derivation (appendix B)
  • RFC 8018, PKCS #5: Password-Based Cryptography v2.1PBES2 and PBKDF2, used to encrypt the private key
  • OpenSSL 3 manual, openssl-pkcs12The default AES-256-CBC, PBKDF2 and SHA-256 MAC settings and the -legacy option

Last verified 16 November 2026.

Rates and rules change; check the source before you rely on a figure.

Still stuck? Ask about PEM to PFX Converter: Make a .pfx / .p12 in Your Browser and anybody who knows can answer. No account needed.

Same job, other tools: SSL Certificate Decoder – Decode a TLS certificate you already have and see every field a browser looks at · 2FA Code Generator – Get the current two-factor code from a setup key, without a phone · PEM Decoder – Work out what is inside a PEM file, whichever of the five things it turns out to be.

On the related tools: JWT Decoder – Paste a token to read its header, payload and expiry.

On the same topic: Certificate Key Matcher: Does the Private Key Match? – Check that a private key belongs to an SSL certificate or CSR; the key is never uploaded · Certificate Decoder – Read an SSL certificate, CSR or public key: names, dates, key size and fingerprints · CSR Generator: Create a CSR and Private Key in Your Browser – Make a certificate signing request and its private key on your device, no upload.

Related tools

All developer tools
JWT Decoder, Verifier & EncoderDecode any JWT, verify its signature, and sign new tokens, all in your browserPassword GeneratorStrong random passwords and memorable passphrases, generated on your devicePassword Strength CheckerHow long your password would survive an attack, and exactly what makes it weakHMAC GeneratorHMAC-SHA1, SHA-256, SHA-384 and SHA-512 of text or a file, and signature checksBcrypt Hash and VerifyHash a password with bcrypt at cost 4 to 14, or check a password against a hashTOTP Generator and TesterLive authenticator codes from a secret, a QR code for your app, and a code testerCertificate DecoderRead an SSL certificate, CSR or public key: names, dates, key size and fingerprintsIMEI CheckerCheck an IMEI number’s check digit, see its TAC and serial, and look up the phone model
Was this tool helpful?
Omnikit

Small jobs, done in your browser. Free, fast and private. Files are never uploaded.

Files

  • Compress Image
  • Image to PDF
  • Merge PDF
  • Compress PDF
  • PDF to Word
  • Word to PDF

Dev

  • JSON Formatter & Validator
  • Base64 Encode & Decode
  • JWT Decoder, Verifier & Encoder
  • Password Generator
  • UUID Generator
  • Unix Timestamp Converter

Money

  • SIP Calculator
  • EMI Calculator
  • GST Calculator
  • FD Calculator
  • PPF Calculator
  • Lumpsum Calculator

Site map: Files · Dev · Money

GuidesQuestionsAboutHow we checkLaw library (beta)PrivacyTermsDisclosureContactMore: Exam practice (UGC NET, MH-SET, PhD entrance, CSIR NET)Runs in your browser. Nothing is uploaded. © 2026 Omnikit (theomnikit.com)