Convert private keys between PKCS#8 and PKCS#1 (traditional) formats
Your converted key will appear here
Paste a key and click ConvertConverting key...
private.pem -out private_pkcs8.pemprivate_pkcs8.pem -out private_pkcs1.pemec_private.pem -out ec_pkcs8.pemencrypted.pem -out decrypted.pemprivate.pem -out encrypted_pkcs8.pemEvery coffee helps keep the servers running. Every book sale funds the next tool I'm dreaming up. You're not just supporting a site — you're helping me build what developers actually need.
Both PKCS#1 and PKCS#8 are standards for storing private keys, but they serve different purposes:
BEGIN RSA PRIVATE KEYBEGIN PRIVATE KEY| Key Type | Traditional Format | PKCS#8 Format |
|---|---|---|
| RSA | BEGIN RSA PRIVATE KEY |
BEGIN PRIVATE KEY |
| EC (Elliptic Curve) | BEGIN EC PRIVATE KEY |
BEGIN PRIVATE KEY |
| DSA | BEGIN DSA PRIVATE KEY |
BEGIN PRIVATE KEY |
| Encrypted (any) | BEGIN ENCRYPTED PRIVATE KEY |
BEGIN ENCRYPTED PRIVATE KEY |