Gentleface › Devices & hardware › battery
battery icon
batteryBattery: battery, battery empty, battery level, battery status. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed. Part of the free toolbar icon set.
Animated battery-charge · line-round
Three cells draw in from the bottom one after another and the terminal nudges on the last. Then the battery empties back to the drawn outline.
Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.25 s to 2.2 s. Examples and helper.
Code line-round
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M13.5 6L14.5 6C14.641 6 14.759 6.048 14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 9.5C15 9.641 14.952 9.759 14.856 9.856C14.759 9.952 14.641 10 14.5 10L13.5 10C13.359 10 13.241 9.952 13.144 9.856C13.048 9.759 13 9.641 13 9.5L13 10C13 10.254 12.953 10.5 12.86 10.736C12.758 10.993 12.609 11.219 12.414 11.414C12.219 11.609 11.993 11.758 11.736 11.86C11.5 11.953 11.254 12 11 12L3 12C2.746 12 2.5 11.953 2.264 11.86C2.007 11.758 1.781 11.609 1.586 11.414C1.391 11.219 1.242 10.993 1.14 10.736C1.047 10.5 1 10.254 1 10L1 6C1 5.746 1.047 5.5 1.14 5.264C1.242 5.007 1.391 4.781 1.586 4.586C1.781 4.391 2.007 4.242 2.264 4.14C2.5 4.047 2.746 4 3 4L11 4C11.254 4 11.5 4.047 11.736 4.14C11.993 4.242 12.219 4.391 12.414 4.586C12.609 4.781 12.758 5.007 12.86 5.264C12.953 5.5 13 5.746 13 6L13 6.5C13 6.359 13.048 6.241 13.144 6.144C13.241 6.048 13.359 6 13.5 6ZM2.293 10.707C2.488 10.902 2.724 11 3 11L11 11C11.276 11 11.512 10.902 11.707 10.707C11.902 10.512 12 10.276 12 10L12 6C12 5.724 11.902 5.488 11.707 5.293C11.512 5.098 11.276 5 11 5L3 5C2.724 5 2.488 5.098 2.293 5.293C2.098 5.488 2 5.724 2 6L2 10C2 10.276 2.098 10.512 2.293 10.707Z"/></svg>
// Gentleface "battery" (line-round), MIT. https://gentleface.com/icons/battery
import type { SVGProps } from 'react';
export function BatteryIcon(props: SVGProps<SVGSVGElement>) {
return (
<svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
<path d="M13.5 6L14.5 6C14.641 6 14.759 6.048 14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 9.5C15 9.641 14.952 9.759 14.856 9.856C14.759 9.952 14.641 10 14.5 10L13.5 10C13.359 10 13.241 9.952 13.144 9.856C13.048 9.759 13 9.641 13 9.5L13 10C13 10.254 12.953 10.5 12.86 10.736C12.758 10.993 12.609 11.219 12.414 11.414C12.219 11.609 11.993 11.758 11.736 11.86C11.5 11.953 11.254 12 11 12L3 12C2.746 12 2.5 11.953 2.264 11.86C2.007 11.758 1.781 11.609 1.586 11.414C1.391 11.219 1.242 10.993 1.14 10.736C1.047 10.5 1 10.254 1 10L1 6C1 5.746 1.047 5.5 1.14 5.264C1.242 5.007 1.391 4.781 1.586 4.586C1.781 4.391 2.007 4.242 2.264 4.14C2.5 4.047 2.746 4 3 4L11 4C11.254 4 11.5 4.047 11.736 4.14C11.993 4.242 12.219 4.391 12.414 4.586C12.609 4.781 12.758 5.007 12.86 5.264C12.953 5.5 13 5.746 13 6L13 6.5C13 6.359 13.048 6.241 13.144 6.144C13.241 6.048 13.359 6 13.5 6ZM2.293 10.707C2.488 10.902 2.724 11 3 11L11 11C11.276 11 11.512 10.902 11.707 10.707C11.902 10.512 12 10.276 12 10L12 6C12 5.724 11.902 5.488 11.707 5.293C11.512 5.098 11.276 5 11 5L3 5C2.724 5 2.488 5.098 2.293 5.293C2.098 5.488 2 5.724 2 6L2 10C2 10.276 2.098 10.512 2.293 10.707Z" />
</svg>
);
}Vue: see /icons/battery.md
Svelte: see /icons/battery.md
HTML img: see /icons/battery.md
CSS: see /icons/battery.md
Data URL: see /icons/battery.md
Sprite: see /icons/battery.md
SwiftUI: see /icons/battery.md
Compose: see /icons/battery.md
Android XML: see /icons/battery.md
Flutter: see /icons/battery.md
Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.
With npm: import { BatteryIcon } from '@gentleface/react'; (setup).
Meaning
- Use it for
- battery, battery empty, battery level, battery status, energy level, state of charge, charge level, empty battery, dead battery
- Alternatives
battery-low: low but not empty (low-battery)battery-alert: a critical battery warning (battery-critical)
- Also fits
- car battery: a device battery level
- Not for
- progress bar (use
progress-bar): battery has a terminal nub
- progress bar (use
- Tags
- charge, energy, power, level, empty
- Category
- Devices & hardware
- Component name
BatteryIcon- History
- added
- released in 0.1.0
- 20 px drawn, 24 px drawn
- Since
- version 0.1.0
Family 15
More devices & hardware icons
av-receiver backlight backspace cable caps-lock caps-lock-off charger circuit-board circuit-board-off cpu cpu-alert cpu-bolt cpu-gear cpu-sparkle desktop-tower devices · all devices & hardware icons
For agents
Metadata: /icons/battery.json · Markdown: /icons/battery.md · SVG: https://gentleface.com/svg/{style}/16/battery.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/battery.png