Why is the maximum limit for native "html5 localStorage" 5mb?

Why is the maximum limit for native “html5 localStorage” 5mb?

The limit is established by the WHATWG Storage specification.

This page talks a bit more about storage quotas:

However, it may not give the exact reason why 5 MB was chosen.

A limit is definitely necessary, though. Otherwise, a malicious website could fill a lot of space with useless data.

1 Like