# 转换 Cookie

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

在本文中，我们将解释如何将Netscape格式的Cookies转换为JSON格式，以及将JSON格式转换为普通/基础（Netscape）格式。

网站使用Cookies来分析用户流量，并通过根据网站活动显示相关广告来个性化浏览体验。Cookies可以是第一方（由用户访问的网站创建）或第三方（由其他网页创建）。第一方和第三方Cookies都可以是会话限制的（在浏览器会话结束时删除）或持续到其到期日。

您可以使用 \*\*<https://www.cookieconverter.com/**（由Incogniton提供支持）在Netscape和JSON格式之间转换Cookies。>

### 将Netscape格式转换为JSON格式

{% stepper %}
{% step %}
**插入Netscape格式的Cookies**

将Netscape格式的Cookies插入到提供的文本空间中，或上传Netscape格式的Cookie文件。

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

{% step %}
**转换Cookies**

点击底部的“Convert Cookies”按钮以生成JSON格式的Cookies。

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

### 将JSON格式转换为普通/基础（Netscape）格式

{% stepper %}
{% step %}
**插入JSON格式的Cookies**

将JSON格式的Cookies插入到提供的文本空间中，或上传JSON格式的Cookie文件。

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

{% step %}
**转换Cookies**

点击底部的“Convert Cookies”按钮以生成普通或基础（Netscape）格式的Cookies。

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

{% hint style="info" %}
如果您希望收集Cookies，请阅读[这篇文章](/documentation/chinese-documentation/cookie-guan-li/cookie-collector.md)。如果您希望导出Cookies，请阅读[这篇文章](/documentation/chinese-documentation/cookie-guan-li/exporting-cookies.md)。如果您希望导入Cookies，请阅读[这篇文章](/documentation/chinese-documentation/cookie-guan-li/importing-cookies.md)。
{% endhint %}

{% hint style="info" %}
如果您需要进一步的解释，请不要犹豫，联系我们的[支持团队](https://incogniton.com/contact/)！
{% endhint %}


---

# 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.incogniton.com/documentation/chinese-documentation/cookie-guan-li/converting-cookies.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.
