Permissive

MIT License

The most widely used short permissive license — you can do anything as long as you keep the copyright notice and permission notice.

SPDXMIT

Permissions, conditions and limitations at a glance

Permissions

  • Commercial useThe software and derivatives may be used for commercial purposes.
  • ModificationThe software may be modified.
  • DistributionThe software may be distributed.
  • Private useThe software may be used and modified privately without publishing it.

Conditions

  • License and copyright noticeA copy of the license and the copyright notice must be included when distributing.

Limitations

  • LiabilityExpressly states that there is no liability for damages.
  • WarrantyExpressly states that no warranty is provided.

Permissions, conditions and limitations are classified using data from choosealicense.com (GitHub, MIT License).

What kind of license is it?

The MIT License is a permissive license originating from the Massachusetts Institute of Technology (MIT). Its text is only three paragraphs, making it easy to read, and it permits use, copying, modification, merging, publishing, distribution, sublicensing and selling. There is just one condition: include the copyright notice and this permission notice in all copies or substantial portions of the software. The last paragraph is a disclaimer stating the software is provided "AS IS" without any warranty or liability for damages.

It is considered the most widely used license in public repositories on GitHub, and well-known projects such as Node.js, Ruby on Rails, jQuery and React use MIT. React is also famous for switching from a "BSD + Patents" combination to MIT in 2017.

What you must do when distributing

How to apply it

Create a LICENSE (or LICENSE.txt, LICENSE.md) file at the root of your repository, put the text in it, and replace [year] with the year and [fullname] with the copyright holder. This site's generator does that for you. Also stating it in package manager metadata (such as "license": "MIT" in package.json) and as SPDX-License-Identifier: MIT in source file headers lets tools recognize the license automatically.

Common misconceptions

When it fits

It is a good fit for libraries, small utilities and example code that you want as many people as possible to use without restrictions. It is easy for companies to adopt and can go into projects under almost any other license (including the GPL), giving it about the widest ecosystem compatibility. In the Rust and JavaScript ecosystems, projects are often released under MIT OR Apache-2.0 dual licensing to complement the lack of a patent clause (dual licensing guide).

Can MIT code go into another project?

General verdicts for taking code released under this license and distributing it combined into a project under each license below. See other combinations in the compatibility checker →

Target projectVerdictNotes
Proprietary (closed-source) software AllowedYou must include the original copyright notice and license text.
Apache-2.0 AllowedYou must include the original copyright notice and license text.
MPL-2.0 AllowedYou must include the original copyright notice and license text.
LGPL-2.1 AllowedYou must include the original copyright notice and license text.
LGPL-3.0 AllowedYou must include the original copyright notice and license text.
GPL-2.0 AllowedYou must include the original copyright notice and license text.
GPL-3.0 AllowedYou must include the original copyright notice and license text.
AGPL-3.0 AllowedYou must include the original copyright notice and license text.

The content on this site is general information, not legal advice. For actual distribution, contracts or disputes, consult a lawyer or other qualified professional.