LocalStorage Quota

Not reproducible Issue #15339542


Jan 5, 2018
This issue is public.
Found in
  • Microsoft Edge
Found in build #
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

Is it normal that Edge has only 64kb of Storage quota? 4kb in the InPrivate mode?

You can test it with this script:

for (var i = 0, data = "m"; i < 40; i++) {
try {
localStorage.setItem("DATA", data);
data = data + data;
} catch(e) {
var storageSize = Math.round(JSON.stringify(localStorage).length / 1024);
document.write(“<h1>LocalStorage Limit</h1>”);
document.write("LIMIT REACHED: (" + i + ") " + storageSize + “K”);

Or over this link:

I was trying to do something to store some images locally but it is impossible in this way…

64kb of web storage in the year 2018, really? The most browsers updated the space from 5MB to 10MB and Edge reduced the space from 5MB to 64kb?

I can accept it if in the documentation you write “only 64kb” but in the Edge documentation I can read 5MB. This should be the idea behind the localStorage, right?


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

    • Hello,

      Thank you for providing this information about the issue. After thorough testing, we are unable to reproduce this problem in Edge 16299. Please try clearing local storage in Edge and then run your repro test again.

      Best Wishes,
      The MS Edge Team

    • Microsoft Edge Team

      Changed Status to “Not reproducible”

    • Sad to hear it is only reproducible on my Edge browser.
      Also clearing the cache and removing everything (with F12) does not change it.

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

    • I had same issue too but fixed by clearing “Cookies and saved website data” from settings (not F12).
      Seems like limit of local storage was browser-wide until clearing. If I had QuotaExceededError on one website then I was not able to add anything to local storage of any other website. After clearing “website data” I can’t reproduce it anymore. Now each website has its own limitation (about 5MB per website).
      I suppose it was a bug after some update or Edge has limitation of all local storages. For example browser-wide limitation is 100MB so only 20 websites can store 5MB of data but 21th website will get QuotaExceededError on try to save anything.

    • Hello,

      Thank you for sharing your problem and solution. Please reopen this case if you have new information about this specific issue for us to investigate.

      Best Wishes,
      The MS Edge Team

    • Still not solved.
      After resetting Edge:

      I can store again up to 5MB for each domain. But I was never able to know why the limit decreased from week to week up to 200 bytes for each webpage (today).

      It would be nice to have a tool in the F12 dev tool that can show the space used from the different webpages (like other browsers).

      I was able to solve this bug, but now I have lost all my cookies, all my extensions settings and so on. This should be solved as soon as possible, since I can give this solution to users that want use my page but are not able to store more than 1kb in the localStorage!

    • Hello,

      Please feel welcome to submit your idea at http://uservoice.microsoftedge.com where other developers can up-vote your suggestion.

      Best Wishes,
      The MS Edge Team

    You need to sign in to your Microsoft account to add a comment.

    Sign in