X.509 Certificate Decoder

Decode any X.509 certificate free. Paste PEM, upload .crt/.cer/.der, or fetch by domain to view subject, SANs, issuer, expiry and fingerprints.

By

Advertisement

X.509 Certificate Decoder: Read Any SSL/TLS Certificate

This X.509 certificate decoder turns an opaque block of Base64 into a readable breakdown of every field an SSL/TLS certificate carries: subject, issuer, validity window, Subject Alternative Names, public key algorithm and size, extensions, and SHA-256, SHA-1 and MD5 fingerprints. Paste a PEM block, upload a .pem, .crt, .cer or .der file, or type a domain name and let the tool fetch the live certificate straight from the server. Decoding happens in your browser using the Web Crypto API and a JavaScript ASN.1 parser, so a pasted or uploaded certificate never leaves your machine.

Administrators reach for a decoder at exactly the moments where guessing is expensive: confirming that a newly issued certificate actually covers www as well as the apex domain, checking whether the file a vendor emailed is the leaf or the intermediate, working out why a browser reports a name mismatch, or pinning down the precise expiry timestamp before a change window. Instead of remembering openssl x509 -in cert.pem -noout -text and its dozen flags, you get the same information laid out with the security-relevant parts highlighted.

How to Decode an X.509 Certificate

  1. Choose an input method. The Paste tab accepts a PEM block beginning with -----BEGIN CERTIFICATE-----; it also accepts raw DER supplied as hexadecimal. The Upload File tab accepts .pem, .crt, .cer and .der files by click or drag-and-drop. The URL tab takes a hostname such as example.com and retrieves the certificate the server is currently presenting, along with the chain it sends.
  2. Decode. Parsing is immediate for pasted and uploaded input. There is nothing to install and no account to create.
  3. Read the breakdown. Subject and issuer Distinguished Names are split into their components (CN, O, OU, C, ST, L, E) rather than shown as one run-on string, and every value has a copy button.
  4. Check the Security Analysis panel. It summarises critical issues, warnings and clean results in one glance, and reports days remaining until expiry, whether the certificate is self-signed, and the certificate pinning hashes derived from the SubjectPublicKeyInfo.
  5. Follow up. When you decoded a live domain, one click hands the hostname to the SSL/TLS checker to test the server’s protocol and cipher configuration, or to the certificate transparency log lookup to see every certificate ever issued for that name.

What the Decoder Shows You, Field by Field

An X.509 certificate is an ASN.1 structure defined by RFC 5280. Version 3 — the only version in practical use on the public web — wraps a core set of fields plus an open-ended list of extensions. Here is what each decoded field means and why it matters.

FieldWhat it containsWhy it matters
Version1, 2 or 3 (shown as the integer)Only v3 supports extensions such as SAN; v1 certificates cannot name multiple hosts.
Serial NumberA large integer unique to the issuing CAThe identifier used in CRL and OCSP revocation lookups.
SubjectCN, O, OU, C, ST, LIdentifies the entity. Modern browsers ignore CN for hostname matching — SAN governs.
IssuerThe DN of the signing CAIf Issuer equals Subject, the certificate is self-signed and the tool flags it.
Not Before / Not AfterUTC timestampsThe validity window. Public TLS certificates are now capped at roughly 13 months.
Public KeyAlgorithm, key size, modulus or curveRSA below 2048 bits and any use of a deprecated curve are security findings.
Signature Algorithme.g. sha256WithRSAEncryption, ecdsa-with-SHA256SHA-1 signatures are rejected by every current browser.
ExtensionsSAN, Key Usage, Extended Key Usage, Basic Constraints, AKI/SKI, CRL and AIA URIsEach is shown with its OID and its critical flag, because a critical extension a client cannot process must cause rejection.
FingerprintsSHA-256, SHA-1, MD5 of the DER encodingThe value you compare against what a vendor, a pinning config or a monitoring system expects.

A Worked Example

Suppose a hosting provider sends you a bundle and TLS still fails after installation. Decode the first certificate in the file. If Basic Constraints reads CA:TRUE and the Subject CN looks like “R11” or “DigiCert Global G2” rather than your hostname, you have been handed the intermediate, not the leaf, and the files are in the wrong order in the bundle. If instead the Subject CN is your hostname but the SAN list contains only example.com while users browse to www.example.com, the certificate is valid but does not cover the name being requested — the classic ERR_CERT_COMMON_NAME_INVALID. And if the Issuer DN of your leaf does not match the Subject DN of the next certificate up, the chain is broken regardless of how many files are concatenated together.

