softicons.dev

credit card icon

Free credit card SVG icon, MIT licensed. Copy the SVG, install for React/Vue/Angular, or download. Part of the Softicons commerce set.

Setup guide
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
     fill="none" stroke="currentColor" stroke-width="2"
     stroke-linecap="round" stroke-linejoin="round">
  <rect x="2" y="5" width="20" height="14" rx="2.5"/>
  <line x1="2" y1="10" x2="22" y2="10"/>
</svg>
<!-- via the CDN — no build step -->
<img src="https://cdn.softicons.dev/v1/icons/commerce/credit-card.svg"
     width="24" height="24" alt="credit card icon">

<!-- …or paste the raw SVG from the SVG tab -->
import { CreditCardIcon } from "@softicons/react";

export default function Example() {
  return <CreditCardIcon size={24} strokeWidth={2} />;
}
<script setup>
import { CreditCardIcon } from "@softicons/vue";
</script>

<template>
  <CreditCardIcon :size="24" :stroke-width="2" />
</template>
import { CreditCardIconComponent } from "@softicons/angular";

@Component({
  standalone: true,
  imports: [CreditCardIconComponent],
  template: `<credit-card-icon [size]="24" [strokeWidth]="2" />`,
})
export class DemoComponent {}