Mastercard Card icon
iconoir:mastercard-card
The Mastercard Card icon (iconoir:mastercard-card) is a free SVG icon from the Iconoir set by Luca Burgio. It is drawn on a 24 × 24 grid. Iconoir icons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- Iconoir
- Author
- Luca Burgio
- License
- MIT
- Size
- 24 × 24
- Category
- Finance
- Tags
- mastercardcard
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M22 9v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2zm0 0H6"/><path d="M16.5 13.382a1.5 1.5 0 1 1 0 2.236m0-2.236a1.5 1.5 0 1 0 0 2.236"/></g></svg>How to use the Mastercard Card icon
React
import { Icon } from "@iconify/react";
<Icon icon="iconoir:mastercard-card" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="iconoir:mastercard-card" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="iconoir:mastercard-card" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[iconoir--mastercard-card]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/iconoir -->
<div class="i-iconoir:mastercard-card"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="iconoir:mastercard-card"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/iconoir/mastercard-card.svg" alt="Mastercard Card icon" width="24" height="24">Mastercard Card icon FAQ
Is the Mastercard Card icon free for commercial use?
Yes. Iconoir icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Mastercard Card icon in React?
Install @iconify/react and render <Icon icon="iconoir:mastercard-card" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Mastercard Card icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/iconoir/mastercard-card.svg" alt="Mastercard Card icon">, or paste the SVG code inline to style it with CSS.