License Generator
Generate a LICENSE file for MIT, ISC, BSD 2-Clause, BSD 3-Clause or the Unlicense, or the Apache 2.0 header notice, with your name and year and the SPDX identifier.
Free · No sign-up · Your inputs stay in your browser
Input
Generate an open-source licence file
Output
LICENSE
1,065 characters
package.json / composer.json
"license": "MIT"
Do anything, keep the notice. The most used licence on GitHub. SPDX identifier: MIT, which goes in package.json's and composer.json's license field. Copyleft licences (GPL, AGPL, MPL) are long and must be copied verbatim from their official source, so they are not offered here. This is not legal advice: for a company's code, ask whoever owns its IP.
Runs in this browser. Nothing you paste is sent to a server.
About this tool
Method, assumptions, practical next steps, and limits.
Choosing
MIT and ISC let anyone do anything with the code as long as the notice is kept; BSD 3-Clause adds that your name may not be used to promote derivatives; Apache 2.0 adds an explicit patent licence, which large companies often prefer. Copyleft licences such as GPL and MPL require derivatives to stay open. The SPDX licence list has the canonical texts and identifiers.
Not legal advice
Code written for an employer usually belongs to the employer, who decides its licence. When in doubt, ask whoever owns the IP.