What is the difference between BER and DER?
BER permits multiple valid encodings for some ASN.1 values. DER is a restricted BER profile that selects one canonical encoding, including definite minimal lengths and canonical primitive values.
Decode DER, BER, PEM, Base64, or hex into an offset-aware ASN.1 TLV tree; inspect universal values, OIDs, embedded structures, and canonical DER diagnostics.
The source is parsed in a browser worker. No certificate, key, CMS, or other binary value is uploaded, executed, verified, or sent to a remote endpoint.
Choose a local binary or PEM file to inspect.
TLV nodes, offsets, decoded values, OID names, DER/BER diagnostics, and correlated source bytes will appear here.
DecodeLens keeps every tag, length, content, and total range tied to the original bytes; resolves common PKI and cryptographic OIDs offline; and labels embedded ASN.1 interpretations as heuristics instead of schema facts.
Continue with tools that decode, convert, inspect, or verify the same data.
Inspect PEM or DER certificates, identity, validity, algorithms, SANs, extensions, fingerprints, and chain signatures.
Open toolDecode DER, Base64, hex, or file-based PKCS#10 certificate requests and inspect the subject, public key, SANs, requested extensions, attributes, and self-signature.
Open toolInspect CMS and PKCS#7 content types, SignedData certificates and signers, EnvelopedData recipients, digest metadata, embedded content, and ASN.1 offsets.
Open toolInspect file bytes, pasted hex, offsets, ASCII, numeric values, and magic-byte signatures.
Open toolLoad the example to correlate SEQUENCE, INTEGER, SHA-256 OID, and UTF8String nodes with their original offsets and lengths.
30 1A 02 01 2A 06 09 60 86 48 01 65 03 04 02 01…SEQUENCE → INTEGER 42 · OID 2.16.840.1.101.3.4.2.1 · UTF8String DecodeLensBER permits multiple valid encodings for some ASN.1 values. DER is a restricted BER profile that selects one canonical encoding, including definite minimal lengths and canonical primitive values.
No. It only means the supported structural canonicalization checks found no problem. Certificate parsing, signature verification, chain building, time validity, and trust are separate checks.
OCTET STRING and BIT STRING can contain arbitrary bytes. A payload that parses cleanly as TLV data may still have a different application-defined meaning without a schema or surrounding OID.