Storage & Files

Storage Quota & Persistence

Probing…

Storage Quota & Persistence is a web platform capability in the Storage & Files category. Inspect how much you can store and request persistent (non-evictable) storage. Supported in Chromium 55+, Firefox 57+, and Safari 15.2+. Requires a secure context (HTTPS or localhost).

Secure context

Permission persistent-storage: unknown

Try it

Loading demo…

Code

const { usage, quota } = await navigator.storage.estimate()
console.log(usage, 'of', quota, 'bytes used')

const isPersisted = await navigator.storage.persisted()
if (!isPersisted) {
  const granted = await navigator.storage.persist()
  console.log('persistent storage:', granted)
}

Browser support

Chromium
55
Firefox
57
Safari
15.2

Frequently asked questions

Which browsers support Storage Quota & Persistence?

Supported in Chromium 55+, Firefox 57+, and Safari 15.2+.

Does Storage Quota & Persistence require HTTPS?

Yes. Storage Quota & Persistence needs a secure context, so it only works over HTTPS (or on localhost during development).

What is Storage Quota & Persistence used for?

Inspect how much you can store and request persistent (non-evictable) storage.

Can I try Storage Quota & Persistence in my browser?

Yes. shwcs.net runs a live Storage Quota & Persistence demo that probes your current browser and lets you try the API. Everything runs locally — nothing is sent anywhere.

MDN reference ↗ Specification ↗