License Generator
Select a license, enter your name and year, then copy or download the full license text ready to use in your project.
SPDX:
MITยทMIT LicenseFrequently Asked Questions
Which licenses are supported?
MIT, Apache 2.0, GNU GPL 3.0, ISC, BSD 2-Clause, BSD 3-Clause, and The Unlicense. These cover the vast majority of open source projects.
What is the difference between MIT and Apache 2.0?
Both are permissive licenses. Apache 2.0 additionally grants patent rights from contributors and requires a NOTICE file in derivative works.
When should I use the GPL?
Use GPL when you want to ensure that derivative works also remain open source (copyleft). Suitable for libraries or applications where you want to enforce software freedom.
How do I apply the license to my project?
Download the generated text as a LICENSE file and place it in the root of your repository. Also add a license header comment to your source files if your chosen license recommends it.
Open Source License Comparison
| License | Permissive? | Requires attribution? | Copyleft? |
|---|---|---|---|
| MIT | Yes | Yes (keep copyright notice) | No โ derivatives can be proprietary |
| Apache 2.0 | Yes | Yes | No โ but explicit patent grant |
| BSD 2/3 | Yes | Yes | No |
| ISC | Yes | Yes | No โ functionally equivalent to MIT |
| GPL 3.0 | No | Yes | Yes โ derivatives must be GPL too |
| Unlicense | Yes | No | No โ public domain dedication |
Choosing the Right License
- Small utility or library โ MIT is the most popular choice: easy to understand, businesses can use it without concern.
- Project with patents โ Apache 2.0 includes an explicit patent grant, protecting contributors from patent litigation.
- Want derivatives to stay open โ GPL 3.0 ensures that anyone who modifies and distributes your code must also open-source their changes.
- No restrictions at all โ Unlicense dedicates the work to the public domain with no conditions.