document.cookie
Describes how JavaScript reads name-value pairs associated with the current document and writes one cookie at a time.
Preparing your comprehensive developer toolkit
Practical Guide
Cookie editor for this site, with masked values and validated JSON import.
A cookie is a browser-stored name-value pair. Its attributes determine where it is sent and when it expires. This editor uses the browser's document.cookie API.
Describes how JavaScript reads name-value pairs associated with the current document and writes one cookie at a time.
SameSite=None requires Secure. HttpOnly cookies are accessible only to the server and cannot be edited here.
Choose Add Cookie and enter a name and value. Leave Domain blank for a host-only cookie. Use / or a path that matches this page, then choose Save.
Explains how a server declares cookie attributes such as Path, Domain, Expires, Secure, HttpOnly and SameSite.
Refresh the list to see cookies readable from this page. Use Show values to reveal their contents.
Load Sample fills the JSON editor. Preview checks names, values, paths, expiration dates and conflicts before you choose Import.
SameSite=None requires Secure. HttpOnly cookies are accessible only to the server and cannot be edited here.
Before changing test settings, export the list to record the visible name-value pairs. The export includes attributes for cookies written while this page is open.
Use a harmless preference such as a theme name to check how the browser stores and returns cookie values.
Preview a batch to catch duplicates or invalid attributes before writing the test cookies. Inspect a fresh list after the import.
Before changing test settings, export the list to record the visible name-value pairs. The export includes attributes for cookies written while this page is open.
For a cookie written while the page is open, select Edit to change the value or expiry, or select Delete and confirm. The name, domain and path identify the cookie.
Edit and delete cookies written during this visit. For other visible cookies, the browser provides their names and values only.
Load Sample fills the JSON editor. Preview checks names, values, paths, expiration dates and conflicts before you choose Import.
HttpOnly cookies are accessible only to the server and cannot be edited here.
Before changing test settings, export the list to record the visible name-value pairs. The export includes attributes for cookies written while this page is open.
Describes how JavaScript reads name-value pairs associated with the current document and writes one cookie at a time.
Official cookie specification
Explains how a server declares cookie attributes such as Path, Domain, Expires, Secure, HttpOnly and SameSite.
Open the tool to try these features.