opyeb asn1lab

No upload, no server

Open the binary certificate,
read the structure tag by tag

Paste PEM, Base64 or Hex and the decoder walks the DER/BER bytes down to exact offsets, drawing a tree. Clicking a node highlights its tag, length and value in the hex dump; OIDs resolve to names; X.509, PKCS#8, SPKI and ECDSA signatures are laid out field by field. Zero input sent to a server (advertising and affiliate widgets excepted).

Paste PEM, Base64 or Hex to build the tree.

Input

0 bytes—

Paste -----BEGIN ...----- PEM, Base64, or hex with spaces and colons. The format is detected automatically.

ASN.1 tree

0 nodes

Select a node to highlight its tag, length and value bytes in the hex dump. Press the caret to fold its children.

Hex dump

tag length value

Sixteen bytes per row, hex offset on the left and ASCII on the right. Click a byte to select its node.

Node detail

Select a node in the tree.
—

Structure

Recognised fields appear here.

OID dictionary

Export

Export the current tree and structure as Markdown or JSON.

If you pasted a real private key, do not share the exported file. This tool sends nothing, but the file stays.

Every decode happens in this browser. The bytes you paste are never stored.

How to use it

  1. 01Paste the bytes

    Drop in a certificate PEM, a public or private key, a DER signature, or a hex dump. PEM headers, spaces, colons and line breaks are normalised and the format is detected automatically.

  2. 02Move between tree and dump

    Select a node and the hex dump splits its bytes into tag, length and value colours. Click any byte in the dump and the innermost node containing it is selected, with its ancestors expanded.

  3. 03Read the structure and OIDs

    The tool tells you whether you are looking at X.509, PKCS#8 or SPKI and lists the fields people actually check: serial number, subject, SANs, curve, r and s. Export the tree as Markdown or JSON.

What the workbench holds

Why the input never leaves

A certificate or key file mixes information that is meant to be public with information that must never be published. This tool is built so that no input is sent anywhere.

Frequently asked

Is the certificate or key I paste transmitted?

No. Format detection, byte decoding, DER/BER parsing, OID resolution, structure analysis and export all run in this page's JavaScript. Apart from advertising and affiliate widgets, zero input is sent to a server.

Is it safe to paste a private key?

Nothing is transmitted, but pasting a private key into any web page is better avoided. Use the synthetic sample preset to explore the structure, and handle production keys in an offline environment. Take extra care while screen sharing.

How do DER and BER differ?

BER is the basic set of encoding rules for ASN.1 values; DER is a subset that fixes one representation for lengths and values. DER never uses indefinite length, encodes BOOLEAN true as 0xFF, and carries no unused bits in a BIT STRING. This tool reads both and labels indefinite lengths as BER.

Does it check whether the certificate signature is valid?

No. This is a structure decoder. It does not verify signatures, chain trust or whether the certificate is currently within its validity window; use a dedicated verifier for that.

Are PEM and Base64 the same?

PEM is Base64 body text wrapped in BEGIN/END headers. People also call bare Base64 of DER bytes PEM, but this tool treats a header as PEM and headerless text as Base64.

Why do hex offsets matter?

Most ASN.1 failures start where a length calculation goes wrong. Knowing the exact byte range of every tag, length and value lets you point at a truncated file or a bad length instead of guessing.

ASN.1 guides

All guides

DER, BER and PEM encoding, X.509 layout, key formats, ECDSA signatures and OID reference: the points where real work gets stuck.

Open a certificate now

Load the synthetic certificate sample to fill the tree and the structure panel at once. You never need a real certificate.