Magic Hat
The magic hat icon represents a type of magical accessory commonly found in games and other digital media.
Exports at 24 × 24 px
Code
Magic Hat in your framework
In any framework. Customize it above, and the code follows.
export const MagicHatIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 512 512" {...props}>
<path fill="currentColor" d="M167.549 17.846c-3.562-.026-7.259.705-10.854 2.134c-4.878 1.94-9.373 5.046-12.656 9.532c6.996 2.376 13.264 6.947 18.467 12.582c8.439 9.138 15.107 21.278 20.994 34.76c11.774 26.963 20.186 59.569 26.89 82.855l-17.294 10.98c-6.823-23.696-15.204-61.701-26.09-86.632c-5.443-12.466-11.573-23.093-17.723-29.752c-3.773-4.086-7.169-6.584-10.59-7.766c-.062 2.855.173 5.946.768 9.297l34.45 132.986l11.11-7.549c-15.51 20.854-22.763 48.394-17.09 76.33c4.77 1.78 12.532 3.724 22.05 5.254a24.6 24.6 0 0 1-.979-6.857c0-13.7 11.298-24.998 24.998-24.998S238.998 242.3 238.998 256c0 3.823-.881 7.457-2.447 10.713c5.974.184 12.04.289 18.129.289c6.945 0 13.898-.13 20.732-.37a24.65 24.65 0 0 1-2.41-10.632c0-13.7 11.298-24.998 24.998-24.998S322.998 242.3 322.998 256c0 2.276-.318 4.483-.9 6.586c9.232-1.493 16.887-3.333 21.996-5.149c5.657-28.281-2.24-56.193-18.543-77.134l12.539 8.52l34.45-132.987c.594-3.35.829-6.442.767-9.297c-3.421 1.182-6.817 3.68-10.59 7.766c-6.15 6.66-12.28 17.286-17.723 29.752c-10.886 24.931-19.267 62.936-26.09 86.632l-17.295-10.98c6.705-23.286 15.117-55.892 26.891-82.855c5.887-13.482 12.555-25.622 20.994-34.76c5.203-5.635 11.471-10.206 18.467-12.582c-3.283-4.486-7.778-7.591-12.656-9.532c-11.504-4.575-24.05-1.999-29.881 9.663l-.291.582l-.371.533c-6.573 9.448-13.422 29.492-19.54 51.847c-6.116 22.356-11.916 47.202-18.656 68.15L278 148l.121.082a85.3 85.3 0 0 0-22.758-3.084c-6.244 0-12.31.69-18.156 1.97l-11.773 3.788c-6.74-20.949-12.54-45.795-18.657-68.15s-12.966-42.4-19.539-51.848l-.37-.533l-.292-.582c-4.008-8.018-11.191-11.74-19.027-11.797m-11.494 173.812c-25.225 3.524-47.994 8.295-67.174 14.049c-21.113 6.334-37.932 13.888-48.815 21.607c-10.882 7.72-15.068 14.798-15.068 20.686s4.186 12.967 15.068 20.686s27.702 15.273 48.815 21.607C131.106 302.96 190.455 311.002 256 311.002s124.894-8.042 167.12-20.709c21.112-6.334 37.93-13.888 48.814-21.607c10.882-7.72 15.068-14.798 15.068-20.686s-4.186-12.967-15.068-20.686s-27.702-15.273-48.815-21.607c-19.18-5.754-41.95-10.525-67.174-14.049l-.898 3.469a114 114 0 0 1 4.762 13.492c40.753 7.985 64.6 20.218 64.677 33.178c-.066 16.233-37.3 31.018-95.76 38.025c-4.76.796-9.805 1.495-15.185 2.117c-17.736 2.054-38.345 3.06-58.861 3.06c-20.517 0-40.905-1.006-58.225-3.063c-6.741-.801-12.947-1.686-18.596-2.784c-55.497-7.277-90.295-21.665-90.345-37.355c.017-12.953 23.78-25.186 64.457-33.184a115 115 0 0 1 4.857-13.967zm-23.526 127.23l-2.172 30.42c80.14 19.168 162.952 22.654 251.286.005l-2.172-30.424c-36.348 6.451-78.462 10.11-123.471 10.11s-87.123-3.659-123.47-10.11zm-3.47 48.6l-7.95 111.293c.94.75 3.18 2.056 6.47 3.309c6.764 2.577 17.598 5.06 30.74 7.008c26.282 3.893 62.014 5.904 97.681 5.904s71.399-2.01 97.682-5.904c13.141-1.947 23.975-4.431 30.74-7.008c3.29-1.253 5.528-2.559 6.469-3.309l-7.946-111.248c-89.153 22.279-173.317 18.837-253.886-.045"/>
</svg>
);Other libraries
Magic Hat in 1 more libraries
Each library draws it its own way. Open one to compare.
Game Icons
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 Game Icons icon from a prompt.
Get ProTags
Browse by tag
Magic Hat is tagged interface, design, game and 3 more. Related tags follow; each opens its icons from every library.
Pricing
Game Icons MCP, with Pro
Ask for Magic Hat or any of 4,123 Game Icons 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 Magic Hat icon means and where it's used, then how to install, style, label and license it.
The magic hat icon represents a type of magical accessory commonly found in games and other digital media. It symbolizes magic, mystery, and power. The icon is often used in games to represent a character's accessory or a game mechanic related to magic.
In game development, the magic hat icon can be used to represent a character's accessory or a game mechanic related to magic. For example, in a role-playing game, the magic hat icon might be used to represent a character's magical abilities or a power-up that increases their magic capabilities.
From a UX perspective, the magic hat icon communicates a sense of mysticism and power. It can help users quickly understand the gameplay mechanics and make informed decisions about their character's abilities.
Magic Hat is one of 4,123 icons in Game Icons, made by GameIcons and released under CC BY 3.0. It is drawn on a 512 × 512 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 MagicHatIcon to components/icons/game-icons-magic-hat.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 MagicHatIcon 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 Magic Hat icon, or any of 4,123 Game Icons icons, and install it from a prompt.
It's drawn in currentColor, so it takes the text color wherever you use it: a class like text-primary recolors it. To bake a color in, set one in Customize before you copy.
Set width and height on the component, or a class like size-6. It's drawn on a 512 × 512 grid, so it stays sharp at any size. Customize also sets the size it exports at, its padding and rotation.
Yes. It follows the text color, so with text-foreground (or any theme token) it changes with your light and dark themes. 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="Magic Hat", so screen readers say what it does.
Yes. MagicHatIcon passes every SVG prop to the svg element, so <MagicHatIcon 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 3.0 asks you to credit the author (GameIcons) where you use the icons. The full terms are in the license, linked on this page.
Yes. CC BY 3.0 asks you to credit the author where you use the icons, for example "Icons by GameIcons, CC BY 3.0" on an about or credits page.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
1 other library draws an icon called Magic Hat. 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 interface, design, game, thematic, magic and accessory. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for Magic Hat in another set.
4.9 out of 5 from 150+ developers
Install Magic Hat from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro