What you can do with Battery Status
- Check laptop battery percentage
- See if my device is charging
What this hardware diagnostic tests
Inspect battery charging state, current charge percentage, and estimated charging or discharging time remaining via the Battery Status API.
Example input
navigator.getBattery()Example output
Battery level: 75% | Charging: Yes | Time to full charge: 20 minPractical workflow
- Open the tool in a secure browser on a device that exposes the Battery Status API.
- Review the battery level, charging state, and time estimate reported by the browser.
- Connect or disconnect power and watch for the browser to publish updated battery events.
- Treat missing or changing time estimates as system-provided values, not battery-health results.
Common use cases
- Checking the charge percentage that a supported browser reports for a laptop or tablet.
- Confirming whether the browser reports a device as charging after connecting a power source.
- Viewing the operating system's estimated time to full charge or remaining runtime when available.
Important notes and limitations
- The Battery Status API requires a secure context and is not exposed by every browser or device; browser privacy settings or Permissions Policy can block it.
- The browser may return privacy-preserving defaults such as 100% and charging when it cannot report actual battery data, so those values do not prove a removable battery is present.
- Charge-time estimates come from the browser or operating system and may be unavailable; this tool cannot measure battery health, capacity loss, or charger wattage.
- Battery readings stay in page memory and are not sent to a server.
Battery Status API & ACPI power diagnostics
Inspect laptop battery capacity and health with upower (Linux)
upower -i $(upower -e | grep 'BAT')Outputs battery state, percentage, remaining charge time, and factory design capacity vs current capacity.
macOS battery health check via pmset
pmset -g battDisplays internal battery charge percentage, charging state, and remaining operating time.
Battery API removal & privacy fingerprinting
navigator.getBattery is undefined in Firefox and Safari
Cause: Mozilla and Apple removed the Battery Status API due to concerns over high-precision cross-site user fingerprinting.
Solution: Check feature existence ('if ("getBattery" in navigator)') and provide graceful fallback UI on unsupported browsers.
Continue your workflow
- CPU Benchmark — compare processor throughput using single- and multi-worker prime-counting runs.
- Memory Benchmark — measure RAM throughput and browser heap allocation.
Frequently asked questions
Why did my browser not provide battery data?
The Battery Status API has limited browser and device availability, requires a secure context, and can be blocked by browser privacy settings or Permissions Policy.
How accurate are the battery time estimates?
The browser exposes estimates supplied by the device or operating system; they can change as conditions change and may be unavailable, so use them as guidance rather than a precise prediction.
Can this tool check battery health or charger wattage?
No. The browser API provides charge level, charging state, and estimated time values; it does not expose battery capacity health, charge-cycle history, or charging wattage.