License Generator

Add a license to your project in seconds. Choose MIT, Apache 2.0, a BSD variant, ISC, MPL 2.0, GPL, LGPL, AGPL, the Unlicense or 0BSD, enter your name and year, and download a ready-to-commit LICENSE file with the exact official text — plus the header to put in each source file.

License families

TypeLicenses
PermissiveMIT, Apache 2.0, BSD, ISC
Weak copyleftMPL 2.0, LGPL v3
Strong copyleftGPL v3, AGPL v3
Public domainUnlicense, 0BSD

When to use it

  1. Add a LICENSE to a new GitHub repository.
  2. Relicense or update the copyright year.
  3. Compare licenses before choosing.
  4. Generate SPDX file headers.

How to Use

  1. Choose a license.
  2. Enter copyright holder and year.
  3. Download LICENSE and copy the file header.

Features

  1. 11 common licenses
  2. Official SPDX text
  3. Placeholder filling
  4. SPDX file headers
  5. GNU apply notice

FAQs

Which license should I choose?

MIT or Apache 2.0 for maximum adoption; GPL if derivatives must stay open source.

Is the text official?

Yes — loaded from the SPDX License List.

What's the difference between MIT and Apache 2.0?

Apache 2.0 adds an explicit patent grant and requires noting changes.

Where does the file go?

At the root of your repository, named LICENSE (or COPYING for GNU licenses).

Is this legal advice?

No.

Technical Details

License texts are fetched from the SPDX License List data, the canonical source used by GitHub and package registries, so the wording is exact. MIT is also bundled for offline use. Only the copyright placeholders are filled — <year>, [yyyy], <copyright holders>, [name of copyright owner] and similar forms. The file is named LICENSE, or COPYING for GNU licenses. A per-file header is generated as well: the GNU 'how to apply' notice for GPL-family licenses, or a copyright line with an SPDX-License-Identifier tag for the others. A one-line summary of each license's obligations helps you choose.

Developer Tools

Developer Tools

  • Nanoid Generator
  • Random String Generator
  • Test IBAN Generator
  • UUID Generator
  • Regex Tester
  • Cron Parser
  • JSON to TypeScript
  • SQL Formatter