Start a project

Tool 183 of 194 · Security

X.509 Certificate & CSR Decoder

Paste a certificate, a whole chain or a CSR and see names, expiry, key, extensions and fingerprints, with the chain put in the right order.

X.509 Certificate & CSR Decoder

Certificates or a request

#RoleSubjectIssuerExpiresStatusKeySignature

    The samples are test certificates made for this page from a fictional CA. Everything is decoded in your browser; nothing is uploaded.

    Details

    FieldValue
    Chain in the right order (leaf first, root left out)

    01

    What it does

    Decodes PEM certificates and certificate requests with an ASN.1 parser, puts a chain in order, verifies each issuer signature and checks a hostname.

    • Certificates and CSRs in PEM, or a bare base64 DER
    • Subject, issuer, serial, validity, key type and size, and every common extension
    • Subject alternative names and a hostname check with wildcard rules
    • Chain order worked out from names and key IDs, with each issuer signature verified by WebCrypto

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    A certificate table, problems, full details and a correctly ordered chain, with a Copy and a Download button on every result.

    • SSL/TLS
    • Certificates
    • X.509
    • Security

    Why it matters

    TLS errors are often certificate problems: an expired intermediate, a chain sent in the wrong order, a hostname missing from the alternative names, or a server that sends the leaf without its intermediate. openssl x509 -text shows the fields but not what's wrong, and online decoders usually want you to upload the file.

    This decoder parses the ASN.1 in your browser. It reads each certificate's names, dates, key and extensions, works out which certificate issued which, checks every signature with the issuer's public key, and writes the chain back in the order servers should send it. Its output was checked field by field against Python's cryptography library on test and real public chains.

    How to use it

    1. Paste one or more PEM certificates, or a certificate request.
    2. Optionally enter the hostname the certificate should cover.
    3. Read the summary, the certificate table and any problems.
    4. Pick a certificate for full details, and copy the reordered chain if the order was wrong.

    FAQ

    What order should a certificate chain be in?

    The leaf (your site's certificate) first, then the intermediate that issued it, then any further intermediates. The root is normally left out because clients already have it.

    Why does the common name not matter?

    Browsers only check the subject alternative names. A certificate with the hostname only in its common name fails in Chrome, Firefox and Safari.

    How long can a TLS certificate last?

    Publicly trusted certificates issued from 15 March 2026 can last up to 200 days, falling to 100 days from 15 March 2027 and 47 days from 15 March 2029.

    Is it safe to paste a certificate here?

    Yes. Certificates are public and nothing leaves your browser. Never paste a private key into any website.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk