Everything runs on your machine — your input is processed right here in your browser and never uploaded to any server.

PEM to PFX (P12)

The .pfx is encrypted with this — you’ll type it again when importing into Windows/IIS/Java.
Only needed if the pasted key says “ENCRYPTED” — the passphrase that unlocks it.

How it works

1

Paste your certificate in the first box — pasting the whole fullchain.pem is best so the PFX carries the intermediates too.

2

Paste your private key in the second box; if the key itself is encrypted, enter its passphrase.

3

Choose a password for the .pfx — importers require one because the file contains your key.

4

Click "Create .pfx" and import the downloaded certificate.pfx into Windows, IIS, Azure or your Java keystore.

About this tool

Windows, IIS, Azure and Java keystores want a single .pfx/.p12 file containing your certificate, its chain, and the private key — but certificate authorities hand you separate PEM files. This tool bundles them into a password-protected PFX entirely in your browser, which matters because the usual alternatives are installing OpenSSL or uploading your private key to a converter site you cannot audit.

The bundler validates as it packs: the private key must mathematically match the leaf certificate (the classic silent mistake), encrypted keys are decrypted with their passphrase on-device, and the file is packed with 3DES so every importer — including older Windows and Java versions — accepts it.

100% private

Your private key is read, validated and packed in this browser tab’s memory only — it is never uploaded, logged, or sent anywhere. You can load this page, disconnect from the network, and do the conversion fully offline.

Frequently asked questions

Why is a password required?

A PFX contains your private key, so the PKCS#12 format encrypts its contents under a password — and Windows refuses to import a password-less file. Use a strong one and share it separately from the file itself.

It says my key doesn’t match the certificate — what now?

The modulus of the key and the certificate’s public key differ, meaning this key did not generate that certificate. Check you copied the right key file, and that the leaf (domain) certificate is the first PEM block in the certificate box.

My key is an EC key — why is it rejected?

The in-browser bundler currently packs RSA keys, which covers the vast majority of PFX destinations. For an EC key run: openssl pkcs12 -export -out certificate.pfx -inkey key.pem -in fullchain.pem

Is .pfx the same as .p12?

Yes — both are PKCS#12 archives. .pfx is the extension Microsoft tooling favors, .p12 the one Java and macOS favor; rename the file freely.

Related tools

Popular right now