About the Open Source License Generator tool
Code published without a license is, legally, all rights reserved: others cannot safely use, copy or modify it. Adding an open source license is how you tell people what they may do. Choosing one and filling in the text correctly takes a few minutes with this license generator.
Pick one of eight widely used licenses, enter the copyright holder and year, and the text updates immediately. MIT, BSD 2-Clause, BSD 3-Clause, ISC and the Unlicense are short, so the complete official wording is produced, ready to save as LICENSE. Apache 2.0, GNU GPL v3 and Mozilla Public License 2.0 are long documents that must be copied unmodified, so the tool gives you each license's official notice for source files or your README, plus a direct link to the full text published by the Apache Software Foundation, the Free Software Foundation or Mozilla.
A comparison table summarises commercial use, patent grants, source-sharing duties and attribution requirements to help you choose. It is a summary, not legal advice.
How to use Open Source License Generator
- Click the license you want in the list.
- Enter the “Copyright holder” and “Year(s)”, such as 2021-2025.
- For GPL-3.0, add the program name and a one-line description.
- Copy or download the text; save it as LICENSE in your repository root.
- For Apache, GPL and MPL, also download the full text from the official link.
Open source license comparison
A simplified summary to help you compare. The license text itself is what applies.
| License | Commercial use | Patent grant | Must share source of changes | Keep notice | Same license for derivatives |
|---|---|---|---|---|---|
| MIT | Yes | No (not explicit) | No | Yes | No |
| Apache-2.0 | Yes | Yes | No (must mark changed files) | Yes, plus NOTICE file | No |
| GPL-3.0 | Yes | Yes | Yes, when distributing | Yes | Yes (whole program) |
| BSD-2-Clause | Yes | No (not explicit) | No | Yes | No |
| BSD-3-Clause | Yes | No (not explicit) | No | Yes, and no endorsement | No |
| ISC | Yes | No (not explicit) | No | Yes | No |
| MPL-2.0 | Yes | Yes | Yes, for modified MPL files | Yes | Only the MPL files |
| Unlicense | Yes | No | No | No | No |
Features
Eight common licenses
MIT, Apache-2.0, GPL-3.0, BSD-2-Clause, BSD-3-Clause, ISC, MPL-2.0 and Unlicense.
Official wording
Short licenses use the exact standard text with your name and year inserted.
Correct notices for long licenses
Apache, GPL and MPL notices are the ones their stewards recommend, with full-text links.
Side-by-side comparison
A table of permissions and conditions for all eight licenses.
Copy or download
Save the text as a file or paste it into your project.
When to use it
- Add a LICENSE file to a new GitHub or GitLab repository.
- Publish an npm, PyPI or crates.io package with a clear license.
- Add Apache or GPL headers to the top of your source files.
- Compare permissive and copyleft licenses before releasing a project.
- Update the copyright year range on an existing project.
Frequently asked questions
Which license should I choose?
MIT is the most common choice for maximum reuse. Apache 2.0 adds an explicit patent grant. GPL-3.0 ensures modified versions that are distributed stay open source. MPL-2.0 is a middle ground that applies copyleft per file.
Why doesn't the tool show the full Apache or GPL text?
Those licenses are several pages long and must be reproduced exactly. The official link gives you the authoritative file, and this tool provides the notice you fill in.
What should I put as the copyright holder?
Your legal name, or your company's name if the code was written for your employer. Add contributors or “and contributors” if appropriate.
Do I need to update the year every year?
No. The year marks first publication; many projects use a range such as 2021-2025, but it is not required.
Is this legal advice?
No. The summaries are simplified. Read the full license text, and consult a lawyer for commercial or complex situations.