id-card from BoxIcons v2 Solid by Boxicons · Solid · MIT Free for personal and commercial use.

Name
id-card
Set
BoxIcons v2 Solid
Style
Solid
Viewbox
24×24
License
MIT

The same icon in other sets

Use the id card icon

SVG

<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M20 4H4c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V6c0-1.103-.897-2-2-2M8.715 8c1.151 0 2 .849 2 2s-.849 2-2 2s-2-.849-2-2s.848-2 2-2m3.715 8H5v-.465c0-1.373 1.676-2.785 3.715-2.785s3.715 1.412 3.715 2.785zM19 15h-4v-2h4zm0-4h-5V9h5z"/></svg>

React

import type { SVGProps } from "react";

export function BxsIdCard(props: SVGProps<SVGSVGElement>) {
  return (
    <svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M20 4H4c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V6c0-1.103-.897-2-2-2M8.715 8c1.151 0 2 .849 2 2s-.849 2-2 2s-2-.849-2-2s.848-2 2-2m3.715 8H5v-.465c0-1.373 1.676-2.785 3.715-2.785s3.715 1.412 3.715 2.785zM19 15h-4v-2h4zm0-4h-5V9h5z"/></svg>
  );
}

Vue

<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M20 4H4c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V6c0-1.103-.897-2-2-2M8.715 8c1.151 0 2 .849 2 2s-.849 2-2 2s-2-.849-2-2s.848-2 2-2m3.715 8H5v-.465c0-1.373 1.676-2.785 3.715-2.785s3.715 1.412 3.715 2.785zM19 15h-4v-2h4zm0-4h-5V9h5z"/></svg>
</template>

CSS

.icon-id-card {
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M20%204H4c-1.103%200-2%20.897-2%202v12c0%201.103.897%202%202%202h16c1.103%200%202-.897%202-2V6c0-1.103-.897-2-2-2M8.715%208c1.151%200%202%20.849%202%202s-.849%202-2%202s-2-.849-2-2s.848-2%202-2m3.715%208H5v-.465c0-1.373%201.676-2.785%203.715-2.785s3.715%201.412%203.715%202.785zM19%2015h-4v-2h4zm0-4h-5V9h5z%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M20%204H4c-1.103%200-2%20.897-2%202v12c0%201.103.897%202%202%202h16c1.103%200%202-.897%202-2V6c0-1.103-.897-2-2-2M8.715%208c1.151%200%202%20.849%202%202s-.849%202-2%202s-2-.849-2-2s.848-2%202-2m3.715%208H5v-.465c0-1.373%201.676-2.785%203.715-2.785s3.715%201.412%203.715%202.785zM19%2015h-4v-2h4zm0-4h-5V9h5z%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/bxs/id-card.svg?color=%231a73e8&size=48