The quick answer

A PEM certificate is Base64 armor around DER bytes: -----BEGIN CERTIFICATE-----, 64-character lines, END marker. Paste one here and the viewer identifies the block type, counts the Base64 characters and the decoded DER bytes, and confirms the paste decoded cleanly, all in your browser. Certificates are public; this page never asks for the private key half.

What the PEM Certificate Viewer does

Paste a block and the viewer answers the first questions of any TLS debug: which half of the bundle is this, how big is it, and did the Base64 decode cleanly. It runs as plain JavaScript on your device, with no fee and no account. Full field parsing, from validity dates to SANs, is deliberately left to openssl, and the page prints the exact command for it.

PEM, DER, and the envelope you paste

PEM, the envelope format RFC 7468 standardized, is the text armor certificates travel in: a -----BEGIN CERTIFICATE----- line, the DER-encoded certificate as Base64 wrapped at 64 characters per line, and a matching END line. The Base64 is pure transport: decode it and you have DER, the binary ASN.1 structure that actually holds the fields. This viewer does the decode step in your tab and reports the block type, the Base64 length and the DER byte count; walking the ASN.1 fields (subject, SANs, validity) is what openssl x509 -text does, and the page says so.

One boundary deserves its own paragraph: certificates are public, shown to every visitor your server greets, but PEM files sometimes travel in bundles with their private halves. Anything whose BEGIN line names a private key (RSA, EC or otherwise) must never be pasted anywhere, local tools included. The viewer does label what you paste, so a key block shows up as a private-key type, but the safe habit is to split the file first and bring only the certificate.

Using the PEM Certificate Viewer: the walkthrough

The fastest path is worth thirty seconds to learn. Follow these six steps.

  1. Paste the PEM block

    The BEGIN/END CERTIFICATE markers and the Base64 between them; whitespace and line wrapping are normalized automatically. Paste one block at a time, so a multi-block file never rides along whole.

  2. Read the PEM type card first

    The type card names what you pasted: Certificate, Private key, Public key, or the label from the BEGIN line. It is the fastest confirmation that the kubectl secret you opened holds the certificate, not the key half.

  3. Check the size readout

    Two counts flank the type card: the Base64 size in characters and the decoded DER size in bytes. DER bytes come to roughly three quarters of the Base64 characters; an 'Invalid base64 body' error means the paste is damaged or is not PEM at all.

  4. Open the openssl pointer

    The note under the readout prints the command for the deep parse: openssl x509 -text -noout -in file.pem shows validity, SANs, issuer, key and serial from the same file, still locally.

  5. Keep the private half out

    If the paste came from a bundle (a kubectl TLS secret, a chain file), split it: the certificate block is the only half that belongs in any viewer, and the private key should never leave the machine at all.

  6. Close the tab when done

    Nothing was transmitted and nothing is stored: the certificate existed only in your tab's memory. The private key, as always, never entered the picture.

What is inside a PEM certificate

openssl x509 -text unpacks the fields TLS actually decides things on: Subject (who the certificate names), Issuer (who signed it), Validity (the notBefore and notAfter dates), the Subject Alternative Names where hostname matching really happens, the public key algorithm and size (RSA-2048, ECDSA P-256), the signature algorithm, the serial number, and the SHA-256 fingerprint of the whole DER structure. Reading those before a cutover or a debugging session is the difference between a five-minute answer and a certificate-blind afternoon.

A worked reading: open the certificate (openssl x509 -text prints all of it) and check three things in order. Validity: if notAfter is in the past, every other symptom is downstream of it. Subject Alternative Names: browsers match against the SAN list, not the Common Name, so an api.example.com cert that lacks that SAN fails no matter what the CN says. Issuer: if it is not a root your clients trust directly, the intermediate chain has to ship alongside, and a missing intermediate is the classic 'works on desktop, fails on mobile' TLS bug.

Who inspects certificates, and why

Certificate inspection is a scheduled chore and an emergency ritual, and DevOps and platform engineers land on this page most.

DevOps and platform engineers: check which block inside a kubectl TLS secret is the certificate (and which is the private key) before anything gets pasted anywhere, then read validity and SANs in openssl when the renewal sweep or a service mesh mTLS rejection demands detail. Pasting into a local tab beats piping production material through a decoder site, and the type card turns the triage step into a ten-second sweep.

Accuracy, limitations and edge cases

  • The viewer reads certificate blocks; private key blocks (BEGIN PRIVATE KEY, RSA PRIVATE KEY, EC PRIVATE KEY) must never be pasted anywhere, including here. Split the file first.
  • Chain validation is a client-side judgment: whether your particular clients trust the issuer is their configuration, not a property of the certificate.
  • A paste that fails with 'Paste a PEM block' or 'Invalid base64 body' is usually binary DER with a .crt suffix; convert once with openssl x509 -inform DER -in file.crt -out file.pem and re-paste.
  • Fingerprints are computed over the DER bytes exactly as TLS does it, so two encodings of one certificate share one fingerprint; openssl x509 -fingerprint -sha256 prints it.

Certificates stay on your device

