Octicons
by GitHub
GitHub's own icon set (16/24 px) as SVG, with JS and React packages.
Icons Code libraryOpen sourceoutlineminimal

1. Price: primer.style/octicons
Fully free.
primer.style/octiconsNo quote yet: price is read from the official pages.
2. Commercial use: raw.githubusercontent.com
“Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software”
MIT allows use in paid products; the GitHub logo icons follow GitHub's logo rules.
raw.githubusercontent.com3. Credit the author: raw.githubusercontent.com
“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.”
No credit on screen. Keep the license notice inside the code you ship.
raw.githubusercontent.com4. Agent access: github.com/primer/octicons
An agent can install it by itself with npm install @primer/octicons. No key or account is needed.
github.com/primer/octiconsLicense checked Nov 5, 2026 against 1 official page. Tap a verdict to see its source. How we checked Report an error
Octicons: GitHub's own icons for developer tools
Octicons is the free icon set GitHub draws for its own site, with small, clean pictures for things like branches, commits, bells and settings. Every icon comes in a small and a larger drawing, so it stays crisp at its size. You or your AI assistant add them to a React, Rails or plain web project, also in paid products.
Where you can use it
Icons in a React app
Import each icon by name, such as an arrow or a bell, and place it in a menu or button. Only the icons you use go into your app.
Pass, fail and warning marks
Show the state of a test run, a build or a task with a green check, a red cross or a yellow warning sign. GitHub's guide says which color goes with which icon.
Icons in pages made on a server
Get an icon as a finished piece of page text on the server, with a size, a style class or a label. Useful for emails, server-made pages and small scripts.
Icons on a Jekyll or Rails site
A blog or docs site built with Jekyll, or a Ruby on Rails app, gets the icons through ready add-ons instead of copying files by hand.
A sidebar for an internal dashboard Idea
Give each section of an admin or team dashboard its own icon, like home, inbox, people and settings, in one matching style.
Notes and warnings in project docs Idea
Mark tips, warnings and steps in the documentation of a developer project with small icons that developers already know from GitHub.
Octicons popularity
Downloads from api.npmjs.org, stars from GitHub, checked Nov 26, 2026. How the Gid Score is calculated
How to start
Tell your AI assistant
“Add Octicons with @primer/octicons-react at version 19.42.0: home, inbox, people and gear icons in the sidebar, green check, red cross and yellow alert icons for statuses with an aria-label when the icon has no text next to it, and no GitHub logo icons.”
Or install it yourself. Add the React package to your project (there is also @primer/octicons for plain JavaScript and a Ruby gem).
npm install @primer/octicons-react
Show codeStep 1 or Without React
Import an icon by its name with Icon at the end and put it on the page; it is 16 px by default and takes the text color.
// Import the component
import {ArrowRightIcon} from '@primer/octicons-react'
// Render the icon component
const MyComponent = () => <ArrowRightIcon />
Without React, take the ready files from build/svg in the package, or call toSVG from the plain JavaScript package.
npm install @primer/octicons
Mistakes to avoid
import {LogoGithub, ArrowRight} from '@primer/octicons-react'import {LogoGithubIcon, ArrowRightIcon} from '@primer/octicons-react'Every React export ends in Icon; in 19.42.0 there is no LogoGithub export, although one README example still writes it that way.
Names with a dash do not work with dot access in JavaScript.
The icons are drawn for fixed sizes and the guide says not to resize them.
<button><XIcon /></button> with no label anywhere<button aria-label="Close"><XIcon /></button>, or Primer's IconButtonIcons without a label are hidden from screen readers, so an icon-only button needs its own name.
They are GitHub trademarks with their own usage rules.
License
MIT license. Free to use in personal and paid products, and you may change and share the files. Keep the copyright and license notice with copies. The GitHub logo icons follow GitHub's own logo rules.
“Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software” raw.githubusercontent.com
“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.” raw.githubusercontent.com
“Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software” raw.githubusercontent.com
“Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software” raw.githubusercontent.com
AllowedWith conditionsNot allowedNot stated or not checked yet
Is Octicons free for commercial use? The full answer Not legal advice. Check the license page before you ship.
For your agent
License rules tell your agent what it may do with Octicons. Paste them into your prompt or AGENTS.md.
- Octicons (Icons). GitHub's own icon set (16/24 px) as SVG, with JS and React packages. Price: free; commercial use OK; no credit needed. Style: outline, minimal.
Connect: npm @primer/octicons.
Get files: npm install @primer/octicons (or @primer/octicons-react). No account (svg, jsx).
Not allowed: MIT notice in redistributed source
Rule: Keep the license notice when you copy the source files
Rule: GitHub logo/mark icons are GitHub trademarks: use them only to refer to GitHub
License: https://raw.githubusercontent.com/primer/octicons/main/LICENSE (checked 2026-11-05; details: https://agentgid.com/assets/octicons/)
Agent installs a package or loads it from a CDN.
npm install @primer/octiconsFormats: svg, jsx
Icons: Octicons by GitHub (MIT)Alternatives
Octicons This page
Pick Lucide for a larger general set (2,029 icons in our catalog data) with ready packages for Vue, Svelte and Angular too.
Pick Heroicons when your site uses Tailwind and you want its makers' outline and solid icons for React or Vue.
Pick Phosphor when you want every icon in six weights, from thin to fill.
WordPress Icons (@wordpress/icons, successor to Dashicons)
WordPress's SVG icon set as an npm package, based on the older Dashicons icon font, under GPL-2.0-or-later.
Material Design Icons (Pictogrammers)
Community Material Design icon set (7,000+ icons, as reported) as SVG, webfont and JS packages (@mdi/js, @mdi/font).
Questions
Can I use Octicons in a paid app or a client project?
Yes. The MIT license allows use, copying, changing and selling, as long as the copyright and license notice stays with copies of the files.
What size are the icons?
Each icon is drawn at 16 px and most also at 24 px; a few have a 12 px drawing for tight spots. In React the default size is 16 px.
Can I change the color?
Yes. Icons take the color of the text around them by default; you can also pass a fill color.
Can I use the GitHub logo icon as my own logo?
No. GitHub's logos may be used to link to GitHub or show that your project works with GitHub, not as your own logo.
Will screen readers read the icons?
Not by default. An icon without a label is treated as decoration and hidden; add an aria-label when the icon alone carries the meaning.