Free tool · Developer tools
License generator
Pick a license in this license generator, type the year and the name of the copyright holder, and the page writes the full LICENSE file, for example "Copyright (c) 2026 Ada Example" for the MIT text. It also gives the header comment for source files and the package.json line.
- Free
- No sign-up
- Runs in your browser
MIT LicenseSPDX identifier MIT, 169 words
- SPDX-License-Identifier: MIT
- Made on this device
- Words
- 169
- Lines
- 18
- Characters
- 1,066
- Needs a name
- Yes
How to use the License Generator
- Choose one of the six under License: MIT, ISC, BSD-2-Clause, BSD-3-Clause, 0BSD or Unlicense.
- Type the Year or years, for example 2026 or 2021-2026, and the Copyright holder. The Unlicense has no such fields, so they disappear.
- Read the file in the result, then press Copy or Download LICENSE. The file name is LICENSE with no extension.
- Pick a Header comment style and copy the short header for your source files, and the line for package.json if you publish a package.
How do I add a license to my project?
Put the full text in a file called LICENSE in the top folder of the project, next to the README. The generator gives you that file: the wording is the text published in the SPDX License List, with the year and the holder filled in, and nothing else changed. With the year 2026 and the name Ada Example, the MIT result starts with "Copyright (c) 2026 Ada Example".
Source files can carry a short header too. The SPDX specification asks for a tag of the form SPDX-License-Identifier: <identifier> on its own line near the top of the file, usually inside a comment. For the example the header in a slash comment is: // Copyright (c) 2026 Ada Example and // SPDX-License-Identifier: MIT. Change the header comment style to get the same two lines in hash, block or HTML comments.
If you publish to the npm registry, the license field of package.json takes the same identifier. The generator writes it as "license": "MIT". The npm documentation says to use the identifier for a common license, and a string such as SEE LICENSE IN with a file name for a custom one.
Which license should I choose: MIT, ISC, BSD or Unlicense?
All six licenses here are short and permissive. They let other people use, copy, change and share the software, and they disclaim any warranty. They differ in what they ask in return, and the table is read straight from the texts: whether the copyright notice must stay in copies, and whether a clause limits using the holder's name to promote products made from the software.
MIT and ISC are the shortest of the notice-keeping licenses, at 169 and 117 words. BSD 2-Clause adds a rule for binary form and BSD 3-Clause adds the rule about the holder's name, which brings it to 221 words. Zero-Clause BSD asks for no notice at all, and the Unlicense reads as a dedication to the public domain rather than a grant of permission. If a team or an employer sets the choice for you, follow that instead, and ask a lawyer when the stakes are real.
| License | SPDX identifier | Words | Needs a name | Notice kept in copies | Limits use of the name |
|---|---|---|---|---|---|
| MIT License | MIT | 169 | Yes | Yes | No |
| ISC License | ISC | 117 | Yes | Yes | No |
| BSD 2-Clause License | BSD-2-Clause | 190 | Yes | Yes | No |
| BSD 3-Clause License | BSD-3-Clause | 221 | Yes | Yes | Yes |
| Zero-Clause BSD | 0BSD | 103 | Yes | No | No |
| The Unlicense | Unlicense | 197 | No | No | No |
What do I type for the year and the name?
The texts leave two fields open: the year and the holder. Type a single year such as 2026, or a range such as 2021-2026 if the project has been updated over several years. The tool keeps the range as you typed it, only tidying the spaces around the dash, and refuses a range that runs backward or a year outside 1900 to 2100.
The holder is the person or group that owns the copyright. The name is copied exactly as typed, up to 120 characters on one line, so you can add an email address or a project name if you want it in the notice. The Zero-Clause BSD text writes the line as "Copyright (C) year by name", the ISC text as "Copyright year name", and the MIT and BSD texts as "Copyright (c) year name". The header comment uses (C) for Zero-Clause BSD and (c) for the others.
What does this license generator not do?
It does not choose for you, check the licenses of the libraries you use, or judge whether a license fits a company policy. Licenses that need extra files or notices, such as the longer copyleft and patent licenses, are not included, because their texts and headers come with more rules than a fill in the blanks page can handle.
The result is the license text and nothing more, and it is not legal advice. Everything is made in the page you have open, and the name you type is not sent anywhere.
Use it with
- Markdown Editor: live Markdown preview and HTML export.
- JSON Formatter: format and validate JSON.
- .env File Generator: .env file generator: type NAME=value lines to get a tidy .env with correct quoting and a matching .env.example with values blanked.
Questions
Where do I put the LICENSE file?
In the top folder of your project, named LICENSE with no extension.
What is an SPDX identifier?
It is a short, fixed name for a license, such as MIT or BSD-3-Clause, used in the tag SPDX-License-Identifier: MIT and in package.json.
Can I use a range of years in the notice?
Yes. Type 2021-2026 in Year or years. The page accepts four digit years from 1900 to 2100, and the second year must not be earlier than the first.
Why does the Unlicense have no name or year?
Its text is a dedication of the work to the public. It has no copyright line to fill in, so the page hides the year and name boxes when you choose it.
What is the difference between BSD 2-Clause and BSD 3-Clause?
The third clause of BSD 3-Clause says the name of the holder and contributors may not be used to promote products made from the software without written permission. BSD 2-Clause leaves that clause out.
Is the generated text legal advice?
No. It is the published license wording with your year and name filled in. For a decision about a company project or a product you sell, ask a qualified lawyer.
Sources
The tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations are checked against the tool's own output.