X.509 certificate decoder

Read a PEM certificate or CSR: subject, issuer, validity, public key, alternative names, usages and SHA-1/SHA-256 fingerprints.

loading X.509 certificate decoder
About this tool

What is an X.509 certificate decoder?

An X.509 certificate is the file that binds a public key to a name. Every HTTPS site, many VPNs, mail servers, code-signing tools and device identities use one. A certificate is stored as binary ASN.1 data (DER), and is usually shown as PEM: the same bytes in Base64 between -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----. A certificate signing request (CSR) has the same format and asks a certificate authority to issue one. Reading these files is what openssl x509 -text does on the command line.

This decoder shows the fields people look for when something does not work: who the certificate is for (the subject), who issued it, the dates it is valid, how many days are left or how long ago it expired, the public key (RSA size or elliptic curve), the signature algorithm, the subject alternative names (SAN) that browsers actually check, key usages, basic constraints that say whether it is a CA, the key identifiers that link a certificate to its issuer, the OCSP and CRL addresses, and the SHA-1 and SHA-256 fingerprints. If you paste a chain, every certificate in it is listed.

It runs in your browser: the certificate is never uploaded, and nothing is looked up online. That also means it only shows what the file says. It does not validate the chain, check revocation or tell you whether to trust the certificate.

How to read a certificate

  1. Paste the certificate or CSR. The page opens with a test certificate loaded. You can paste one or several PEM blocks, or just the Base64 text of a DER file.
  2. Look at the status line: valid with the days left, expired, or not yet valid.
  3. Check the subject and the alternative names. For websites, browsers match the host name against the SAN list, not against the common name (CN).
  4. Check the issuer and the "self-signed" mark, the key and the signature algorithm.
  5. Click a fingerprint to copy it, for example to compare with the one your server or a colleague reports.

Examples

A website certificate that expired

The status says "Expired 12 days ago" and the validity table shows the end date in UTC. That is the usual reason for a sudden browser warning. Renew it and install the new file.

A name that is missing

A certificate for example.com with the SAN list example.com only does not cover www.example.com. The SAN list shows exactly which names the certificate covers, including wildcards such as *.example.com, which covers one level of subdomains.

A CSR before sending it

A request lists the subject, the key and the names you asked for. Decoding it before you send it to the authority catches a wrong organization name or a missing SAN while it is still free to fix.

A CA certificate

Basic constraints show "Certificate authority (CA)" with a path length, and the key usages include keyCertSign. A server certificate shows "Not a CA" and usages such as digitalSignature and, in extended key usage, serverAuth.

Common mistakes

  • Pasting a private key. A block that starts with BEGIN PRIVATE KEY is not a certificate, and you should never paste a private key into a web page you do not control. This tool refuses it and tells you what it found.
  • Copying only part of the block. Without the full lines between BEGIN and END the data is broken and the tool reports a damaged structure.
  • Trusting the common name. Modern clients ignore the CN and use the SAN. A certificate with the right CN and no SAN fails in browsers.
  • Reading the dates in local time. Validity dates are in UTC. A certificate that "expires today" may do so hours before or after midnight where you are.
  • Confusing a fingerprint with a serial number. The serial is assigned by the issuer; the fingerprint is a hash of the whole file.

Frequently asked questions

Is it safe to paste a certificate here?

A certificate is public by design, and the tool never sends it anywhere. Do not paste private keys.

Does it check whether the certificate is trusted?

No. It reads the fields only. Chain building, revocation and trust need a trust store and network access, so use your browser, openssl verify or an online scanner for that.

Which formats does it read?

PEM certificates and CSRs, including several blocks in one text, and the bare Base64 of a DER file. Binary DER files must be converted to Base64 first, and PKCS#12 bundles are not supported.

How do I make a key pair to request a certificate?

Use the RSA key pair generator and then create the request with your usual tool.

How can I get a fingerprint of other text?

For arbitrary text use the hash generator. To read a signed token instead of a certificate, see the JWT decoder.

Report a problem