StorageArea is an object representing a storage area.


Values of this type are objects.


Retrieves one or more items from the storage area.
Gets the amount of storage space (in bytes) used one or more items being stored in the storage area.
Stores one or more items in the storage area. If an item already exists, its value will be updated.
Removes one or more items from the storage area.
Removes all items from the storage area.

Browser compatibility

ChromeEdgeFirefoxFirefox for AndroidOpera
Basic support Yes144548 Yes
clear Yes14454833
get Yes14454833
getBytesInUse Yes14 No No33
remove Yes14454833
set Yes141454833

1. storage is limited to 1MB per value.


This API is based on Chromium's API. This documentation is derived from storage.json in the Chromium code.

Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.

Document Tags and Contributors

Contributors to this page: chrisdavidmills, wbamberg
Last updated by: chrisdavidmills,