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.
Battery Status
Charging state, live level chart and event log
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 missing5 of 5 free connections left. Nothing leaves your device.
Try this
- Connect, then plug and unplug your charger.
- Watch the charging event arrive in the log instantly.
- 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
More tools
Algorithm Visualizer
Watch sorting and searching animate step by step
Alt Text Helper
Write better image alt text with live feedback
ARIA Reference
Searchable ARIA roles and attributes guide
Array Visualizer
Step through map, filter, reduce like a debugger
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