GitHub license checker
Before you copy code or add a dependency, see which license the repository uses and what it lets you do with it.
How to use it
- Paste the repository link or type
owner/repo. - Press Check license. GitHub identifies the license file; the tool then reads that license’s terms from GitHub’s license data.
- Read the three columns: what you may do, what you must do in return, and what the license does not give you.
The common licenses in one table
Most open source on GitHub uses one of a handful of licenses. They split into permissive ones, which ask little, and copyleft ones, which ask you to share your changes.
| License | Use in a closed product | Main condition |
|---|---|---|
| MIT | Yes | Keep the copyright and license notice |
| Apache 2.0 | Yes | Keep the notices and state your changes; includes a patent grant |
| BSD 2-Clause / 3-Clause | Yes | Keep the notice; 3-Clause also bars using the authors’ names for endorsement |
| MPL 2.0 | Yes | Changed files stay under MPL and their source stays available |
| LGPL 3.0 | Yes, as a separate library | Changes to the library are shared under LGPL |
| GPL 3.0 | Only if you release your source under GPL | The whole distributed work is licensed under GPL |
| AGPL 3.0 | Only if you release your source under AGPL | Users over a network also get the source |
When there is no license
Public is not the same as open. A repository with no license is covered by ordinary copyright, so you may look at it but not reuse it. GitHub’s terms let other users view and fork it on GitHub; nothing more. If you need the code, open an issue and ask the author to choose a license.
For your own repository, the license generator writes the file with your name and year.
Related tools
Questions people ask
How do I check the license of a GitHub repository?
Paste it above. GitHub detects the license file, and the tool shows the license with what it permits, requires and excludes. On github.com the license also shows in the repository’s About panel.
Can I use MIT licensed code commercially?
Yes. MIT allows commercial use, modification and distribution, as long as the copyright and license notice stay with the code.
What does “not identified” mean?
There is a license file, but its text does not match any license GitHub knows, usually because it was edited. Read the file itself.
Is this legal advice?
No. It summarises the main terms from GitHub’s license data. For a real decision, read the license text and ask a lawyer when it matters.
Does it check the licenses of dependencies?
No. It checks the repository’s own license. Each dependency has its own; check them one by one or use your package manager’s license report.