> 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/documentation/chinese-documentation/cookie-guan-li/converting-cookies.md).

# 转换 Cookies

{% 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
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/documentation/chinese-documentation/cookie-guan-li/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.
