<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://fileformats.archiveteam.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://fileformats.archiveteam.org/index.php?action=history&amp;feed=atom&amp;title=Netscape_cookies.txt</id>
		<title>Netscape cookies.txt - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://fileformats.archiveteam.org/index.php?action=history&amp;feed=atom&amp;title=Netscape_cookies.txt"/>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=Netscape_cookies.txt&amp;action=history"/>
		<updated>2026-05-21T07:37:07Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.2</generator>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=Netscape_cookies.txt&amp;diff=43702&amp;oldid=prev</id>
		<title>KlfJoat: Add to .txt category</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=Netscape_cookies.txt&amp;diff=43702&amp;oldid=prev"/>
				<updated>2022-12-08T23:37:10Z</updated>
		
		<summary type="html">&lt;p&gt;Add to .txt category&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 23:37, 8 December 2022&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 89:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 89:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Text-based data]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Text-based data]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:File formats with a distinctive filename]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:File formats with a distinctive filename]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:File formats with extension .txt]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>KlfJoat</name></author>	</entry>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=Netscape_cookies.txt&amp;diff=43263&amp;oldid=prev</id>
		<title>Dan Tobias at 14:29, 20 September 2022</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=Netscape_cookies.txt&amp;diff=43263&amp;oldid=prev"/>
				<updated>2022-09-20T14:29:35Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 14:29, 20 September 2022&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 88:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 88:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Text-based data]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Text-based data]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:File formats with a distinctive filename]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dan Tobias</name></author>	</entry>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=Netscape_cookies.txt&amp;diff=43260&amp;oldid=prev</id>
		<title>KlfJoat: clarity on FF cookie file locking</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=Netscape_cookies.txt&amp;diff=43260&amp;oldid=prev"/>
				<updated>2022-09-19T22:57:01Z</updated>
		
		<summary type="html">&lt;p&gt;clarity on FF cookie file locking&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 22:57, 19 September 2022&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; EOF&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; EOF&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Firefox locks the &amp;lt;code&amp;gt;cookies.sqlite&amp;lt;/code&amp;gt; file. If you want to run the above script you must either exit Firefox or copy the file to a temporary location.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Firefox locks the &amp;lt;code&amp;gt;cookies.sqlite&amp;lt;/code&amp;gt; file &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;while running&lt;/ins&gt;. If you want to run the above script you must either exit Firefox or copy the file to a temporary location.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Notes ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Notes ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>KlfJoat</name></author>	</entry>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=Netscape_cookies.txt&amp;diff=43259&amp;oldid=prev</id>
		<title>KlfJoat: Create page with basic info</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=Netscape_cookies.txt&amp;diff=43259&amp;oldid=prev"/>
				<updated>2022-09-19T22:55:22Z</updated>
		
		<summary type="html">&lt;p&gt;Create page with basic info&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{FormatInfo&lt;br /&gt;
|formattype=electronic&lt;br /&gt;
|subcat=Web&lt;br /&gt;
|subcat2=Web browser files&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the past, the Netscape browser was so dominant that many tools emulated its cookie file format. The browser market moved on, but the &amp;lt;code&amp;gt;'''cookies.txt'''&amp;lt;/code&amp;gt; file format remains in use by fundamental and popular tools such as [https://curl.se/ curl], [https://www.gnu.org/software/wget/ wget], and [https://youtube-dl.org/ youtube-dl], as well as many others.&lt;br /&gt;
&lt;br /&gt;
== File format ==&lt;br /&gt;
Officially, the first line of the file must be one of the following:&lt;br /&gt;
* &amp;lt;code&amp;gt;# HTTP Cookie File&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;# Netscape HTTP Cookie File&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Fields are [[Tab delimited|separated by tab characters]] (&amp;lt;code&amp;gt;\t&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;\009&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;0x09&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
Lines are separated by the newline format in use by the running operating system. That means &amp;lt;code&amp;gt;CRLF&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;\r\n&amp;lt;/code&amp;gt;) for Windows and &amp;lt;code&amp;gt;LF&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;\n&amp;lt;/code&amp;gt;) for Unix-like systems such as Linux, macOS, FreeBSD, etc.&lt;br /&gt;
&lt;br /&gt;
The 7 fields are as follows.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: 0px; margin-right: auto;&amp;quot; &lt;br /&gt;
|+ Human-Friendly Schema&lt;br /&gt;
|-&lt;br /&gt;
! Field Name !! Type !! Example Value || Notes&lt;br /&gt;
|-&lt;br /&gt;
| host || string || &amp;lt;code&amp;gt;example.com&amp;lt;/code&amp;gt; || Hostname that owns the cookie&lt;br /&gt;
|-&lt;br /&gt;
| subdomains || boolean string || &amp;lt;code&amp;gt;FALSE&amp;lt;/code&amp;gt; || Include subdomains (old attempt at SameSite)&lt;br /&gt;
|-&lt;br /&gt;
| path || string || &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; || Pathname that owns the cookie at the host&lt;br /&gt;
|-&lt;br /&gt;
| isSecure || boolean string || &amp;lt;code&amp;gt;TRUE&amp;lt;/code&amp;gt; || Send/receive cookie over HTTPS only.&lt;br /&gt;
|-&lt;br /&gt;
| expiry || number || &amp;lt;code&amp;gt;1663611142&amp;lt;/code&amp;gt; || Cookie expiration in standard [[Unix time|Unix timestamp]] format&lt;br /&gt;
|-&lt;br /&gt;
| name || string || &amp;lt;code&amp;gt;cookiename&amp;lt;/code&amp;gt; || Cookie name&lt;br /&gt;
|-&lt;br /&gt;
| value || string || &amp;lt;code&amp;gt;cookievalue&amp;lt;/code&amp;gt; || Cookie value&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example file ==&lt;br /&gt;
 # HTTP Cookie File&lt;br /&gt;
 example.com	FALSE	/	TRUE	1663611142	cookiename	cookievalue&lt;br /&gt;
 example.net	FALSE	/	FALSE	1125326700	cookiename	cookievalue&lt;br /&gt;
 example.org	TRUE	/	FALSE	1000210440	cookiename	cookievalue&lt;br /&gt;
 example.com	FALSE	/a/	FALSE	1596693600	cookiename	cookievalue&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Extract cookies to Netscape cookies.txt format ==&lt;br /&gt;
