Codepen
The CodePen icon represents a web-based code editor and showcase platform.
Exports at 24 × 24 px
Code
Codepen in your framework
In any framework. Customize it above, and the code follows.
export const CodepenIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32" {...props}>
<path fill="currentColor" d="m32 10.912l-.027-.12l-.02-.063q-.022-.052-.041-.104c0-.021-.016-.041-.027-.063l-.047-.093l-.036-.063l-.063-.084l-.057-.057l-.084-.063l-.063-.041l-.077-.057l-.057-.052l-.021-.025L16.771.255a1.35 1.35 0 0 0-1.52 0L.527 10.068l-.079.068l-.052.052l-.068.077l-.047.057l-.068.084c-.025.02-.041.036-.041.057l-.068.083l-.025.079c-.027.015-.027.052-.043.093l-.009.068c-.027.041-.027.077-.027.12v9.995c0 .063.005.12.016.181l.011.063a1 1 0 0 0 .025.115l.021.063c.015.037.02.073.036.104l.031.063c0 .016.016.057.037.084l.041.052c.021.015.041.052.063.077l.036.057l.052.052c.016.016.016.043.043.043l.077.052l.057.041l.011.021l14.631 9.771c.219.161.5.219.76.219c.255 0 .516-.084.755-.24l14.881-9.875l.067-.079l.047-.063l.052-.077l.043-.068l.036-.093l.021-.068l.041-.104l.021-.057l.041-.109v-10c0-.063 0-.125-.027-.188l-.015-.057l.057.005zm-15.984 8.369l-4.871-3.251l4.871-3.26l4.864 3.256zm-1.38-8.896l-5.964 3.984l-4.817-3.219l10.781-7.187zm-8.443 5.642l-3.444 2.307v-4.599l3.444 2.301zm2.479 1.666l5.964 3.989v6.427L3.855 20.921l4.823-3.228zm8.713 3.99l5.969-3.975l4.817 3.224l-10.787 7.188zm8.443-5.642l3.443-2.292v4.605l-3.443-2.308zm-2.473-1.656l-5.964-3.984V3.958l10.781 7.187l-4.817 3.219z"/>
</svg>
);Other libraries
Codepen in 8 more libraries
Each library draws it its own way. Open one to compare.
CoreUI Brands
More like it
Icons that share its tags, in the same style.
Search CoreUI Brands
Skip the copy and paste. With Pro, your AI agent finds and installs any CoreUI Brands icon from a prompt.
Get ProTags
Browse by tag
Codepen is tagged design, development, web and 2 more. Related tags follow; each opens its icons from every library.
Pricing
CoreUI Brands MCP, with Pro
Ask for Codepen or any of 830 CoreUI Brands 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 Codepen icon means and where it's used, then how to install, style, label and license it.
The CodePen icon represents a web-based code editor and showcase platform. The visual design features a stylized pen or pencil, suggesting a creative and writing instrument. This symbol originates from the CodePen platform, which provides a space for developers to write, test, and showcase their code.
In real-world applications, the CodePen icon appears on the CodePen website, as well as in web development environments and online communities. It is also used in marketing materials and promotional campaigns.
From a UX perspective, the CodePen icon communicates a sense of creativity and writing. It helps users understand that they can express themselves through code and showcase their work.
Codepen is one of 830 icons in CoreUI Brands, made by creativeLabs Łukasz Holeczek and released under CC0 1.0. It is drawn on a 32 × 32 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 CodepenIcon to components/icons/cib-codepen.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 CodepenIcon 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 Codepen icon, or any of 830 CoreUI Brands 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 32 × 32 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="Codepen", so screen readers say what it does.
Yes. CodepenIcon passes every SVG prop to the svg element, so <CodepenIcon 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.
CC0 1.0 puts the icons in the public domain: use them anywhere, with no conditions. The full terms are in the license, linked on this page.
No. CC0 1.0 gives the icons to the public domain, so no credit and no notice is required. Icons installed with the shadcn CLI still start with a comment naming CoreUI Brands, creativeLabs Łukasz Holeczek and the license.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
8 other libraries draw an icon called Codepen. 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 design, development, web, code and frontend. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for Codepen in another set.
4.9 out of 5 from 150+ developers
Install Codepen from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro