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

Shopping cart icon (free SVG)

In shortThe cart is the core e-commerce icon for "add to cart", the basket page and checkout. Show the item count as a badge on the icon. Download this shopping cart 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

Shopping cart icon, outline style, on a light backgroundShopping cart icon, outline style, on a dark background
Outline · 301 bytes
Shopping cart icon, filled style, on a light backgroundShopping cart icon, filled style, on a dark background
Filled · 309 bytes
Shopping cart icon, duotone style, on a light backgroundShopping cart icon, duotone style, on a dark background
Duotone · 394 bytes
Shopping cart icon, glyph style, on a light backgroundShopping cart icon, glyph style, on a dark background
Glyph · 237 bytes

Variations

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

Shopping cart icon at 16 pixels
16px
Shopping cart icon at 20 pixels
20px
Shopping cart icon at 24 pixels
24px
Shopping cart icon at 32 pixels
32px
Shopping cart 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="M2.5 3.5h2.8l2.3 11.5h11L21 7H6.5"/><circle cx="9" cy="19.5" r="1.6"/><circle cx="17" cy="19.5" r="1.6"/></svg>

React component

export default function ShoppingCartIcon({ 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="M2.5 3.5h2.8l2.3 11.5h11L21 7H6.5" />
      <circle cx="9" cy="19.5" r="1.6" />
      <circle cx="17" cy="19.5" r="1.6" />
    </svg>
  );
}

CSS mask (recolour with color)

.icon-shopping-cart {
  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='M2.5 3.5h2.8l2.3 11.5h11L21 7H6.5'/%3E%3Ccircle cx='9' cy='19.5' r='1.6'/%3E%3Ccircle cx='17' cy='19.5' r='1.6'/%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='M2.5 3.5h2.8l2.3 11.5h11L21 7H6.5'/%3E%3Ccircle cx='9' cy='19.5' r='1.6'/%3E%3Ccircle cx='17' cy='19.5' r='1.6'/%3E%3C/svg%3E") no-repeat center / contain;
}

Image tag

<img src="https://mumshadjawad.com/svg-creator/icons/shopping-cart-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
add to cart, basket, checkout, shop
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 301 B · filled 309 B · duotone 394 B · glyph 237 B
Licence
Free for personal and commercial use, no attribution required
Collections
e-commerce and shopping icons

Related icons

Need a different shopping cart?

Describe it ("shopping cart, minimal, rounded") and get four new variations.
Generate variations