Codepen
The CodePen icon represents the popular front-end development playground where developers build and showcase web projects.
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 988 1000" {...props}>
<path fill="currentColor" d="M987.672 343.936c-.09-.624-.246-1.221-.35-1.845c-.21-1.196-.43-2.392-.742-3.561c-.183-.702-.442-1.377-.662-2.052c-.339-1.04-.675-2.079-1.091-3.092c-.289-.702-.625-1.404-.948-2.079a33 33 0 0 0-1.443-2.806c-.39-.677-.805-1.327-1.208-1.976a38 38 0 0 0-1.796-2.575a49 49 0 0 0-1.454-1.845a39 39 0 0 0-2.119-2.287c-.556-.57-1.104-1.143-1.689-1.663a51 51 0 0 0-2.402-2.026c-.635-.494-1.261-.988-1.923-1.456c-.249-.156-.465-.364-.701-.521L517.575 13.108a42.44 42.44 0 0 0-47.102 0L18.906 314.152c-.233.156-.454.364-.7.521c-.664.467-1.288.961-1.911 1.456a39 39 0 0 0-2.403 2.026c-.598.521-1.143 1.093-1.704 1.663a37 37 0 0 0-2.104 2.287c-.506.599-1 1.223-1.469 1.845a38 38 0 0 0-1.78 2.575a37 37 0 0 0-1.221 1.976a41 41 0 0 0-1.444 2.806c-.324.675-.662 1.377-.948 2.079c-.416 1.013-.753 2.052-1.091 3.092c-.221.675-.468 1.351-.664 2.052c-.311 1.169-.519 2.365-.74 3.561c-.103.624-.26 1.221-.338 1.845A41 41 0 0 0 0 349.472v301.045c0 1.87.142 3.716.389 5.562c.078.599.235 1.221.338 1.816c.221 1.197.429 2.392.74 3.562c.196.702.443 1.377.664 2.053c.337 1.038.675 2.079 1.091 3.117c.286.705.624 1.38.948 2.056c.456.958.923 1.893 1.444 2.831c.389.651.792 1.297 1.221 1.949a38 38 0 0 0 1.78 2.575c.469.648.963 1.247 1.469 1.843c.664.778 1.366 1.56 2.104 2.288c.561.569 1.106 1.142 1.704 1.66a38 38 0 0 0 2.403 2.029a41 41 0 0 0 1.911 1.454c.246.156.467.366.7.519l451.567 301.047a42.45 42.45 0 0 0 23.558 7.146a42.45 42.45 0 0 0 23.544-7.146l451.568-301.047c.236-.152.452-.362.701-.519c.662-.466 1.288-.958 1.923-1.454a48 48 0 0 0 2.402-2.029c.585-.519 1.134-1.091 1.689-1.66a39 39 0 0 0 2.119-2.288a33 33 0 0 0 1.454-1.843a38 38 0 0 0 1.796-2.575c.403-.652.818-1.298 1.208-1.949c.532-.938.998-1.873 1.443-2.831c.323-.676.659-1.351.948-2.056c.416-1.038.752-2.079 1.091-3.117c.22-.676.479-1.351.662-2.053c.312-1.171.532-2.365.742-3.562c.104-.596.26-1.218.35-1.816c.232-1.847.379-3.692.379-5.562V349.471a43 43 0 0 0-.378-5.535M536.484 127.768l332.657 221.755l-148.588 99.403l-184.069-123.13zm-84.917 0v198.028l-184.06 123.13l-148.599-99.403zM84.916 428.943l106.226 71.05l-106.226 71.054zm366.651 443.278L118.908 650.464l148.599-99.377l184.06 123.105zm42.464-271.783L343.86 499.993L494.031 399.55L644.19 499.993zm42.453 271.783V674.192l184.069-123.105l148.588 99.377zm366.648-301.174l-106.213-71.054l106.213-71.05z"/>
</svg>
);Other libraries
Codepen in 8 more libraries
Each library draws it its own way. Open one to compare.
Brandico
More like it
Icons that share its tags, then the ones next to it in Brandico, in the same style.
Skip the copy and paste. With Pro, your AI agent finds and installs any Brandico icon from a prompt.
Get ProTags
Browse by tag
Codepen is tagged development, code, frontend and 3 more. Related tags follow; each opens its icons from every library.
Pricing
Brandico MCP, with Pro
Ask for Codepen or any of 45 Brandico 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 the popular front-end development playground where developers build and showcase web projects. Featuring its distinctive geometric logo, this symbol has become the hallmark of creative web development and live code experimentation.
In developer portfolios and technical documentation, you'll see this icon linking to CodePen demos where developers share interactive HTML, CSS, and JavaScript projects. It appears on sites like CSS-Tricks and developer communities, enabling instant code preview and collaborative development learning.
From a developer perspective, the CodePen symbol communicates more than just code hosting - it specifically indicates live interactive demos, front-end experimentation, and community-driven learning. This recognition helps developers discover and share working code examples more effectively than static repositories.
Codepen is one of 45 icons in Brandico, made by Fontello and released under CC BY SA. It is drawn on a 988 × 1000 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/brandico-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 45 Brandico 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 988 × 1000 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.
Yes, with conditions: CC BY SA asks you to credit the author (Fontello), and icons you change must use the same license. The full terms are in the license, linked on this page.
Yes. CC BY SA asks you to credit Fontello, and icons you change must be shared under the same 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 development, code, frontend, developer, playground and demo. 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