piano from Material Design Icons by Pictogrammers · Filled · Music · Apache-2.0 Free for personal and commercial use.

Name
piano
Set
Material Design Icons
Style
Filled
Category
Music
Viewbox
24×24
License
Apache 2.0

The same icon in other sets

More music icons from Material Design Icons

Use the piano icon

SVG

<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M20 2H4c-1.1 0-2 .9-2 2v16a2 2 0 0 0 2 2h16c1.11 0 2-.89 2-2V4a2 2 0 0 0-2-2m-5.26 12H15v6H9v-6h.31c.55 0 .99-.44.99-1V4h3.45v9c0 .56.44 1 .99 1M4 4h2.8v9c0 .56.44 1 .99 1H8v6H4zm16 16h-4v-6h.26c.55 0 .99-.44.99-1V4H20z"/></svg>

React

import type { SVGProps } from "react";

export function MdiPiano(props: SVGProps<SVGSVGElement>) {
  return (
    <svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M20 2H4c-1.1 0-2 .9-2 2v16a2 2 0 0 0 2 2h16c1.11 0 2-.89 2-2V4a2 2 0 0 0-2-2m-5.26 12H15v6H9v-6h.31c.55 0 .99-.44.99-1V4h3.45v9c0 .56.44 1 .99 1M4 4h2.8v9c0 .56.44 1 .99 1H8v6H4zm16 16h-4v-6h.26c.55 0 .99-.44.99-1V4H20z"/></svg>
  );
}

Vue

<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M20 2H4c-1.1 0-2 .9-2 2v16a2 2 0 0 0 2 2h16c1.11 0 2-.89 2-2V4a2 2 0 0 0-2-2m-5.26 12H15v6H9v-6h.31c.55 0 .99-.44.99-1V4h3.45v9c0 .56.44 1 .99 1M4 4h2.8v9c0 .56.44 1 .99 1H8v6H4zm16 16h-4v-6h.26c.55 0 .99-.44.99-1V4H20z"/></svg>
</template>

CSS

.icon-piano {
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M20%202H4c-1.1%200-2%20.9-2%202v16a2%202%200%200%200%202%202h16c1.11%200%202-.89%202-2V4a2%202%200%200%200-2-2m-5.26%2012H15v6H9v-6h.31c.55%200%20.99-.44.99-1V4h3.45v9c0%20.56.44%201%20.99%201M4%204h2.8v9c0%20.56.44%201%20.99%201H8v6H4zm16%2016h-4v-6h.26c.55%200%20.99-.44.99-1V4H20z%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M20%202H4c-1.1%200-2%20.9-2%202v16a2%202%200%200%200%202%202h16c1.11%200%202-.89%202-2V4a2%202%200%200%200-2-2m-5.26%2012H15v6H9v-6h.31c.55%200%20.99-.44.99-1V4h3.45v9c0%20.56.44%201%20.99%201M4%204h2.8v9c0%20.56.44%201%20.99%201H8v6H4zm16%2016h-4v-6h.26c.55%200%20.99-.44.99-1V4H20z%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/mdi/piano.svg?color=%231a73e8&size=48