Certificates are public, so the privacy argument is subtler here, but the habit is not. PEM files travel in bundles where the private key sits two blocks below the certificate, and muscle memory of 'paste the whole file' is how keys leak through decoder sites. Local parsing keeps the failure mode small: no request exists, so no fat-fingered paste of a key block ever reaches a server.

The competition, sized up

Every tool here could be replaced by something else. This comparison shows what the PEM Certificate Viewer trades and what it refuses to trade away.

AlternativeWhy people pick PEM Certificate Viewer instead
Command line (openssl x509 -text -noout)A paste-and-read type check with no flag archaeology; the deep parse still belongs to the command line, and the page says so
Online certificate decodersMost POST the entire paste to a server; this page parses locally, so even a fat-fingered key block never leaves the machine
openssl s_client | openssl x509 pipelinesRight for live server checks; this viewer is for the file already on your disk: a kubectl secret, a vendor email, a backup

The table keeps its concessions visible (batch throughput, analysis depth, collaboration) because a pem decoder comparison that always wins is a comparison nobody should trust.

Field notes and gotchas

Technique is cheaper than trial-and-error, five minutes cheaper, usually. This is the distilled usage advice for the PEM Certificate Viewer.

  • Schedule the renewal before it is needed: read notAfter on every cert in rotation (openssl prints it) and act under 30 days; expiry is the most common, most preventable TLS outage.
  • When debugging 'works on desktop, fails on mobile,' check the intermediate chain first; the missing-intermediate failure mode hides there.
  • For pinning decisions, record the SHA-256 fingerprint at rotation time with openssl x509 -fingerprint -sha256; it is the one value that survives re-issuance-free comparisons.

When something behaves unexpectedly, the causes are almost always one of these:

  • Parse fails on a valid-looking file: DER disguised as PEM; convert once with openssl x509 -inform DER and re-paste.
  • Browser rejects a freshly installed cert: check SANs before algorithms. A missing hostname in the SAN list outnumbers every other cause.
  • Renewed cert, same errors: the old one is still being served. Compare fingerprints, old versus new, to prove which file the server actually loaded.

The contact page is the escape hatch: real bug reports about PEM Certificate Viewer get answered by people who can push a fix.

Frequently asked questions

These are the questions people actually search about the pem decoder, answered directly.

What does a PEM file actually contain?

A text envelope around binary: the -----BEGIN CERTIFICATE----- marker, Base64 of the DER-encoded certificate wrapped at 64 characters per line, and the END marker. Decoding the Base64 yields DER, and parsing the DER's ASN.1 structure yields the fields (subject, issuer, validity, SANs, key, signature, serial) that openssl x509 -text lays out. This viewer covers the envelope half of that job: type, sizes, clean decode.

How do I check when a certificate expires?

openssl x509 -text -noout -in file.pem prints the notBefore and notAfter dates; anything under 30 days out is renewal territory, and anything in the past explains every symptom downstream: browsers refuse it, curl fails the handshake, and service meshes reject the workload. This viewer is the quick first look (type and sizes, no upload), and its note carries the openssl command.

Why does my browser say the certificate doesn't match the site?

Hostname matching happens on the Subject Alternative Names list, not the Common Name; CN matching was deprecated years ago. If the name being visited is not spelled out in the SANs (wildcards count for one level only), the certificate fails regardless of what the CN says. openssl x509 -text prints the full SAN list for exactly this check.

Is it safe to paste my certificate into this page?

A certificate is public (your server hands it to every visitor) and this page parses it locally with no network request, so nothing is exposed. The line that matters: never paste a block whose BEGIN line names a private key (RSA or EC) anywhere, ever. Split the file first and bring only the certificate.

What is the difference between PEM, DER and .crt files?

Same certificate, different packaging. DER is the binary ASN.1 structure; PEM is that structure Base64-encoded between BEGIN/END markers so it survives text channels; .crt, .cer and .pem are file extensions that usually hold PEM, though some tools emit DER with the same suffix. If a viewer chokes on your file, it is probably DER; convert once with openssl x509 -inform DER and move on.

How do I verify a certificate fingerprint?

The SHA-256 fingerprint is the digest of the whole DER structure, and openssl x509 -fingerprint -sha256 prints it. Compare it character by character against the fingerprint your vendor published or your server presents. A match proves you are looking at the exact certificate, not a lookalike.

What is a certificate chain?

The leaf certificate (your hostname), the intermediates that link it toward a root, and the trusted root itself. Servers must serve the leaf plus intermediates; a missing intermediate is the classic 'works on desktop, fails on mobile' failure, because some clients lack the intermediate cache. Inspect one block at a time: split the chain and read each link, with openssl showing its fields.

What to reach for next

These tools share the PEM Certificate Viewer's workflow most often; the internal links exist because people genuinely chain them, not for keyword decoration.

  • SHA-256 Hash Generator: the digest workhorse when you need to fingerprint any file, certificate or not.
  • File Checksum Calculator: whole-file digests for the artifacts you ship alongside your certificates.
  • Base64 Encoder/Decoder: the transport layer PEM is built on, the same RFC 4648 armor one step lower.

Sources and further reading

The specifications below are what the page's claims rest on: RFC 7468 for the envelope, RFC 5280 for the fields, RFC 4648 for the Base64, and the chain docs for what must ship alongside a leaf.

Sources and further reading

We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.