HomeDeveloper toolsASN.1 DER Tree Difference

ASN.1 DER Tree Difference

Compare two ASN.1 DER structures and locate changed tags, values and child nodes.

Processing stays in your browser. Definite-length structural comparison, 125 KB and 1,000 nodes per input. It does not validate certificate trust, compare unordered ASN.1 SET semantics or prove complete DER conformance.

How to use the asn.1 der tree difference

Review previous der hex, next der hex using the supplied worked example. Replace the example with your own data and choose Run tool. Inspect the result against the method below before copying or downloading it. Editing an input clears the previous result.

How the tool works

Each input is decoded into a bounded tag-length-value tree. The comparison walks corresponding child positions and reports added or removed nodes, changed tag/class/constructed flags and changed primitive bytes. Decoded integer and OID values help explain a difference without treating raw bytes as executable data.

Worked example

View the example inputs
Previous DER hex
3006020101020102
Next DER hex
3006020101020103

Changing the second INTEGER from 2 to 3 reports one value change at tree path /0/1.

Good to know

Definite-length structural comparison, 125 KB and 1,000 nodes per input. It does not validate certificate trust, compare unordered ASN.1 SET semantics or prove complete DER conformance.

Sources and implementation notes

Implemented by DevBricks Technologies. Method notes updated . References describe the underlying format, method or API. Local processing runs on your device. Any public provider queries are described above and start when you run the lookup.

Preserve the exact bytes and character convention

Identify whether the input represents text, raw bytes or a number. Text needs a character encoding such as UTF-8, while hexadecimal, binary and Base64 describe ways to represent bytes or values. Preserve separators and padding according to the selected format. Include a non-ASCII character in a text test so an incorrect character encoding does not remain hidden behind an ASCII-only example.

Inputs and settings explained

Previous DER hex
Paste the previous der hex as plain text using the demonstrated structure. Keep meaningful line breaks, quotation marks and separators. Start with a small representative example and increase its size only after the output is understood. Read the tool's restrictions before including unsupported syntax or binary data.
See the demonstration value
3006020101020102
Next DER hex
Paste the next der hex as plain text using the demonstrated structure. Keep meaningful line breaks, quotation marks and separators. Start with a small representative example and increase its size only after the output is understood. Read the tool's restrictions before including unsupported syntax or binary data.
See the demonstration value
3006020101020103

How to review the result

Compare the output byte count and, where an inverse operation is supported, test a round trip with the same settings. A visually identical string can have different Unicode normalization or line endings. A numeric base conversion is also different from interpreting the same digits as encoded text. Encoding is not encryption: changing a representation does not hide the information from someone who knows that representation.

  • Confirm the text encoding, numerical base and expected grouping or padding.
  • Compare bytes for a small known example rather than judging only the rendered text.
  • Use the reverse operation where available and check that the original information returns.

Common questions about this workflow

Why does one character produce several byte groups?

A character's encoded length depends on the encoding. UTF-8 uses more than one byte for many characters outside ASCII. Treating every displayed character as one byte can corrupt the result.

Can encoded text protect a password or secret?

No. Representations such as Base64 and hexadecimal are reversible without a secret key. Use the security mechanism required by your application rather than relying on an unfamiliar-looking string.

Built by DevBricks Technologies. Found an unexpected result in ASN.1 DER Tree Difference? Report a reproducible example with the tool URL, settings and a small sample that contains no private information.