Bought Pro? It is on your account. Sign in
SVG Creator Go Pro

Coffee cup icon (free SVG)

In shortA cup with steam stands for cafes, breaks, "buy me a coffee" tips and morning routines in habit or productivity apps. Download this coffee cup icon free in four styles as a 24×24 SVG that uses currentColor; every file is under 1 KB and free for commercial use.

Style collections: outline · filled · duotone · glyph · Updated 2026-10-21

Coffee cup icon, outline style, on a light backgroundCoffee cup icon, outline style, on a dark background
Outline · 311 bytes
Coffee cup icon, filled style, on a light backgroundCoffee cup icon, filled style, on a dark background
Filled · 319 bytes
Coffee cup icon, duotone style, on a light backgroundCoffee cup icon, duotone style, on a dark background
Duotone · 413 bytes
Coffee cup icon, glyph style, on a light backgroundCoffee cup icon, glyph style, on a dark background
Glyph · 247 bytes

Variations

The same coffee cup drawn four ways. Open any of them in the editor to recolour it, change the stroke, rotate or export PNG.

Coffee cup icon at 16 pixels
16px
Coffee cup icon at 20 pixels
20px
Coffee cup icon at 24 pixels
24px
Coffee cup icon at 32 pixels
32px
Coffee cup icon at 48 pixels
48px

Code

Inline SVG (HTML)

<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 9h13v5.5a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5z"/><path d="M17 10.5h1.5a2.5 2.5 0 0 1 0 5H17"/><path d="M8 3v3M12 3v3"/></svg>

React component

export default function CoffeeCupIcon({ size = 24, color = "currentColor", ...props }) {
  return (
    <svg
      xmlns="http://www.w3.org/2000/svg"
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      stroke={color}
      strokeWidth={2}
      strokeLinecap="round"
      strokeLinejoin="round"
      {...props}
    >
      <path d="M4 9h13v5.5a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5z" />
      <path d="M17 10.5h1.5a2.5 2.5 0 0 1 0 5H17" />
      <path d="M8 3v3M12 3v3" />
    </svg>
  );
}

CSS mask (recolour with color)

.icon-coffee {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h13v5.5a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5z'/%3E%3Cpath d='M17 10.5h1.5a2.5 2.5 0 0 1 0 5H17'/%3E%3Cpath d='M8 3v3M12 3v3'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h13v5.5a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5z'/%3E%3Cpath d='M17 10.5h1.5a2.5 2.5 0 0 1 0 5H17'/%3E%3Cpath d='M8 3v3M12 3v3'/%3E%3C/svg%3E") no-repeat center / contain;
}

Image tag

<img src="https://mumshadjawad.com/svg-creator/icons/coffee-outline.svg" width="24" height="24" alt="">

Not sure which to use? See SVG icons in React, SVG icons in CSS and how to change an SVG icon's colour.

Details

Good for
cafe, break, tip jar, menu
Grid
24 × 24, viewBox="0 0 24 24", 2px safe area
Outline stroke
2px, round caps and joins
Shapes
3 elements (outline, classic)
File sizes
outline 311 B · filled 319 B · duotone 413 B · glyph 247 B
Licence
Free for personal and commercial use, no attribution required
Collections
e-commerce and shopping icons

Related icons

Need a different coffee cup?

Describe it ("coffee cup, minimal, rounded") and get four new variations.
Generate variations