License Generator

Pick an open source license, enter the year and copyright holder and get the license text for your LICENSE file, with the SPDX identifier.

Processed on your device. Files are not uploaded

How to choose and add a license

  1. Pick a license

    A one-line summary is shown for each.

  2. Enter the year and holder

    Use your name or your company.

  3. Save it as LICENSE

    Copy it or download the file.

Worked example

This is what License Generator gives for its own sample values. Open the tool above and change anything to try your own.

License
MIT: Very permissive. Do almost anything, keep the notice.
Copyright holder
Year
2026

LICENSE

MIT License

Copyright (c) 2026 Your Name

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

...

About License Generator

Get the text of a common open source license with your name and the year filled in: MIT, Apache 2.0, BSD 2 and 3, ISC, the Unlicense, and the standard notices for GPL, AGPL, LGPL and MPL. The SPDX identifier is shown for package files.

FAQs

Which license should I choose?

MIT or Apache 2.0 if you want others to use your code freely. GPL if you want changes to stay open. This is general information, not legal advice.

Do I need to add the full GPL text?

Yes. The tool gives you the standard notice and the address of the full text.

Where do I put it?

In a file named LICENSE in the root of your project.

Related tools