Canonical: https://toolipedia.app/asn-1-decoder

# ASN.1 Decoder

Parses DER, BER and PEM data into an ASN.1 tree with common OIDs named, for certificates, keys and certificate requests, and reads files without uploading them.

Breadcrumbs: Toolipedia > Developer tools > Code and developer utilities > ASN.1 Decoder

## About ASN.1 Decoder

ASN.1 is the structure behind X.509 certificates, public keys, certificate requests and many protocols. Paste PEM text, Base64 or hex bytes and this decoder prints the tree: each element's byte offset, type and length with the value beside it, object identifiers resolved to names such as commonName, rsaEncryption or subjectAltName, times written readably, and OCTET STRING or BIT STRING contents that hold more ASN.1 expanded. It reads DER and BER including indefinite lengths, and several PEM blocks at once, which suits certificate chains.

## How to use ASN.1 Decoder
1. Paste a PEM block, Base64 or hexadecimal bytes, or open a certificate or key file.
2. Read the tree: indentation shows nesting and each line gives the offset and length.
3. Look up the OIDs and values you need, or copy the whole tree as text.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.

## Also known as
- asn.1 decoder
- der decoder online
- pem to asn1 tree
- decode certificate structure
- oid lookup asn1
- parse csr asn.1

## Frequently asked questions

### Is it safe to paste a private key here?

The data is decoded in your browser and not sent anywhere. Even so, avoid pasting real private keys into any web page; certificates and public keys are fine to inspect.

### Why is an object identifier shown only as numbers?

Only a short list of common OIDs is named, such as name attributes, RSA and EC algorithms, hashes and certificate extensions. Unknown ones appear as dotted numbers you can search elsewhere.

### What do the numbers in the tree mean?

The first number is the byte offset where the element starts and the number in parentheses is the length of its content in bytes. Tags in square brackets are context-specific, such as [0] in certificates.

### Is ASN.1 Decoder free?

Yes. ASN.1 Decoder on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

## Related tools

More free tools that go well with ASN.1 Decoder:
- [CSR (certificate signing request) decoder](https://toolipedia.app/csr-decoder)
- [JWK and PEM Key Converter](https://toolipedia.app/jwk-pem-key-converter)
- [ASN and IP prefix lookup](https://toolipedia.app/asn-lookup)
- [Algorithm and Data-Structure Visualizer](https://toolipedia.app/algorithm-and-data-structure-visualizer)
- [PHP Serialized Data Decoder](https://toolipedia.app/php-serialize-decoder)
