Gentleface › Audio & video › piano
piano icon
pianoPiano: piano, musical instrument, music keyboard, instrument. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.
Animated piano-play · line-round
A short phrase runs up the keyboard: white, black, white, black, white. Each key tips down at the front, so its front edge lifts inside the case and springs back, and it ends on a two-key chord.
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.3 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.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L3 14C2.746 14 2.5 13.953 2.264 13.86C2.007 13.758 1.781 13.609 1.586 13.414C1.391 13.219 1.242 12.993 1.14 12.736C1.047 12.5 1 12.254 1 12L1 4C1 3.746 1.047 3.5 1.14 3.264C1.242 3.007 1.391 2.781 1.586 2.586C1.781 2.391 2.007 2.242 2.264 2.14C2.5 2.047 2.746 2 3 2L12 2C12.254 2 12.5 2.047 12.736 2.14C12.993 2.242 13.219 2.391 13.414 2.586C13.609 2.781 13.758 3.007 13.86 3.264C13.953 3.5 14 3.746 14 4L14 12C14 12.254 13.953 12.5 13.86 12.736ZM2.293 12.707C2.488 12.902 2.724 13 3 13L5 13L5 9L4 9L4 8.501L4 8.5L4 3L3 3C2.724 3 2.488 3.098 2.293 3.293C2.098 3.488 2 3.724 2 4L2 12C2 12.276 2.098 12.512 2.293 12.707ZM6 13L9 13L9 9L8 9L8 3L7 3L7 9L6 9L6 13ZM11 9L10 9L10 13L12 13C12.276 13 12.512 12.902 12.707 12.707C12.902 12.512 13 12.276 13 12L13 4C13 3.724 12.902 3.488 12.707 3.293C12.512 3.098 12.276 3 12 3L11 3L11 9Z"/></svg>
// Gentleface "piano" (line-round), MIT. https://gentleface.com/icons/piano
import type { SVGProps } from 'react';
export function PianoIcon(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.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L3 14C2.746 14 2.5 13.953 2.264 13.86C2.007 13.758 1.781 13.609 1.586 13.414C1.391 13.219 1.242 12.993 1.14 12.736C1.047 12.5 1 12.254 1 12L1 4C1 3.746 1.047 3.5 1.14 3.264C1.242 3.007 1.391 2.781 1.586 2.586C1.781 2.391 2.007 2.242 2.264 2.14C2.5 2.047 2.746 2 3 2L12 2C12.254 2 12.5 2.047 12.736 2.14C12.993 2.242 13.219 2.391 13.414 2.586C13.609 2.781 13.758 3.007 13.86 3.264C13.953 3.5 14 3.746 14 4L14 12C14 12.254 13.953 12.5 13.86 12.736ZM2.293 12.707C2.488 12.902 2.724 13 3 13L5 13L5 9L4 9L4 8.501L4 8.5L4 3L3 3C2.724 3 2.488 3.098 2.293 3.293C2.098 3.488 2 3.724 2 4L2 12C2 12.276 2.098 12.512 2.293 12.707ZM6 13L9 13L9 9L8 9L8 3L7 3L7 9L6 9L6 13ZM11 9L10 9L10 13L12 13C12.276 13 12.512 12.902 12.707 12.707C12.902 12.512 13 12.276 13 12L13 4C13 3.724 12.902 3.488 12.707 3.293C12.512 3.098 12.276 3 12 3L11 3L11 9Z" />
</svg>
);
}Vue: see /icons/piano.md
Svelte: see /icons/piano.md
HTML img: see /icons/piano.md
CSS: see /icons/piano.md
Data URL: see /icons/piano.md
Sprite: see /icons/piano.md
SwiftUI: see /icons/piano.md
Compose: see /icons/piano.md
Android XML: see /icons/piano.md
Flutter: see /icons/piano.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 { PianoIcon } from '@gentleface/react'; (setup).
Meaning
- Use it for
- piano, musical instrument, music keyboard, instrument, instruments
- Alternatives
- Don’t confuse with
keyboard: the computer keyboard (typing), not the musical one
- Also fits
- drum: musical instruments in general (musical-instrument)
- guitar: musical instruments in general (musical-instrument)
- Not for
- keyboard (use
keyboard): the musical keyboard (musical-instrument)
- keyboard (use
- Tags
- piano, keys, keyboard, instrument, music, midi, synth
- Category
- Audio & video
- Component name
PianoIcon- History
- added
- released in 0.1.0
- 20 px drawn, 24 px drawn
- 20 px redrawn
- Since
- version 0.1.0
Family 1
More audio & video icons
album ambient-sound aspect-ratio audio-lines audio-lines-off cassette clapperboard disc drum earbuds eject explicit explicit-off fast-forward film film-info · all audio & video icons
For agents
Metadata: /icons/piano.json · Markdown: /icons/piano.md · SVG: https://gentleface.com/svg/{style}/16/piano.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/piano.png