Skip to content
100% local

License file generator

Generate the full text of an open-source license with your year and name filled in.

Output

License file generator

Pick a license, add the year and your name, and this tool returns the complete, unmodified text of the LICENSE file you need — ready to save into a repository. It covers the ten licenses that cover almost every open-source project: MIT, Apache License 2.0, GNU GPL v3.0, GNU LGPL v3.0, Mozilla Public License 2.0, BSD 2-Clause, BSD 3-Clause, ISC, the Unlicense and CC0 1.0 public-domain dedication.

The year field accepts a single year or a range like "2020-2026", and the copyright holder can be a person or an organization. Each license is filled in exactly the way its own official template intends: MIT, ISC and the two BSD variants substitute the holder directly into their copyright line, Apache 2.0 fills its closing notice, and GPL-3.0 fills the "how to apply" template it ends with — including your project name, if you give one. Licenses that dedicate a work to the public domain, like the Unlicense and CC0, are left exactly as published, since naming a holder there would misstate what the license actually does.

Two extra options round out the file: an SPDX identifier and short copyright header you can paste at the top of a source file, and a plain-language summary of what the license permits, requires and limits, printed above the full legal text as a quick reference — never a replacement for reading it. The output updates the moment you change an option, and the tally reports the SPDX identifier, line count and character count.

Everything runs in your browser. Your name and project are never sent anywhere — this is a fast way to get the right boilerplate in place, not a substitute for legal advice. Copy the result, download it as a .txt file, or send it straight to another tool.

FAQ

Which licenses are supported?
MIT, Apache License 2.0, GNU GPL v3.0, GNU LGPL v3.0, Mozilla Public License 2.0, BSD 2-Clause, BSD 3-Clause, ISC, the Unlicense and CC0 1.0.
Why does my name not appear in the Unlicense or CC0 text?
Both dedicate the work to the public domain rather than granting permission as a named copyright holder, so their official text has no name field — inserting one would misrepresent what the license does.
Can I use a range of years, like 2020-2026?
Yes. The year field accepts any text, including a range, and it is inserted exactly as typed.
What does the SPDX header option add?
A short two-line comment — an SPDX-License-Identifier tag and a copyright line — meant to be pasted at the top of individual source files, separate from the main LICENSE text.
Is my project name or copyright holder uploaded anywhere?
No. The license text is generated entirely in your browser and nothing you type ever leaves your device.