Pick the right open-source licence.
Answer up to three questions. You get one licence, the reason for it, how it compares with the others, and the lines to paste into your project.
- Runs in your browser
- No sign-up
- Nothing is uploaded
MITPermissive
- Closed-source use
- Patent grant
- Must share changes
- Used by
| Licence | Type | Closed-source use | Patent grant | Keep notice | Share changes |
|---|---|---|---|---|---|
| 0BSDZero-Clause BSD | Public domain-like | – | – | No | |
| MITMIT License | Permissive | – | No | ||
| BSD-3-ClauseBSD 3-Clause | Permissive | – | No | ||
| Apache-2.0Apache License 2.0 | Permissive | No | |||
| MPL-2.0Mozilla Public License 2.0 | Weak copyleft | Changed files | |||
| LGPL-3.0GNU LGPL 3.0 | Weak copyleft | The library | |||
| GPL-3.0GNU GPL 3.0 | Strong copyleft | – | Whole project | ||
| AGPL-3.0GNU AGPL 3.0 | Strong copyleft | – | Whole project, also when hosted |
Guidance, not legal advice. Facts follow choosealicense.com and the SPDX licence list.
2026How it works
- 1Answer the questions
Only the ones that matter for your earlier answers are shown.
- 2Read the recommendation
One licence, in plain words, with close alternatives and projects that use it.
- 3Copy what you need
An SPDX header, the package.json field and a README section, with your name filled in.
Questions
Is this legal advice?
No. It is a short guide based on the common reading of each licence. For anything with real money or many contributors involved, ask a lawyer.
What is the difference between GPL and AGPL?
Both require sharing the source when you distribute the software. The AGPL also counts offering it to users over a network, so a hosted service built on AGPL code must publish its changes.
Can I change the licence later?
For code you wrote alone, yes. Once others have contributed, you need their agreement (or a contributor licence agreement) to relicense their parts. Versions already released keep their licence.
What is an SPDX identifier?
A short standard name for a licence, like MIT or Apache-2.0. Package managers, scanners and GitHub read it to know your licence without parsing the full text.