Open Source License Generator
Developer ToolsGenerate 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
- Select your chosen license from the License dropdown.
- Enter your name (or your organisation's name) in the Copyright Holder Name field.
- Confirm or update the Year field.
- Read the generated License Text in the result panel.
- Copy the text and save it as a file named exactly
LICENSE(no file extension) in your repository's root folder. - 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