Documentation

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.

Runs 100% in your browser · no upload, no tracking, no ads

How to use License Generator

  1. Choose the open-source license that fits your project.
  2. Enter your name and the copyright year.
  3. Generate the complete, filled-in license text.
  4. 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