Guide

THE TOOLBOX / CRYPTOGRAPHY & SECURITY

ASN.1 Decoder Online —
Inspect DER, BER & PEM Binary TLV Trees Locally.

Paste or drop any PEM, Base64, Hex, or binary .DER certificate, public key, or CSR to decode its full ASN.1 Tag-Length-Value tree, byte offsets, and cryptographic OIDs 100% locally.

Samples:
Decoded payload: 91 bytes · 100% browser-local (keys never leave your device).
Decoded ASN.1 TLV Tree (Tag · Length · Value)Root: SEQUENCE
@0SEQUENCE2+89B2 elements
@2SEQUENCE2+19B2 elements
@4OBJECT IDENTIFIER2+7B1.2.840.10045.2.1 (ecPublicKey)
@13OBJECT IDENTIFIER2+8B1.2.840.10045.3.1.7 (prime256v1 (P-256))
@23BIT STRING2+66B(520 bits, unused=0) 04 f6 a5 b8 6f b7 95 f2 0e c7 ea f3 … (+53B)

COMMON ASN.1 UNIVERSAL TAGS

Quick reference for ASN.1 DER Tag-Length-Value (TLV) bytes.

Hex TagASN.1 TypeCommon Cryptographic Usage
0x30SEQUENCE (Constructed)Ordered container for certificates, AlgorithmIdentifier, and RSA keys
0x06OBJECT IDENTIFIERAlgorithm & attribute OIDs (e.g., sha256WithRSAEncryption, CN)
0x02INTEGERSerial numbers, RSA modulus/exponent, ECDSA r/s signature values
0x03 / 0x04BIT / OCTET STRINGRaw public key points, signatures, and X.509 extension payloads

1. Browser-Local Zero-Leak Forensics

Unlike server-side ASN.1 parsers, pasting internal PKI certificates or CSRs here never sends a single byte over the network.

2. Equivalent OpenSSL Command

On the command line, openssl asn1parse -in cert.pem -i produces the same offset, header-length, and nested TLV structure displayed interactively above.

Frequently Asked Questions

What is an ASN.1 DER / BER decoder used for?

ASN.1 (Abstract Syntax Notation One) encoded as DER or PEM is the binary wire format behind X.509 TLS certificates, CSRs, RSA/ECDSA public & private keys, PKCS#7/PKCS#8 blobs, and JWT/OCSP structures. Decoding the Tag-Length-Value (TLV) tree lets you inspect OIDs, key parameters, and byte offsets.

What input formats does this ASN.1 decoder accept?

Paste or drop PEM-armored blocks (-----BEGIN CERTIFICATE/PUBLIC KEY-----), raw Base64 strings, hexadecimal DER strings, or binary .der/.cer/.crt files.

Are private keys or internal certificates safe to paste here?

Yes. All Base64/Hex decoding and ASN.1 TLV tree parsing execute 100% locally inside your browser tab with zero network requests.

How are Object Identifiers (OIDs) resolved?

Universal tag 0x06 (OBJECT IDENTIFIER) bytes are decoded into dotted-decimal notation (such as 1.2.840.10045.3.1.7) and annotated with human-readable cryptographic names (like prime256v1 / P-256, rsaEncryption, or commonName).

What is the difference between DER, BER, and PEM?

BER (Basic Encoding Rules) is the flexible binary ASN.1 encoding; DER (Distinguished Encoding Rules) is a strict canonical subset of BER required for cryptographic signatures; PEM is simply Base64-encoded DER wrapped in header/footer lines.

What does @offset and +header/contentB mean on each tree node?

Each line shows the exact starting byte offset (@0), the TLV header length (+2), and the payload length in bytes (/89B) so you can cross-reference binary dumps or OpenSSL asn1parse output.