Mastercard icon
selfhst:mastercard
The Mastercard icon (selfhst:mastercard) is a free SVG icon from the selfh.st/icons set by selfh.st. It is drawn on a 512 × 512 grid. selfh.st/icons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- selfh.st/icons
- Author
- selfh.st
- License
- CC-BY-4.0
- Size
- 512 × 512
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><path fill="#ff5a00" d="M186.5 131.5h138.6v248.9H186.5z"/><path fill="#eb001b" d="M195.7 256c0-50.6 23.8-95.5 60.3-124.5c-26.9-21.1-60.7-33.9-97.7-33.9C70.8 97.7 0 168.5 0 256s70.8 158.3 158.3 158.3c36.9 0 70.8-12.8 97.7-33.9c-36.5-28.5-60.3-73.8-60.3-124.4"/><path fill="#f79e1b" d="M512 256c0 87.5-70.8 158.3-158.3 158.3c-36.9 0-70.8-12.8-97.7-33.9c36.9-29.1 60.3-73.9 60.3-124.5s-23.8-95.5-60.3-124.5c26.8-21.1 60.7-33.9 97.6-33.9C441.2 97.7 512 168.9 512 256"/></svg>How to use the Mastercard icon
React
import { Icon } from "@iconify/react";
<Icon icon="selfhst:mastercard" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="selfhst:mastercard" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="selfhst:mastercard" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[selfhst--mastercard]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/selfhst -->
<div class="i-selfhst:mastercard"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="selfhst:mastercard"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/selfhst/mastercard.svg" alt="Mastercard icon" width="24" height="24">Related icons in selfh.st/icons
Mastercard icon in other icon sets
Mastercard icon FAQ
Is the Mastercard icon free for commercial use?
Yes. selfh.st/icons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.
How do I use the Mastercard icon in React?
Install @iconify/react and render <Icon icon="selfhst: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/selfhst/mastercard.svg" alt="Mastercard icon">, or paste the SVG code inline to style it with CSS.