MIT License
The shortest licence people actually read: keep the copyright line and you can do almost anything else with the code — including shipping it inside a closed product.
You may sell products that contain this code, charge for them and keep the revenue. No royalty is owed and no permission is needed.
What you can do
- sell a product that uses it
- ship it inside a closed-source product
- link or bundle it with proprietary code
- relicense your own code however you like
- modify it without marking the changes
What you must do
- keep the copyright and permission notice in every copy
What you cannot do
- count on a patent licence
Where it fits
Default for libraries and small tools that want maximum adoption.
The thing people get wrong
It is silent on patents and trademarks so a patent dispute gets no protection from it; there is also no warranty of any kind.
Mixing it with other licences
One-way: can code under this licence live inside a project released under the licence in the table?
| Outbound licence | SPDX | Verdict |
|---|---|---|
| Apache-2.0 | apache-2.0 | OK |
| BSD-3 | bsd-3-clause | OK |
| ISC | isc | OK |
| MPL-2.0 | mpl-2.0 | OK |
| LGPL-3.0 | lgpl-3.0 | OK |
| GPL-2.0 | gpl-2.0 | OK |
| GPL-3.0 | gpl-3.0 | OK |
| AGPL-3.0 | agpl-3.0 | OK |
| EPL-2.0 | epl-2.0 | OK |
Full 10 × 10 matrix — read the direction of the table before quoting it
Related
Can I use it commercially?Compliance checklistFull licence textMIT License vs Apache License 2.0MIT License vs GNU GPL v3.0MIT License vs GNU GPL v2.0MIT License vs BSD 3-Clause LicenseMIT License vs BSD 2-Clause LicenseMIT License vs ISC LicenseMIT License vs Mozilla Public License 2.0
Questions
Can I use MIT License commercially?
You may sell products that contain this code, charge for them and keep the revenue. No royalty is owed and no permission is needed.
Do I have to keep the copyright notice?
Keep the copyright notice and the permission text in every copy or substantial portion; there is no obligation to publish your changes.
Do I have to publish my changes?
No. Nothing in this licence reaches your modifications.
Is MIT License OSI approved and FSF free?
OSI: Yes. FSF: Yes.
What do people get wrong about MIT License?
It is silent on patents and trademarks so a patent dispute gets no protection from it; there is also no warranty of any kind.