License Generator
Generate various open source licenses
Generate the full text of popular open-source licenses (MIT, Apache 2.0, GPL, BSD, and more) pre-filled with your name and year, ready to drop into a LICENSE file. Choosing and adding the right license is a key step in publishing a project responsibly.
How to use License Generator
- Choose the open-source license that fits your project.
- Enter your name and the copyright year.
- Generate the complete, filled-in license text.
- Copy it into a LICENSE file at your repository root.
Frequently asked questions
Which license should I choose?
MIT and Apache 2.0 are permissive and popular for libraries, while GPL is copyleft and requires derivative works to stay open. Pick based on how you want others to be able to reuse your code.
Where do I put the license file?
Place the text in a file named LICENSE (or LICENSE.md) at the root of your repository so it's discoverable by users and platforms like GitHub.
Is the MIT license really that permissive?
Yes. It lets others use, modify, and distribute your code, including commercially, as long as they keep your copyright notice, which is why it's so widely adopted.
Related Documentation tools
- API Documentation Generator: Import an OpenAPI/Swagger spec and generate readable API docs
- Documentation Site Generator: Generate complete documentation websites
- Diagram Generator: Turn plain English or Mermaid into flowcharts, sequence, and ER diagrams, rendered in your browser