This is a common need so extensions exist for Chrome and Firefox.&lt;br /&gt;
* [https://chrome.google.com/webstore/detail/get-cookiestxt/bgaddhkoddajcdgocldbbfleckgcbcid/ Chrome - Get cookies.txt]&lt;br /&gt;
* [https://addons.mozilla.org/en-US/firefox/addon/cookies-txt/ Firefox - cookies.txt]&lt;br /&gt;
&lt;br /&gt;
=== Code snippet to extract cookies from Mozilla Firefox to Netscape cookies.txt format ===&lt;br /&gt;
It may be useful to extract your own cookies by running a script. This is a small excerpt of a larger script, so it will not run alone as-is. This portion will take a [[Firefox cookie database]], convert it to cookies.txt format, then echo it to &amp;lt;code&amp;gt;stdout&amp;lt;/code&amp;gt;. The work before this snippet plus capturing the output are beyond the scope of this page.&lt;br /&gt;
&lt;br /&gt;
Because of format changes, some data type conversions must be performed during the extract. This is done in the &amp;lt;code&amp;gt;case&amp;lt;/code&amp;gt; statements.&lt;br /&gt;
&lt;br /&gt;
'''This snippet of code is not compatible with the Multi-Account Container Extension or the Facebook Container Extension. Multiple cookies that match the same host/path/name tuple might be output. Depending on the website and the way the cookies.txt file is parsed by the tool you're using, you may find inconsistent, unexpected, or contradictory behavior.'''&lt;br /&gt;
&lt;br /&gt;
Prerequisites:  &lt;br /&gt;
* A Bourne-compatible shell with support for [https://en.wikipedia.org/wiki/Here_document here documents], such as &amp;lt;code&amp;gt;sh&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;csh&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;tcsh&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ksh&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;bash&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;zsh&amp;lt;/code&amp;gt; to name a few.&lt;br /&gt;
* The sqlite3 binary.&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;# HTTP Cookie File&amp;quot;&lt;br /&gt;
 sqlite3 -separator '	' &amp;quot;cookies.sqlite&amp;quot; &amp;lt;&amp;lt;- EOF&lt;br /&gt;
 .mode tabs&lt;br /&gt;
 .header off&lt;br /&gt;
 select host,&lt;br /&gt;
 case substr(host,1,1)='.' when 0 then 'FALSE' else 'TRUE' end,&lt;br /&gt;
 path,&lt;br /&gt;
 case isSecure when 0 then 'FALSE' else 'TRUE' end,&lt;br /&gt;
 expiry,&lt;br /&gt;
 name,&lt;br /&gt;
 value&lt;br /&gt;
 from moz_cookies;&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
Firefox locks the &amp;lt;code&amp;gt;cookies.sqlite&amp;lt;/code&amp;gt; file. If you want to run the above script you must either exit Firefox or copy the file to a temporary location.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* The [https://github.com/yt-dlp/yt-dlp yt-dlp] project supports pulling cookies from the browser natively with &amp;lt;code&amp;gt;--cookies-from-browser&amp;lt;/code&amp;gt; as well as the legacy cookies.txt format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* [https://everything.curl.dev/http/cookies/fileformat cURL cookie file format]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Text-based data]]&lt;/div&gt;</summary>
		<author><name>KlfJoat</name></author>	</entry>

	</feed>