Skip to main content

Battery Status

Shows the current battery charge level, charging state, and estimated time remaining for this device where the browser supports it

Battery Status

Reads your device's live battery status directly from the browser. Runs entirely in your browser — nothing is sent to any server. This API is not available in every browser or device and may be blocked by privacy settings or page policy.

Some browsers use default readings when actual battery data is unavailable. A 100%, charging result with no runtime estimate cannot confirm that the device has a removable battery.

—
Checking battery status…
Time to full charge—
Time remaining—

Was this Battery Status helpful?

Help us keep tools reliable, fast, and bug-free.

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 min

Practical workflow

  1. Open the tool in a secure browser on a device that exposes the Battery Status API.
  2. Review the battery level, charging state, and time estimate reported by the browser.
  3. Connect or disconnect power and watch for the browser to publish updated battery events.
  4. 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 batt

Displays 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.