License Picker and Generator
Answer a few questions, compare 15 popular open-source licenses side by side, and download the official LICENSE text plus SPDX headers for your files.
S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho
…
Com es fa
- 1Answer the questions
In Help me choose, set each question to yes, no or Don't mind.
- 2Compare
Open Compare to see permissions, conditions and limitations of every licence.
- 3Pick a licence
Press Use on a card or choose it from the License menu.
- 4Fill in details
Enter the year, copyright holder and optional project name.
- 5Download LICENSE
In LICENSE file, copy or download the filled text and the package.json license field.
- 6Add file headers
In File headers type your file extension, choose the long notice if wanted and copy the header.
Sobre aquesta eina
Code without a licence is, by default, "all rights reserved": others may look at it but not legally reuse it. Choosing a licence is therefore the step that actually makes a project open source, and the choice decides what others must do in return. This picker contains the official texts of 15 widely used licences, from the short MIT and BSD licences to the GNU GPL family, the Mozilla Public License and public-domain style dedications, together with the permissions, conditions and limitations that choosealicense.com lists for each. Questions narrow the list, a comparison grid shows the differences at a glance, and the generator fills in year and copyright holder and writes the matching headers for your source files.
Who this is for
Developers publishing a library or app, companies releasing internal tools, students choosing a licence for coursework and maintainers adding headers before a release.
Permissive, weak copyleft and strong copyleft
Permissive licences (MIT, BSD, ISC, Apache-2.0, BSL-1.0) let anyone reuse the code, including in closed products, as long as notices are kept. Weak copyleft (MPL-2.0 per file, LGPL-3.0 for libraries) requires sharing changes to your files or library but allows combining with other code. Strong copyleft (GPL-2.0, GPL-3.0) requires that distributed derivative works are licensed under the same terms with source available, and AGPL-3.0 extends that to software offered over a network.
The questions
Each question filters licences by an obligation: same-licence requirement, network use, explicit patent grant, file-level copyleft, keeping the copyright notice and giving up copyright entirely. Leave a question on Don't mind to ignore it. The cards show each matching licence with a one-line description.
The comparison grid
Rows are licences, columns are terms: commercial use, modification, distribution, private use, patent grant, keeping notices, stating changes, disclosing source, network use, same licence, liability and warranty disclaimers and trademark rights. A tick is a permission, a blue dot is a condition you must meet, and a stop sign is something the licence does not give.
Generating files
The LICENSE tab fills placeholders such as [year] and [fullname] in the official text. GNU licences are usually saved as COPYING. The header tab writes SPDX-FileCopyrightText and SPDX-License-Identifier lines in the comment style of your file extension, optionally followed by the long notice that the Apache, GPL and MPL texts recommend for each file. GPL family identifiers are written as -or-later; change them to -only if you do not want later versions to apply.
Worked example
A small TypeScript library whose author wants a patent grant but no copyleft: setting copyleft to no and patent grant to yes leaves Apache-2.0 among the matches. The generated LICENSE has the full Apache text with the appendix, and the .ts header reads // SPDX-FileCopyrightText: 2026 Your Name and // SPDX-License-Identifier: Apache-2.0.
Limits
This is general information about licence terms, not legal advice. It does not check whether your dependencies' licences are compatible with the one you choose, and it cannot tell you whether you own the rights to license the code. For company or high-stakes decisions, ask a lawyer.
Exemple resolt
Patent grant wanted, no copyleft → Apache-2.0 LICENSE plus SPDX header for .ts files.
En resum
- Categoria: Desenvolupament i dades
- S'executa al navegador, sense registre, sense pujar res.
- La informació que introdueixes es queda al dispositiu.
- Disponible en anglès.
- Contingut revisat per última vegada:
- Font oficial: License texts and obligations from choosealicense.com (GitHub), matching the SPDX License List; SPDX-License-Identifier headers per the REUSE specification
Preguntes freqüents
Which licence is most common?
On GitHub, MIT is the most widely used, followed by Apache-2.0 and the GPL family.
What is the difference between GPL-3.0-only and GPL-3.0-or-later?
-only fixes version 3; -or-later lets users choose version 3 or any later version the Free Software Foundation publishes.
Do I need a header in every file?
Not legally for most licences, but SPDX headers make the licence clear when files are copied elsewhere, and Apache and GPL recommend a notice.
Are the licence texts official?
Yes. They come from choosealicense.com, which publishes the texts of the SPDX License List.
Can I change licence later?
You can relicense code you own, but copies already released stay under the old licence, and contributions from others need their agreement.
Is this legal advice?
No. It explains licence terms in general; ask a lawyer for decisions about your specific situation.
