MIT License vs Mozilla Public License 2.0
File-level copyleft: the MPL files stay MPL.
You can combine MPL-2.0 files with MIT code, but the MPL files remain MPL and you must publish modifications to them. MIT code cannot be pulled into a project that then claims MPL over everything, and MPL code cannot be relicensed as MIT.
Side by side
Rows that differ are marked. Everything else behaves the same in both licences.
| Attribute | MIT License | Mozilla Public License 2.0 |
|---|---|---|
| OSI approved | Yes | Yes |
| FSF free licence | Yes | Yes |
| Commercial use | Yes | Yes |
| Closed-source product | Yes | Yes |
| Patent grant | No | Yes |
| Trademark grant | No | No |
| Notice required | Yes | Yes |
| Mark modified files | No | Yes |
| Disclose source | Nothing | Distribution |
| Same licence covers | Nothing | Modified files |
| Network clause | No | No |
| Link into proprietary | Yes | Yes |
| Relicense freely | Yes | Partly |
What actually differs
- Patent grant — No for MIT License, Yes for Mozilla Public License 2.0.
- Mark modified files — No for MIT License, Yes for Mozilla Public License 2.0.
- Disclose source — Nothing for MIT License, Distribution for Mozilla Public License 2.0.
- Same licence covers — Nothing for MIT License, Modified files for Mozilla Public License 2.0.
- Relicense freely — Yes for MIT License, Partly for Mozilla Public License 2.0.
Same in both: OSI approved, FSF free licence, Commercial use, Closed-source product, Trademark grant, Notice required, Network clause, Link into proprietary.
Which one to pick
Mozilla Public License 2.0
Files that must stay open inside products that are otherwise closed — browsers and plugins.
Can you mix them?
MIT License → Mozilla Public License 2.0
compatible
Mozilla Public License 2.0 → MIT License
not compatible