Storage

A cookie can store about 4KB of data (total size of all key-value pairs) per domain, whereas web/DOM storage (localStorage and sessionStorage) can store 5MB-25MB of data. To store an unlimited amount of data, consider IndexedDB.