> For the complete documentation index, see [llms.txt](https://docs.incogniton.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.incogniton.com/cookie-management/converting-cookies.md).

# Converting cookies

{% embed url="<https://www.youtube.com/watch?v=1tv98Yhe0AM>" %}

In this article we explain how to convert Netscape cookies to JSON format and JSON format to plain/base (Netscape) format.

Websites use cookies to analyze user traffic and personalize browsing by showing relevant ads based on website activity. Cookies can be first-party (created by the website the user visits) or third-party (created by other web pages). Both first-party and third-party cookies can be session-limited (deleted when the browser session ends) or persist until their expiry date.

You can use **<https://www.cookieconverter.com/>** (powered by Incogniton) to convert cookies between Netscape and JSON formats.

### Convert Netscape format to JSON format

{% stepper %}
{% step %}

#### **Insert cookies in Netscape format**

Insert the cookies in Netscape format into the provided text space, or upload the Netscape-format cookie file.

![](/files/3c30a11e208ba5f3b9b459af6ee3a091a29185d4)
{% endstep %}

{% step %}

#### **Convert cookies**

Click the **Convert Cookies** button at the bottom to generate cookies in JSON format.

![](/files/1ae272e2dc68772fb0787fb5a702b1bb3e731b37)
{% endstep %}
{% endstepper %}

### Convert JSON format to plain / base (Netscape) format

{% stepper %}
{% step %}

#### **Insert cookies in JSON format**

Insert the cookies in JSON format into the provided text space, or upload the JSON-format cookie file.

![](/files/64b359e5f5afadeff732922a9209aadf2476d85f)
{% endstep %}

{% step %}

#### **Convert cookies**

Click the **Convert Cookies** button at the bottom to generate cookies in plain or base (Netscape) format.

![](/files/1ae272e2dc68772fb0787fb5a702b1bb3e731b37)
{% endstep %}
{% endstepper %}

{% hint style="info" %}
If you wish to collect cookies, please read [this article](/cookie-management/cookie-collector.md). If you wish to export cookies, please read [this article](/cookie-management/exporting-cookies.md). If you wish to import cookies, please read [this article](/cookie-management/importing-cookies.md).
{% endhint %}

{% hint style="info" %}
If you require further explanation, please do not hesitate to contact our [support team](https://incogniton.com/contact/)!
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.incogniton.com/cookie-management/converting-cookies.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
