PEM Key Inspector

Identify PEM keys, certificates and CSRs, and check whether a private key matches its certificate or CSR.

Runs in your browser — your data never leaves your device

Frequently Asked Questions

How do I check that a private key matches a certificate?

Paste both. If they share a public key, the tool groups them and shows a Match badge with the same fingerprint. This is the same check as comparing openssl modulus hashes, but it also works for EC and Ed25519 keys.

What is the difference between BEGIN PRIVATE KEY and BEGIN RSA PRIVATE KEY?

BEGIN PRIVATE KEY is PKCS#8, a generic container that names the algorithm. BEGIN RSA PRIVATE KEY is the older PKCS#1 format that holds only RSA, and BEGIN EC PRIVATE KEY is the equivalent SEC1 format. The tool reads all three.

Can it read passphrase-protected keys?

It recognises them and tells you they are encrypted, but cannot read the key type or public half without decrypting. Run openssl pkey -in key.pem -out decrypted.pem first.

Is it safe to paste a private key?

Parsing happens in your browser and nothing is uploaded. As a habit, still inspect production private keys on a trusted machine using openssl, and use throwaway keys when testing online tools.

How is this different from the Certificate Decoder?

The Certificate & CSR Decoder shows names, SANs, validity and extensions. The PEM Key Inspector focuses on the keys themselves: type, size, derived public key and whether keys, certificates and CSRs belong together.