| Input Format | Convert To |
|---|---|
| PKCS#1 Private Key | PKCS#8 · PKCS#1 · JWK · XML · PEM · DER · Base64 · Hex |
| PKCS#8 Private Key | PKCS#1 · PKCS#8 · JWK · XML · PEM · DER · Base64 · Hex |
| PKCS#1 Public Key | SPKI · OpenSSH · JWK · XML · PEM · DER · Base64 · Hex |
| SPKI Public Key | PKCS#1 · OpenSSH · JWK · XML · PEM · DER · Base64 · Hex |
| OpenSSH | SPKI · PKCS#1 · JWK · XML · PEM · DER · Base64 · Hex |
| JWK | PKCS#1 · PKCS#8 · SPKI · OpenSSH · XML · PEM · DER |
| XML | PKCS#1 · PKCS#8 · SPKI · OpenSSH · JWK · PEM · DER |
| Raw Base64 / Hex | 与对应的 PKCS#1 / PKCS#8 / SPKI 一致 |
The same RSA key often needs different representations in different environments: Java commonly uses PKCS#8, older OpenSSL toolchains output PKCS#1, SSH requires an OpenSSH public key, frontend applications and cloud services often prefer JWK, while older .NET applications used XML. This tool handles existing keys: it automatically detects what the key is and converts it to the structure and encoding you need.
After successful parsing, the tool displays the key type (RSA public key or RSA private key), RSA bit length, input encoding, modulus length, and public exponent. This makes it easy to confirm whether the key matches expectations and determine whether a key received from another party is the same key.
Output is divided into two dimensions: structure and encoding. Structures include PKCS#1, PKCS#8, SPKI, OpenSSH, JWK, and XML. Encodings include PEM, DER, Base64, and Hex. These can be combined into target formats, and the page automatically filters combinations that are not applicable to public or private keys. Base64 and Hex output the raw encoding without PEM headers or footers, making it convenient to paste into configuration files. DER contains binary data and should be saved as a file through download. Batch conversion allows you to select multiple target formats at once. Each result can be copied or downloaded separately, and a conversion matrix shows the supported conversion directions.
If you only have a private key, you can extract the corresponding public key with one click and output it directly as a PEM, SPKI, or OpenSSH public key. This is useful for server configuration, uploading a key to a code hosting platform, or providing a public key to an integration partner.
All parsing and conversion are performed locally in the browser. Keys are not uploaded to or saved on a server. The tool only identifies, converts, and exports existing keys. It does not generate new keys, recover private keys, or provide online decryption. If you do not have a key yet, use the RSA key generator.
Comments 0