Each of those three failures produces an identical-looking browser warning, and each is settled in seconds by reading the decoded fields.

PEM, DER, CRT, CER: The Format Question

The formats people argue about are mostly one structure in two encodings. DER is the binary ASN.1 encoding of the certificate. PEM is that same DER, Base64-encoded and wrapped in -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- header lines. The .crt and .cer extensions carry no format guarantee at all: both are used for PEM on Linux and for DER on Windows, which is why a file that opens fine in one tool is rejected by another. A quick test — open it in a text editor; if you can read the BEGIN line, it is PEM.

This decoder accepts PEM directly, accepts DER files by upload, and accepts DER as pasted hex. If you need to convert between encodings, or to produce a PKCS#12 bundle or a new signing request, the certificate and CSR generator handles conversion and generation and can be pre-filled from a decoded certificate’s subject fields.

Verifying Rather Than Just Reading

Decoding tells you what a certificate claims; it is not the same as validating trust. Full validation means building a path to a trusted root, checking each signature, honouring name constraints, and confirming the certificate has not been revoked. What this tool does check, and surfaces in the Security Analysis panel, is the set of properties that break deployments in practice: expiry and days remaining, self-signed status, weak public keys, weak signature algorithms, missing or mismatched SANs, wildcard scope, and the SPKI pin values you would need for HPKP-style pinning or for a mobile app’s pin set. When a certificate is fetched by domain, the served chain is displayed too, so a missing intermediate is visible immediately.

Frequently Asked Questions

Is this X.509 decoder free?+

Yes. There is no charge, no registration, and no usage limit.

Is my certificate uploaded to a server?+

No. Pasted and uploaded certificates are parsed entirely in your browser. The only case where a network request occurs is the URL tab, where a hostname is sent so the live certificate can be retrieved — and certificates served publicly over TLS are public information by definition.

Can I decode a private key with this tool?+

No, and you should not paste one into any web tool. This decoder handles certificates only. A private key belongs on the server it was generated on.

What input formats are accepted?+

PEM text, DER supplied as hexadecimal, and uploaded .pem, .crt, .cer and .der files. You can also fetch the certificate from a live hostname.

How do I check an X.509 certificate’s expiry date?+

Decode it and read the Validity Period block: Not Before and Not After are shown as full UTC timestamps, and the Security Analysis panel converts Not After into days remaining, flagging certificates that have already expired.

Why does my certificate work in Chrome but fail in curl or Java?+

Almost always a missing intermediate. Browsers often repair an incomplete chain using cached intermediates or AIA fetching; command-line clients and Java trust stores do not. Fetch the certificate by domain and check whether the server actually sends the intermediate alongside the leaf.

What is the difference between CN and SAN?+

Common Name is a legacy field inside the Subject DN. Since 2017 every major browser matches hostnames exclusively against the Subject Alternative Name extension and ignores CN entirely. If a hostname is missing from SAN, the certificate does not cover it, no matter what CN says.

What does “self-signed” mean here?+

The Issuer DN is identical to the Subject DN, meaning the certificate signed itself rather than being signed by a CA. That is normal for a root CA or an internal lab certificate, and a failure for anything a browser must trust automatically.

Can I decode a certificate chain?+

Decode the leaf to see its own fields; when you fetch by domain, the chain the server presents is displayed alongside it so you can confirm each Issuer matches the next Subject.

Which fingerprint should I use?+

SHA-256. SHA-1 fingerprints are still shown because older systems and some vendor documentation reference them, and MD5 for legacy device compatibility, but neither is collision-resistant and neither should be used as a security control.

Related tools

This tool is provided for informational and educational purposes only. While we strive for accuracy, we make no warranties about the completeness or reliability of results. Results are based on the information you enter and do not constitute a security audit, a formal compliance assessment, or legal advice, and they do not establish that any system or organisation meets a given standard. Coverage of a framework may be partial — check what the tool states it assesses. For anything you intend to rely on, consult a qualified assessor.