How to use the SSL certificate decoder
- Paste the text that starts with
-----BEGIN CERTIFICATE-----or-----BEGIN CERTIFICATE REQUEST-----, or click Open File. - Read the summary: the domain names, the issuer, the validity dates and how many days are left.
- If you pasted a chain, every certificate in it is decoded in order.
What you can check
- Before installing a certificate: confirm it covers the right domain names, including
wwwand any subdomains, and that it has not expired. - Before sending a CSR: make sure the common name, organization and alternative names are spelled correctly. A mistake means starting the order again.
- When debugging a chain: paste the full chain file to see each certificate and check that each one is issued by the next.
- When pinning or auditing: copy the SHA-256 fingerprint and serial number.
The fields explained
| Field | Meaning |
|---|---|
| Common name (CN) | The main name on the certificate. Browsers now ignore it and use the alternative names. |
| Subject alternative names | Every domain and IP address the certificate is valid for. *.example.com covers one level of subdomains. |
| Issuer | The certificate authority that signed it. If it matches the subject, the certificate is self-signed. |
| Valid from / until | The certificate is rejected outside these dates. Public certificates last at most 398 days, and Let's Encrypt ones 90. |
| Public key | The algorithm and size. RSA 2048 or larger and ECDSA P-256 or P-384 are considered secure. |
| Fingerprint | A hash of the whole certificate, used to identify it exactly. |
| Basic constraints | Says whether the certificate may sign other certificates (a CA) or not. |
Do the same with OpenSSL
openssl x509 -in cert.pem -noout -text # decode a certificate
openssl req -in request.csr -noout -text # decode a CSR
openssl s_client -connect example.com:443 -showcerts # fetch a live site's chain
Is it safe to paste a certificate?
A certificate and a CSR hold only public information, and here they are decoded in your browser without being uploaded. A private key is different. Never paste one into any website. If you paste one here by mistake, this tool refuses to read it, and nothing has left your device.
Fetching the certificate of a live website needs a server to make the connection, which this site does not have yet. Related tools: Nginx config generator and JWT decoder.
Frequently asked questions
How do I check when an SSL certificate expires?
Paste the certificate. The “Valid until” line shows the expiry date and the number of days left.
How do I decode a CSR?
Paste the text starting with -----BEGIN CERTIFICATE REQUEST-----. The subject, alternative names and key details are shown.
Is my certificate uploaded?
No. It is decoded in your browser and never sent to a server.
Can I decode a private key here?
No, and you should not paste private keys into any website. This tool only reads certificates and CSRs.
What file types can I open?
PEM text files (.pem, .crt, .cer, .csr) and binary DER files (.der, .cer).