ICONYZ
English
Mastercard icon from FormKit Icons

Mastercard icon

formkit:mastercard

The Mastercard icon (formkit:mastercard) is a free SVG icon from the FormKit Icons set by FormKit, Inc. It is drawn on a 24 × 14 grid. FormKit 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
FormKit Icons
Author
FormKit, Inc
License
MIT
Size
24 × 14
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="14" viewBox="0 0 24 14"><path fill="currentColor" d="M14.5 13h-13C.67 13 0 12.33 0 11.5v-9C0 1.67.67 1 1.5 1h13c.83 0 1.5.67 1.5 1.5v9c0 .83-.67 1.5-1.5 1.5M1.5 2c-.28 0-.5.22-.5.5v9c0 .28.22.5.5.5h13c.28 0 .5-.22.5-.5v-9c0-.28-.22-.5-.5-.5z"/><path fill="currentColor" d="M9.35 4.57h-2.7v4.86h2.7z"/><path fill="currentColor" d="M6.82 7c0-.47.11-.93.31-1.35s.5-.79.87-1.08c-.46-.36-1-.58-1.58-.64s-1.16.04-1.68.29s-.96.65-1.27 1.14S3 6.42 3 7s.16 1.15.47 1.64s.75.89 1.27 1.14s1.1.35 1.68.29S7.54 9.79 8 9.43c-.37-.29-.67-.66-.87-1.08S6.82 7.47 6.82 7"/><path fill="currentColor" d="M13 7c0 .58-.16 1.15-.47 1.64s-.75.89-1.27 1.14s-1.1.35-1.68.29S8.46 9.79 8 9.43c.37-.29.67-.66.87-1.08s.31-.88.31-1.35s-.11-.93-.31-1.35s-.5-.79-.87-1.08c.46-.36 1-.58 1.58-.64s1.16.04 1.68.29s.96.65 1.27 1.14S13 6.42 13 7"/></svg>

How to use the Mastercard icon

React

import { Icon } from "@iconify/react";

<Icon icon="formkit:mastercard" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="formkit:mastercard" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="formkit:mastercard" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[formkit--mastercard]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/formkit -->
<div class="i-formkit:mastercard"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="formkit:mastercard"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/formkit/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. FormKit 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="formkit: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/formkit/mastercard.svg" alt="Mastercard icon">, or paste the SVG code inline to style it with CSS.

Browse all FormKit Icons →