chrome cookie size limit chrome cookie size limit google-chrome google-chrome

chrome cookie size limit


According to RFC 1012 cookie size must not be limited by user agent. But the minimum capabilities of a browser or user agent should be at least 4096 bytes per cookie. This limit is applied to the name=value portion of the cookie only.

So some browsers can support longer cookies as well.List :

  1. Internet Explorer 8 allowed cookies up to 4095 bytes
  2. Chrome 9allowed cookies up to 4096 bytes
  3. Opera 11 allowed cookies up to 4096 bytes
  4. Safari 5allowed coookies up to 4097 bytes
  5. Firefox 3.6.3 allowed cookies up to 4097 bytes

Source of Answer : http://webdesign.about.com/od/cookies/f/web-cookies-size-limit.htm


Chrome supports HTML5 localStorage that allows you to use a dictionary style look up. You can use this to store larger amounts of data instead of passing them back and forth using cookies.


You can't change the cookie size but you can use several cookies and span your data across them, keeping one cookie as a pointer to other cookies so you know what they're called, how many there are, etc (like a partition table on a harddisk).

But perhaps you're approaching this the wrong way. If you need to do something like this, you're probably better off storing the data online as it has a better chance of survival and if you tie it in with some user registration, it's portable too.

There are other options like Mozilla Weave and Google Gears, but Gears was recently announced to be discontinued.