# Decode Linkcode

*Article Topics:* [*NATS Admin*](/getting-started/common-topics/nats-admin.md)*,* [*Tracking*](/getting-started/common-topics/tracking.md)

NATS provides you with the ability to decode your NATS linkcodes which provides you with details associated with the affiliate.&#x20;

Encoded linkcodes can be decoded using base64 decoding, which uses ASCII characters and binary to encode/decode links.

## Decoding Linkcodes

NATS Admins can decode linkcodes using the "Decode Linkcode" tool which can be found in the "Tools" admin in NATS.

![](/files/VThWSGVbS1PdWijVamcn)

To decode a Linkcode insert the NATS Code and click "Decode."

<figure><img src="/files/EgBGIvNrQeAcnWFzIYfE" alt=""><figcaption></figcaption></figure>

This will display a list of information including the Affiliates, campaign, program, ad tool type, ad tool id, site, tour, sub id 1, and sub id 2.&#x20;

## Decoding using the Info bar

NATS Admins can also decode linkcodes using the info bar located at the top-right of any NATS Admin page.&#x20;

<figure><img src="/files/1T8VPatN2o3UGYiRVNFn" alt=""><figcaption></figcaption></figure>

Clicking the info bar will bring up a tool for decoding linkcodes without leaving the page you are currently on.&#x20;

You can decode your linkcodes by inserting the linkcode and clicking the blue checkmark.&#x20;

<figure><img src="/files/8pxe1Kk3zxLA7wvGBcMX" alt=""><figcaption></figcaption></figure>

This will then display all the information contained within the linkcode.&#x20;

<figure><img src="/files/KeFcyqXKn781yhGI5ghP" alt=""><figcaption></figcaption></figure>

## Related Article

{% content-ref url="/pages/y5oyYFW1vJeEm1czMPBu" %}
[Generate Linkcode](/nats-admin/tools/generate-linkcode.md)
{% endcontent-ref %}

{% content-ref url="/pages/PkcHlvcNnFhznKHnZOg6" %}
[NATS Code](/using-nats/nats-admin-features/linkcodes/nats-code.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.toomuchmedia.com/nats-admin/tools/decode-linkcode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
