Battery Status - Interactive Lab | IconVault

Connect to the real Battery Status API: live level chart, charging state, time estimates and event log. Free, runs in your browser.

All tools

Battery Status

Charging state, live level chart and event log

5 of 5 free uses left

navigator.getBattery() is not available in this browser. The Battery Status API was removed from Firefox and Safari over fingerprinting concerns and today only works in Chromium browsers. The layout below shows what the tool reports when the API exists; nothing here is simulated.

Monitor

API missing

5 of 5 free connections left. Nothing leaves your device.

Try this

  1. Connect, then plug and unplug your charger.
  2. Watch the charging event arrive in the log instantly.
  3. Leave it running: the chart records one sample every 2 seconds.

Battery level

--

Not connected.

Charging

--

Level

--

Time to full

n/a

Time to empty

n/a

Level history (live)

Event log

chargingchange, levelchange and time events appear here in real time.

About this tool

IconVault's Battery Status playground connects to the real `navigator.getBattery()` API: live charge level with a recording chart, charging versus discharging state, estimated time to full or empty, and an event log that fires the instant you plug or unplug the charger. Where the API has been removed, the tool says so plainly instead of simulating numbers. It is free and runs fully in your browser.

The lab covers the honest history too: Firefox and Safari dropped this API over fingerprinting concerns, so it is Chromium-only today. You will learn the four events (`chargingchange`, `levelchange`, `chargingtimechange`, `dischargingtimechange`), why times report `Infinity` when unknown, and the practical pattern of lowering work (fewer animations, deferred sync) when the device is unplugged and low.

Frequently asked questions

Popular searches

battery status apinavigator.getbatterygetbatterybattery api javascriptbattery level javascripthtml battery apibattery status demobattery api examplechargingchangelevelchangebatterymanagerget battery level webjavascript battery percentageweb battery indicatorbattery api chromebattery api firefox removedbattery api safariwhy battery api removedbattery fingerprintingchargingtimedischargingtimebattery time to fullbattery level chartmonitor battery web apppwa batterylow battery web appdata saver batterymdn battery status apibattery status api tutorialbattery api typescriptbattery api polyfillis battery api supportedcaniuse battery statusnavigator.getbattery not a functionbattery api httpsweb api battery leveljavascript detect charginglaptop charging javascriptphone battery webbattery events javascriptbattery status example codehow to get battery percentage in javascriptbattery api 2024battery api privacytest battery api onlinebattery playgroundbattery monitor browsergetbattery typescriptbattery api example codedetect charger javascriptbattery level web app

More tools

Coming soon

CLI

Coming soon

Figma plugin

Coming soon

VS Code extension

Coming soon

Chrome extension

Coming soon

AI icon generator

Coming soon

Team workspaces

Coming soon

View all 10+ tools →