| MIT License | |
|---|---|
The red and grey stylized block-letter logo | |
| Author | Massachusetts Institute of Technology |
| Publisher | Massachusetts Institute of Technology |
| Date | Late 1980s |
| OSI approved | Yes |
| Debian approved | Yes |
| Free software | Yes |
| GPL compatible | Yes |
| Copyleft | No |
| Linking | Yes |
The MIT License is a permissive software license originating at the Massachusetts Institute of Technology (MIT) in the late 1980s. As a permissive license, it puts only very limited restriction on reuse and has, therefore, high license compatibility.
Unlike copyleft software licenses, the MIT License also permits reuse within proprietary software, provided that all copies of the software or its substantial portions include a copy of the terms of the MIT License and also a copyright notice. In 2015, the MIT License was the most popular software license on GitHub, ahead of any GPL variant and other free and open-source software (FOSS) licenses.[1]
Notable projects that use the MIT License include the X Window System, Ruby on Rails, Node.js, Lua, jQuery, .NET, Angular, and React.
A common form of the MIT License (from the Open Source Initiative's website, which is the same as the "Expat License", and which is not identical to licenses used in the X Window System source code) is defined as follows:[2]
Copyright <YEAR> <COPYRIGHT HOLDER>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
An intermediate form of license used by the X Consortium for X11 used the following wording:[3]
Copyright (C) <date> X Consortium
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the X Consortium.
X Window System is a trademark of X Consortium, Inc.
The name "MIT License" is potentially ambiguous, as MIT has used many different licenses for software since its creation. For example, MIT offers four licensing options for the FFTW C source-code library, one of which is the GNU General Public License (GPL) v2.0 and the other three of which are non-open-source licenses.
The Free Software Foundation (FSF) considers the term "MIT License" misleading and ambiguous, and recommends instead referring to the specific variant by name, such as the Expat License or the X11 License.[4] The Open Source Initiative (OSI) and Software Package Data Exchange (SPDX), however, use "MIT License" (SPDX identifier MIT) to refer specifically to the Expat variant.
The Expat License is the most common variant of the MIT License and is the version published by the OSI as "The MIT License". Its name comes from the Expat XML parsing library, which uses this license. It grants permission to use, copy, modify, merge, publish, distribute, sublicense, and sell copies of the software, subject only to the condition that the copyright notice and permission notice be included in all copies or substantial portions of the software.
The X11 License (also known as the MIT/X Consortium License) is a variant used by the X Consortium for the X Window System (X11). In addition to the terms of the Expat License, the X11 License includes a clause prohibiting the use of the copyright holder's name in advertising or promotion without prior written authorization:
"Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the X Consortium."
Like the Expat License, the X11 License is a permissive, non-copyleft free software license that is compatible with the GNU GPL.
The MIT No Attribution License (SPDX identifier MIT-0) is a variant of the MIT License that removes the requirement to preserve the copyright notice and permission notice in copies or substantial portions of the software. This makes it a public-domain-equivalent license, similar to the Zero-Clause BSD (0BSD) license. It was developed by Amazon Web Services (AWS) for sample code and was approved by the Open Source Initiative in 2020.
The MIT License is very similar to the BSD licenses, particularly the 2-clause ("Simplified") and 3-clause ("Modified") variants. The original 4-clause BSD license included an advertising clause requiring that all advertising materials mentioning features or use of the software display an acknowledgment of the copyright holder; this clause was never part of the MIT License.
The 3-clause BSD license omits the advertising clause but retains a non-endorsement clause prohibiting the use of the names of the copyright holder or contributors to endorse or promote derived products without specific prior written permission. While the X11 variant of the MIT License contains a similar non-endorsement clause, the standard MIT (Expat) License does not.
The 2-clause BSD license is functionally equivalent to the MIT License, with only minor differences in wording. For example, the MIT License explicitly enumerates the rights to "use, copy, modify, merge, publish, distribute, sublicense, and/or sell" copies of the software, whereas the 2-clause BSD license grants permission for "redistribution and use in source and binary forms, with or without modification".
Unlike the GNU General Public License (GPL), which is a strong copyleft license, the MIT License is a permissive software license. Code licensed under the GPL requires that any derivative works distributed to others also be licensed under the GPL, ensuring that the software and its modifications remain free software. By contrast, the MIT License permits code to be reused in both open-source and proprietary software, provided that the original copyright notice and license text are included in all copies or substantial portions of the software.
Because it imposes no copyleft restrictions, the MIT License is compatible with the GPL. Code under the MIT License can be combined with GPL-licensed code, and the resulting combined work can be distributed under the GPL. The Free Software Foundation (FSF) recognizes both the Expat and X11 variants of the MIT License as free software licenses that are compatible with the GNU GPL.[5]
The MIT License is one of the most widely used free and open-source software licenses, frequently praised for its brevity, simplicity, and permissive nature. Because it is short and written in relatively plain language, developers and organizations often find it easier to understand and comply with than longer licenses such as the Apache License or the GNU General Public License (GPL).
Its popularity increased significantly during the 2010s. In 2015, GitHub reported that the MIT License was the most popular license on its platform, accounting for roughly 45% of licensed repositories, ahead of the GPL and Apache licenses.[1] In 2016, Black Duck Software similarly found that the MIT License had surpassed GPLv2 to become the most widely used open-source license across the projects it tracked. Later analyses by software composition analysis firms such as WhiteSource (later Mend) continued to rank the MIT License as the most common open-source license.
Both the Free Software Foundation (FSF) and the Open Source Initiative (OSI) approve the MIT License as a free software license and an open-source license, respectively. However, the FSF advises against using the name "MIT License" because MIT has used several different licenses over time, recommending instead that projects refer specifically to the Expat License or the X11 License. While the FSF prefers copyleft licenses such as the GPL for most projects, it considers the Expat and X11 licenses acceptable for small programs and compatible with the GNU GPL.
Some legal commentators and organizations have noted that, unlike newer permissive licenses such as the Apache License 2.0, the MIT License does not include an explicit patent grant or patent retaliation clause. Although legal scholars debate whether the license's broad grant of rights to "use, copy, modify, merge, publish, distribute, sublicense, and/or sell" implies a patent license, some enterprises and open-source foundations prefer the Apache License 2.0 for larger projects where patent litigation is a concern.