Utilia

X.509 Certificate Decoder

Decode an SSL/TLS certificate, chain or CSR in your browser. See subject, issuer, expiry date, SAN, key usage, public key and SHA-256 fingerprint.

Certificates are decoded in your browser. Nothing is uploaded, so internal certificates and CSRs stay on your computer.

This tool reads the certificate but does not verify its signature or its trust chain: a decoded certificate is not proof that it is genuine.

How to decode a certificate

  1. Paste a certificate into Certificate, chain or CSR (PEM or Base64), or drop a file on the drop zone. PEM text (-----BEGIN CERTIFICATE-----), binary DER (.der, .cer), a certificate signing request (.csr) and a PKCS#7 bundle (.p7b) are all accepted.
  2. Click Decode. A pasted PEM block is also decoded as soon as its -----END …----- line is complete. Load an example shows a test certificate.
  3. Each certificate or CSR gets its own table. A badge shows Valid dates, Expired or Not yet valid, and Copy PEM copies it back as PEM (handy after opening a binary DER file).
  4. For a chain (a server certificate followed by its intermediates), every block is decoded in order, and the tool notes Issued by certificate n when a certificate’s issuer matches the subject of another one in the list.

What the fields mean

  • Subject and Issuer are distinguished names: CN (common name), O (organization), OU, L (city), ST (state or province), C (country). A certificate whose issuer equals its subject is marked Self-signed.
  • Valid from and Valid until are the notBefore and notAfter dates, shown in your time zone, with the number of days left. Since 2020, browsers reject public TLS certificates valid for more than 398 days, and the CA/Browser Forum is shortening that limit further.
  • Serial number is shown in hexadecimal (as in browsers and OpenSSL) and in decimal.
  • Signature algorithm and Public key: for RSA the modulus size (2048, 3072, 4096 bits) and the public exponent (almost always 65537); for elliptic curves the curve (P-256, P-384…); Ed25519 is also recognized.
  • Extensions: Subject Alternative Name (the host names, IP addresses and e-mail addresses the certificate covers; browsers ignore the CN and only use the SAN), Key Usage, Extended Key Usage (serverAuth, clientAuth, codeSigning…), Basic Constraints (CA: TRUE for an authority), Subject and Authority Key Identifiers, CRL Distribution Points, Authority Information Access (OCSP responder and CA Issuers URL) and Certificate Policies (DV, OV, EV). Extensions marked critical must be understood by any software that uses the certificate.
  • SHA-1 fingerprint and SHA-256 fingerprint are hashes of the whole DER certificate, computed with the browser’s Web Crypto API; they match openssl x509 -fingerprint. Public key pin is the Base64 SHA-256 of the public key info, the format used for certificate pinning.

Decoding is not verifying

This tool is a pure ASN.1/DER parser. It does not check the signature, does not build a trust chain to a root authority, and does not query revocation lists or OCSP, because that would require network access. Use it to inspect a certificate, find out why a host name does not match or when it expires, not to decide whether it can be trusted. Private keys are refused on purpose: if you paste a PRIVATE KEY block, it is not decoded, and you should treat it as exposed if you ever shared it.

Frequently asked questions

How do I get the certificate of a website?

In most browsers, click the padlock, open the certificate viewer and export it as PEM. On the command line, openssl s_client -connect example.com:443 -showcerts prints the whole chain; paste the blocks here.

What is the difference between PEM and DER?

DER is the binary encoding of the certificate. PEM is the same bytes in Base64 between BEGIN and END lines, which is easier to copy and paste. The tool reads both and decodes the same content.

What is a CSR?

A certificate signing request is what you send to a certificate authority: it contains the requested subject, the public key and, often, the requested SANs. It has no issuer, validity or serial number yet; those are added by the authority.

Why does my browser say the certificate is invalid when the dates are fine?

Dates are only one check. The host name must appear in the Subject Alternative Name, the chain must lead to a trusted root (a missing intermediate is a common cause), the key usage must allow TLS, and the certificate must not be revoked.

Is it safe to paste a certificate here?

Yes. A certificate is public information that servers send to every visitor, and this tool processes it locally without uploading it. Only private keys must stay secret.