2
The '2' icon represents the digit 2, a fundamental number in mathematics and arithmetic.
Exports at 24 × 24 px
Code
2 in your framework
In any framework. Customize it above, and the code follows.
export const 2Icon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 48 48" fill="none" stroke="currentColor" {...props}>
<path fill="#ff8a14" d="M17.46 6.5A6 6 0 0 0 14 4.76a5.5 5.5 0 0 0-2.91 0a.51.51 0 0 0-.24.79l3.34 4.29l-3.81 1.33a.5.5 0 0 0-.11.89a11.4 11.4 0 0 0 3.27 1.54a13 13 0 0 0 2.67.39Z"/><path fill="#ffaa54" d="M11.52 6.47a6.1 6.1 0 0 1 2.44.1A6.94 6.94 0 0 1 17.19 8l.27-1.54A6 6 0 0 0 14 4.76a5.53 5.53 0 0 0-2.91 0a.51.51 0 0 0-.24.79Z"/><path fill="none" stroke="#45413c" strokeLinecap="round" strokeLinejoin="round" d="M17.46 6.5A6 6 0 0 0 14 4.76a5.5 5.5 0 0 0-2.91 0a.51.51 0 0 0-.24.79l3.34 4.29l-3.81 1.33a.5.5 0 0 0-.11.89a11.4 11.4 0 0 0 3.27 1.54a13 13 0 0 0 2.67.39Z"/><path fill="#45413c" d="M11 45.5a13 1.5 0 1 0 26 0a13 1.5 0 1 0-26 0" opacity=".15"/><path fill="#ffe500" d="M29.08 21.59s7.08-4.25 8.5-3.5s-.59 8.17-5 10s-3.5-6.5-3.5-6.5"/><path fill="#fff48c" d="M29.08 24.09s7.08-4.25 8.5-3.5a.7.7 0 0 1 .25.28c.32-1.4.25-2.51-.25-2.78c-1.42-.75-8.5 3.5-8.5 3.5a18 18 0 0 0 0 2.9c-.02-.25 0-.4 0-.4"/><path fill="none" stroke="#45413c" strokeLinecap="round" strokeLinejoin="round" d="M29.08 21.59s7.08-4.25 8.5-3.5s-.59 8.17-5 10s-3.5-6.5-3.5-6.5"/><path fill="#ffe500" d="M18.92 21.59s-7.08-4.25-8.5-3.5s.58 8.17 5 10s3.5-6.5 3.5-6.5"/><path fill="#fff48c" d="M10.42 20.59c1.42-.75 8.5 3.5 8.5 3.5v.4a17.5 17.5 0 0 0 0-2.9s-7.08-4.25-8.5-3.5c-.5.27-.57 1.38-.25 2.78a.63.63 0 0 1 .25-.28"/><path fill="none" stroke="#45413c" strokeLinecap="round" strokeLinejoin="round" d="M18.92 21.59s-7.08-4.25-8.5-3.5s.58 8.17 5 10s3.5-6.5 3.5-6.5"/><path fill="#ffe500" d="M13.5 30.5a10.5 12.5 0 1 0 21 0a10.5 12.5 0 1 0-21 0"/><path fill="#ebcb00" d="M31.88 22.23a10.5 10.5 0 0 1-15.76 0A9.87 9.87 0 0 1 24 18a9.87 9.87 0 0 1 7.88 4.23"/><path fill="none" stroke="#45413c" strokeLinecap="round" strokeLinejoin="round" d="M13.5 30.5a10.5 12.5 0 1 0 21 0a10.5 12.5 0 1 0-21 0"/><path fill="#ffe500" d="M13.5 12.5a10.5 10.5 0 1 0 21 0a10.5 10.5 0 1 0-21 0"/><path fill="#fff48c" d="M24 4.78a10.51 10.51 0 0 1 10.4 9.11a10.5 10.5 0 1 0-20.8 0A10.49 10.49 0 0 1 24 4.78"/><path fill="none" stroke="#45413c" strokeLinecap="round" strokeLinejoin="round" d="M13.5 12.5a10.5 10.5 0 1 0 21 0a10.5 10.5 0 1 0-21 0"/><path fill="#f0f0f0" d="m39.07 28.07l-3.3 3.3a.86.86 0 0 1-1.21 0L30.19 27A.86.86 0 0 0 29 27l-4.36 4.37a.88.88 0 0 1-1.22 0L19 27a.85.85 0 0 0-1.21 0l-4.37 4.37a.86.86 0 0 1-1.21 0l-3.3-3.3a.43.43 0 0 0-.74.32C8.9 39.46 15.7 45 24 45s15.1-5.54 15.81-16.61a.43.43 0 0 0-.74-.32"/><path fill="#fff" d="m8.93 31.21l3.3 2.87a1 1 0 0 0 1.21 0l4.37-3.8a1 1 0 0 1 1.21 0l4.37 3.8a1 1 0 0 0 1.22 0l4.39-3.8a1 1 0 0 1 1.22 0l4.37 3.8a1 1 0 0 0 1.21 0l3.3-2.87a.46.46 0 0 1 .4-.09a25 25 0 0 0 .34-2.73a.43.43 0 0 0-.74-.32l-3.3 3.3a.86.86 0 0 1-1.21 0L30.19 27A.86.86 0 0 0 29 27l-4.36 4.37a.88.88 0 0 1-1.22 0L19 27a.85.85 0 0 0-1.21 0l-4.37 4.37a.86.86 0 0 1-1.21 0l-3.3-3.3a.43.43 0 0 0-.74.32a25 25 0 0 0 .33 2.73a.47.47 0 0 1 .43.09"/><path fill="none" stroke="#45413c" strokeLinecap="round" strokeLinejoin="round" d="m39.07 28.07l-3.3 3.3a.86.86 0 0 1-1.21 0L30.19 27A.86.86 0 0 0 29 27l-4.36 4.37a.88.88 0 0 1-1.22 0L19 27a.85.85 0 0 0-1.21 0l-4.37 4.37a.86.86 0 0 1-1.21 0l-3.3-3.3a.43.43 0 0 0-.74.32C8.9 39.46 15.7 45 24 45s15.1-5.54 15.81-16.61a.43.43 0 0 0-.74-.32"/><path fill="#45413c" stroke="#45413c" strokeLinecap="round" strokeLinejoin="round" d="M21.99 8.65a1.36 1.36 0 1 0 2.72 0a1.36 1.36 0 1 0-2.72 0"/><path fill="#fff48c" d="M27 13.64c0 .55-.74 1-1.64 1s-1.65-.45-1.65-1s.74-1 1.65-1s1.64.45 1.64 1"/>
</svg>
);Other libraries
2 in 5 more libraries
Each library draws it its own way. Open one to compare.
Streamline Emojis
More like it
Icons that share its tags, in the same style.
Skip the copy and paste. With Pro, your AI agent finds and installs any Streamline Emojis icon from a prompt.
Get ProTags
Browse by tag
2 is tagged emoji, math, number and 3 more. Related tags follow; each opens its icons from every library.
Pricing
Streamline Emojis MCP, with Pro
Ask for 2 or any of 787 Streamline Emojis icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
What the 2 icon means and where it's used, then how to install, style, label and license it.
The '2' icon represents the digit 2, a fundamental number in mathematics and arithmetic. It is commonly used in various contexts, including mathematics, finance, and computing. The icon is part of the Streamline Emojis library, which provides a visually appealing way to represent numbers and other mathematical concepts.
In real-world applications, the '2' icon can be used in software, such as calculators, spreadsheets, and mathematical modeling tools. For example, it may appear in mathematical notation, equations, or formulas.
From a UX perspective, the '2' icon communicates a clear and concise representation of the number 2, allowing users to quickly understand and identify the digit. Its simple and recognizable design makes it easy to use in various interfaces.
2 is one of 787 icons in Streamline Emojis, made by Streamline and released under CC BY 4.0. It is drawn on a 48 × 48 grid.
Sign in (it's free), then open Get icon, Install with shadcn CLI, and pick your package manager to copy the command. It adds 2Icon to components/icons/streamline-emojis-2.tsx: one file, a size prop (24 by default) and every SVG prop, with no icon package.
Copy it as React (from Get icon, or the Code section): a typed 2Icon component you paste into your project, with no package to install. Only the icons you import reach your bundle. It works in Next.js and any React app.
Open Get icon, then Copy as code, and pick Vue, Svelte, Angular, Solid or Preact; the Code section shows each one too. Every version is one self-contained component with the SVG inside, and SVG and data URL copies are there for plain HTML and CSS.
With Pro, the shadcn.io MCP server lets Claude Code, Cursor or any MCP client find the 2 icon, or any of 787 Streamline Emojis icons, and install it from a prompt.
It's multicolor, so it keeps its own colors.
Set width and height on the component, or a class like size-6. It's drawn on a 48 × 48 grid, so it stays sharp at any size. Customize also sets the size it exports at, its padding and rotation.
Yes. It keeps its own colors in light and dark mode, so check it against both backgrounds. The icon is a vector, so it needs no separate dark asset.
Next to a visible label it's decoration: add aria-hidden="true" so screen readers skip it. Standing alone, as in an icon button, give the button a name instead, like aria-label="2", so screen readers say what it does.
Yes. 2Icon passes every SVG prop to the svg element, so <2Icon aria-hidden="true" /> works, and so do role="img" with aria-label, or a title child, when it carries meaning on its own.
Yes. Open Get icon, then Download file: SVG for code or design tools like Figma; PNG, WebP or JPEG at 512px; or an ICO favicon with 16, 32 and 48px inside. Each one uses what you set in Customize.
Yes, with credit: CC BY 4.0 asks you to credit the author (Streamline) where you use the icons. The full terms are in the license, linked on this page.
Yes. CC BY 4.0 asks you to credit the author where you use the icons, for example "Icons by Streamline, CC BY 4.0" on an about or credits page.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
5 other libraries draw an icon called 2. The Other libraries section on this page shows each one, so you can compare them and open the one that fits your style.
Its tags are emoji, math, number, digit, arithmetic and counting. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for 2 in another set.
4.9 out of 5 from 150+ developers
Install 2 from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro