What are IndexedDB's storage limits across different browsers/platforms?
Ask by ICSM Computer
Updated 18 Jul 2025
IndexedDB storage limits vary by browser, platform (desktop vs mobile), and usage context (e.g., secure context, quota management). They are usually quota-based, often tied to available disk space.
Estimated Storage Limits (2024)
How to Detect Storage Limits or Quota Warnings
There is no direct API to get the exact quota or usage in all browsers, but the most reliable methods are:
1. Use
navigator.storage.estimate()(Chrome, Edge, Firefox)2. Catch
QuotaExceededErrorDuring Writes3. Proactive Write Size Check (Custom Strategy)
You can test how much you can write with binary data:
Considerations
navigator.storage.persist()to request persistent storage (won’t be cleared by the browser):Recommendations
navigator.storage.estimate()QuotaExceededErrorgracefully