Mastercard icon
bxl:mastercard
The Mastercard icon (bxl:mastercard) is a free SVG icon from the Boxicons Brands set by Boxicons. It is drawn on a 24 × 24 grid. Boxicons Brands 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
- Boxicons Brands
- Author
- Boxicons
- License
- MIT
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M11.454 17.021q.073.062.151.122a6.17 6.17 0 0 1-3.42 1.03A6.17 6.17 0 0 1 2.01 12a6.175 6.175 0 0 1 9.592-5.144c-.05.043-.1.082-.138.126A6.63 6.63 0 0 0 9.166 12c0 1.925.833 3.755 2.288 5.021m4.361-11.195a6.14 6.14 0 0 0-3.416 1.03c.049.043.099.082.137.126c1.462 1.263 2.299 3.094 2.299 5.018s-.835 3.753-2.288 5.021q-.075.062-.151.122a6.16 6.16 0 0 0 3.418 1.03a6.174 6.174 0 1 0 .001-12.347M12 7.15A6.15 6.15 0 0 0 9.644 12A6.15 6.15 0 0 0 12 16.853A6.16 6.16 0 0 0 14.357 12A6.15 6.15 0 0 0 12 7.15"/></svg>How to use the Mastercard icon
React
import { Icon } from "@iconify/react";
<Icon icon="bxl:mastercard" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="bxl:mastercard" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="bxl:mastercard" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[bxl--mastercard]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/bxl -->
<div class="i-bxl:mastercard"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="bxl:mastercard"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/bxl/mastercard.svg" alt="Mastercard icon" width="24" height="24">Mastercard icon in other icon sets
Mastercard icon FAQ
Is the Mastercard icon free for commercial use?
Yes. Boxicons Brands icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Mastercard icon in React?
Install @iconify/react and render <Icon icon="bxl:mastercard" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Mastercard icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/bxl/mastercard.svg" alt="Mastercard icon">, or paste the SVG code inline to style it with CSS.