---
id: "localstorage"
kind: "web-feature"
canonical: "https://timetostable.com/feature/localstorage"
baseline: "high"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# localStorage and sessionStorage (`localstorage`)

The localStorage and sessionStorage APIs store data as key-value pairs. While localStorage persists across sessions, sessionStorage data is discarded when the page is closed.

- **Group**: Storage
- **Baseline**: Widely Available
- **Newly Available Date**: 2015-07-29
- **Widely Available Date**: 2018-01-29
- **Specification**: https://storage.spec.whatwg.org/
- **Constituent BCD keys**: 17

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Safari | 4 | 2009-06-08 |
| Firefox | 3.5 | 2009-06-30 |
| Chrome | 4 | 2010-01-25 |
| Safari on iOS | 3.2 | 2010-04-03 |
| Firefox for Android | 6 | 2011-08-16 |
| Chrome Android | 18 | 2012-06-27 |
| Edge | 12 | 2015-07-29 |

