How to use the licence generator
- Choose a Licence: MIT License, ISC License, BSD 2-Clause, BSD 3-Clause, The Unlicense, Apache License 2.0, Mozilla Public License 2.0 or GNU General Public License v3.0.
- Check the Year and type the Copyright holder.
- For GPL 3.0, also fill in Program name and one-line description (GPL notice).
- Copy the output. For the short licences, save it as
LICENSEin the root of your repository. For the long ones, follow the note under the output.
What it does and when to use it
A public repository without a licence is not open source: by default nobody may copy or change the code. A LICENSE file fixes that, and GitHub and package registries read it. Use this tool when you start a repository, publish a package, or find an old project without a licence. The README generator links the licence from your README, and the package.json generator takes the same SPDX id. Record later licence changes in your changelog.
How it works
The tool holds two kinds of templates, filled in your browser:
- Full texts for MIT, ISC, BSD 2-Clause, BSD 3-Clause and the Unlicense, from the SPDX licence list, with the year and holder in the copyright line. A note gives the SPDX id for package.json.
- Notices for Apache 2.0, MPL 2.0 and GPL 3.0: the short text each licence tells you to put at the top of source files or in your README, plus a link to the official full text.
To compare licences side by side, choosealicense.com and the SPDX licence list are good references.
Worked examples
MIT with the default values. Year 2026, holder Asha Rao. The file starts like this and continues with the standard permission and warranty paragraphs:
MIT License
Copyright (c) 2026 Asha Rao
Apache 2.0 for a company. Holder Northwind Labs. The output is the Apache appendix notice, which begins Copyright 2026 Northwind Labs and then Licensed under the Apache License, Version 2.0. Save the full licence from the linked URL as LICENSE.
GPL 3.0 for a small tool. Year 2025, holder Lena Park, program line tidy-csv — cleans messy CSV exports. The notice opens with the program line, then Copyright (C) 2025 Lena Park (GPL’s own two-space layout).
Limits and tips
- Do not edit the licence wording. Only the copyright line should change; a modified licence is no longer the standard one.
- Check the holder. Code written for an employer is often owned by the employer, not by you.
- Third-party code keeps its own licence. Your LICENSE covers your code, not copied libraries.
Frequently asked questions
Which licence should I choose?
Why do Apache 2.0, MPL 2.0 and GPL 3.0 not give me the full text?
What should the copyright holder be?
Do I need to change the year every January?
What is the SPDX identifier for?
How do we know nothing is uploaded? Test it yourself on the privacy proof page.