RSA/ECC Key Inspector
Inspect PEM, DER, JWK or OpenSSH keys: type, size, curve, fingerprints, thumbprint and weaknesses.
How it works
Paste an RSA, EC (P-256/P-384/P-521, secp256k1, brainpool), Ed25519/Ed448 or X25519 key as PEM, base64/hex DER, JWK or OpenSSH line. Shows key type, size or curve, public exponent, SHA-256 SPKI and OpenSSH fingerprints, the RFC 7638 JWK thumbprint, detects encrypted private keys and their KDF, rates the key against current guidance and converts the PUBLIC key between PEM, JWK and OpenSSH formats.
- The format is detected from the text: PEM labels (PUBLIC KEY, RSA PUBLIC KEY, PRIVATE KEY, RSA/EC PRIVATE KEY, ENCRYPTED PRIVATE KEY, OPENSSH PRIVATE KEY, CERTIFICATE, CERTIFICATE REQUEST), JSON JWK / JWK sets, OpenSSH authorized_keys lines and RFC 4716 SSH2 blocks; anything else is tried as base64 or hex DER (SPKI, PKCS#8, PKCS#1, SEC1).
- Keys are imported with Node.js crypto (OpenSSL); the size, exponent and curve come from the key object, the algorithm identifiers from a DER parse of the SubjectPublicKeyInfo.
- Fingerprints: SHA-256 over the DER SubjectPublicKeyInfo (hex and base64, the pin-sha256 format), OpenSSH SHA256:/MD5: over the SSH wire encoding, and the RFC 7638 JWK thumbprint (SHA-256 over the required members in lexicographic order).
- Encrypted keys are recognised without a passphrase: PKCS#8 EncryptedPrivateKeyInfo (PBES2 with PBKDF2 or scrypt parameters), legacy Proc-Type: 4,ENCRYPTED PEM and openssh-key-v1 cipher/KDF. The OpenSSH public key is read from the unencrypted file header.
- Ratings follow NIST SP 800-57 Part 1 Rev. 5 (RSA-2048 = 112-bit security, acceptable until 2030; ≥3072 bits = 128-bit), FIPS 186-5 (DSA no longer approved for signing) and common TLS/SSH support.
- Conversions only ever output the PUBLIC key (SPKI PEM, JWK, OpenSSH). Private key material is never echoed back.
Keys are processed on the server for this request and not stored. Do not paste production private keys into any web tool; with JavaScript enabled this page converts private keys to public keys before sending.
Sources
Use this tool in an app
These free programs for your browser have this tool built in, next to everything else the task needs.
-
Keysmith Crypto & secrets lab
Audit certificates, keys, TLS and passwords in one lab; server runs ask first.
Related tools
- X.509 / ASN.1 Certificate Inspector – Decode X.509 certificates, chains and CSRs: SANs, usages, CT SCTs, chain order and an ASN.1 tree.
- Crypto Kitchen – CyberChef-style recipes: chain encodings, compression, hashes, AES, JWT and more, step by step.
How to use the RSA/ECC Key Inspector
Identify a PEM, DER, JWK or OpenSSH key, get its fingerprints and JWK thumbprint, see if it is weak, and convert the public key between formats.
What it is for
Someone sends you "the public key" as a PEM block, a JWKS endpoint gives you JSON, and your server's authorized_keys has an ssh-ed25519 line. Are they the same key? Is that RSA key big enough? Which fingerprint should you pin? This inspector answers those questions for RSA, EC (P-256/384/521, secp256k1, brainpool), Ed25519/Ed448 and X25519 keys.
It detects the format automatically: PEM (SPKI, PKCS#1, PKCS#8, SEC1, encrypted keys, certificates, CSRs), base64 or hex DER, JWK or JWK sets, OpenSSH lines and SSH2 blocks. It shows the type, size or curve, the public exponent and three kinds of fingerprint, gives a rating based on NIST SP 800-57 and FIPS 186-5, and outputs the public key as PEM, JWK and OpenSSH.
Public keys are what you should paste. With JavaScript on, the page turns a private key into its public key before anything is sent, but production private keys don't belong in any web tool.
Worked example
Paste the OpenSSH line ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKFvjbb92spN+tAd+TaDJCCyEIYO+d8Lh2R2llUEcjt0 demo@example. The result:
- Public Ed25519 key (OpenSSH authorized_keys line), 256 bits, comment
demo@example, rating good - OpenSSH fingerprint
SHA256:5XSoBMS3Wsse/kcP8IrGPdTn5QzwMDdzbva3jaehAMI, the same stringssh-keygen -lfprints - JWK thumbprint
aQc3bUKlZ6yb2d6GhQRwsQR9CD8cZuTeiFSIVm8ncRk - The same key as an SPKI PEM (
MCowBQYDK2VwAyEAoW+Ntv3a…) and as a JWK with"kty": "OKP"
A 2048-bit RSA PEM key came back as good with the note "RSA-2048 gives about 112-bit security: acceptable today, NIST SP 800-57 plans to disallow it after 2030", and public exponent 65537, the standard choice. A 512-bit RSA key was rated critical: "RSA-512 can be factored with modest resources; replace it immediately."
How to read the result
- Input format: what the tool recognised. If it says something other than you expected (for example PKCS#1 instead of SPKI), that explains many "invalid key" errors in libraries.
- Key type, size, curve, exponent: the basics. "Private" and "encrypted" flags show what you pasted. For encrypted keys, the KDF and cipher are shown without needing the passphrase.
- Fingerprints: SPKI SHA-256 in hex and base64 (the base64 form is the
pin-sha256value used for key pinning), OpenSSH SHA256 and legacy MD5, and the RFC 7638 JWK thumbprint that is often used as akid. - Rating and findings: good, ok, weak or critical, with the reason in plain words.
- Converted public key: PEM, JWK and OpenSSH versions of the same key.
Tips and common mistakes
- To check that two keys in different formats are the same, compare the SPKI SHA-256 or the JWK thumbprint. Both are format-independent.
- OpenSSH fingerprints are computed over SSH's wire format, so they never match the SPKI hash. Compare like with like.
- An RSA key is "acceptable" at 2048 bits until 2030. For new long-lived keys, use 3072 bits or switch to P-256 or Ed25519.
- Ed25519 is good for SSH and JOSE, but WebPKI certificate authorities don't issue Ed25519 TLS certificates. Use P-256 for TLS.
- A
-----BEGIN RSA PUBLIC KEY-----block is PKCS#1, not SPKI. Some libraries accept only one of the two, and the PEM output here gives you SPKI.
FAQ
Can it tell me whether a public key matches my private key?
Yes. Paste the private key with JavaScript on. It's converted first, and you can compare the fingerprints with those of the public key.
Why does my JWK get a different thumbprint than the kid my provider shows?
Providers may pick any string as kid. The RFC 7638 thumbprint is computed only from the required members (for EC: crv, kty, x, y) in a fixed order.
Does it support post-quantum keys?
No. The supported types are RSA, DSA (flagged as no longer approved for signing), EC, Ed25519/Ed448 and X25519/X448.
Are keys stored?
No. Server-side runs process the key for the request only.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://rsaecckeyinspector.usefulweb.site/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://rsaecckeyinspector.usefulweb.site/mcp· tool namersa_ecc_key_inspector
Example request
curl -s -X POST https://rsaecckeyinspector.usefulweb.site/api/v1/calculate \
-H 'content-type: application/json' \
-d '{"key":"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAh3BIrCB410mLVroKIYbJ\nUPfbt6YGNqOyz/2j7yyi5kOjNVVbFPp02sqjt6i+ZEDvaH5kJIU4P+25V330U0h4\nmXfqN+0yDClu7yxsDLdbVBT7HZHWRuasFoR1ZoZCtlQDg7yP/ubHuWTIVPRHMzRm\n45s7+nUnziEXCDIUhwSxLLTu1Nbo8YfmJEFDKVW+hY8AjlrR6HmNKqjMqiVT+R0U\nVNpB0Y3+koWbPs6WWW0xNpzER2ffGS3IPT0sD++SChsbbZYXJ9gVockGuNifXk1J\n+O/wdXu1FFp9oIua/h2pMwfCYOTci7NZsY4P1dcELAF/+Q/bIz//QMgW+QyGVk9c\nEwIDAQAB\n-----END PUBLIC KEY-----"}'