Battery Level

Back to Main

Battery Level Status

Checking...

Note: Battery Status API is deprecated and removed from most browsers due to privacy concerns.

1. Technical Classification

Battery Status APIDeprecatedPrivacy RiskRemoved from Browsers

The Battery Status API was designed to let websites know the device's battery percentage, but was deprecated and removed due to severe privacy implications. It revealed precise battery level (0-100%) which could be used for tracking.

2. Background & Purpose

The Battery Status API was introduced in 2012 to help websites optimize for low-power situations. The intent was good, but the implementation created serious privacy problems.

Original Intent

Why It Was Removed

In 2016-2017, researchers discovered the API was being used for "battery status tracking" - a fingerprinting technique that uniquely identified users based on precise battery percentage combined with other data. Because battery level changes uniquely over time, it created a tracking vector that persisted even after clearing cookies.

3. Possible Values & Detection

Original Values (When Supported)

Battery Level

0.0 to 1.0 representing 0% to 100% charge

Example: 0.73 = 73% battery

Current Status

The API has been removed from all major browsers. Attempting to access it will return:

4. Common Legitimate Uses (Historical)

Power Management

5. Browser & Platform Differences

BrowserStatusWhen Removed
ChromeRemovedVersion 103 (2022)
FirefoxRemovedVersion 72 (2020)
SafariNever supportedN/A
EdgeRemovedFollowing Chrome (Chromium)
Mobile browsersAll removed2020-2022

6. Privacy Implications & Tracking Risks

Privacy Risk: HIGH (when it existed)

Battery level was one of the most effective fingerprinting vectors, uniquely identifying users even after clearing all browser data.

How Battery Tracking Worked

Precise Fingerprinting

Battery level changes in small increments. Combined with other data (screen size, timezone, etc.), it created a highly unique fingerprint. As battery drained uniquely per user's activity, it could track users across sessions.

Persistence Across Clearing Data

Unlike cookies or localStorage, battery level persisted even after clearing all browser data. Users couldn't remove this tracking vector.

Research Findings

In 2016, researchers from Belgium and France demonstrated that battery status could identify users with 97% accuracy within 2 minutes. The combination of:

Created a near-unique identifier for each device.

7. Current State & User Protection

Good News: API Is Dead

You don't need to do anything to protect against battery tracking. All modern browsers have removed this API entirely.

Lessons Learned

The Battery Status API serves as a cautionary tale about well-intentioned features with unintended privacy consequences. It demonstrates why:

8. Learn More