HomeGeneratorsDeveloper ToolsOpen Source License Generator

Open Source License Generator

Developer Tools

Generate a ready-to-use open source license file — MIT, Apache 2.0, GPL v3, BSD, or Unlicense. Enter your name and year, then copy the official license text.

What is a License?

An Open Source License Generator produces the official text of a software license — MIT, Apache 2.0, GPL v3, BSD, or the Unlicense — with your name and the current year inserted automatically. Choosing and correctly applying a license is one of the most overlooked steps when publishing code: without one, your repository defaults to "all rights reserved," meaning nobody else has any legal right to use, modify, or redistribute your code, even if it's publicly visible on GitHub.

This generator solves the practical side of that problem. Select the license that matches how you want others to be able to use your project, fill in your name and the year, and get the complete, accurate license text ready to save into your repository. It pairs naturally with the .gitignore Generator when setting up a new project's baseline files.

How to use this License calculator

  1. Select your chosen license from the License dropdown.
  2. Enter your name (or your organisation's name) in the Copyright Holder Name field.
  3. Confirm or update the Year field.
  4. Read the generated License Text in the result panel.
  5. Copy the text and save it as a file named exactly LICENSE (no file extension) in your repository's root folder.
  6. Commit and push the file — GitHub and most other platforms will automatically detect and display the license.

Formula & Methodology

The generator does not compute anything — it inserts your name and year into the exact placeholders the official license text defines, leaving every other word of the license unchanged.

Before, with MIT selected and no details entered:
MIT License  Copyright (c) __YEAR__ __AUTHOR__ ...

After, with "2026" and "Asha Patel" entered:
MIT License  Copyright (c) 2026 Asha Patel  Permission is hereby granted, free of charge, to any person obtaining a copy...

The rest of the license body — the permissions granted and the warranty disclaimer — comes directly from the license's official published text and is never altered.

Frequently Asked Questions

An open source license generator produces the complete, official text of a license — such as MIT, Apache 2.0, or GPL v3 — with your name and the year automatically filled in. Instead of copying license text from memory or an unofficial source, you get the verified text ready to save as a LICENSE file in your repository.
MIT and Apache 2.0 are the most permissive and widely used for open source projects, allowing almost any reuse including in proprietary software. GPL v3 is a copyleft license that requires derivative works to also be open-sourced under GPL, while the Unlicense places your work in the public domain with no restrictions at all.
Both are permissive licenses allowing free reuse, modification, and distribution, but Apache 2.0 includes an explicit patent grant and requires stating changes made to the code, while MIT is shorter and simpler with no patent clause. Apache 2.0 is often preferred by larger projects and companies specifically because of its patent protection language.
Copyleft means that any software derived from or incorporating GPL-licensed code must also be released under the GPL, keeping it and all its derivatives free and open source. This is the key difference from permissive licenses like MIT or Apache 2.0, which allow proprietary derivative works.
No — open source licenses are self-applied. Simply save the generated text as a file named LICENSE (no file extension) in your repository's root folder, and your code is legally covered under that license as soon as you publish it.
You can change the license going forward for new contributions, but you generally need permission from every contributor to relicense code they've already contributed under the original license. This is why many projects choose their license carefully from the start.
The Unlicense dedicates your software to the public domain, meaning you waive all copyright claims and anyone can use, modify, or sell it for any purpose without attribution. It's the most permissive option available, going further than even MIT or BSD licenses.
Yes — the text generated for each license option matches the official published text from the license's source (the Apache Software Foundation, the Free Software Foundation, the OSI, and similar bodies). No wording is altered beyond inserting your name and the year where the license itself specifies.
Generate your chosen license text, copy it, and save it as a file named LICENSE in your repository's root directory, then commit and push the file. GitHub will automatically detect and display the license on your repository's main page.
BSD 3-Clause includes an additional clause prohibiting use of the copyright holder's name to promote derived products without permission, while BSD 2-Clause omits that restriction. Both are otherwise identical permissive licenses.
Also known as
MIT license generatorchoose a licenseopen source license textGPL license generatorApache 2.0 license generator