LicensePlain 中文 visits —
Home / Compare / MIT License vs Mozilla Public License 2.0
MIT vs MPL-2.0Permissive · Weak copyleft

MIT License vs Mozilla Public License 2.0

File-level copyleft: the MPL files stay MPL.

CompatibilityOne way

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.

AttributeMIT LicenseMozilla Public License 2.0
OSI approvedYesYes
FSF free licenceYesYes
Commercial useYesYes
Closed-source productYesYes
Patent grantNoYes
Trademark grantNoNo
Notice requiredYesYes
Mark modified filesNoYes
Disclose sourceNothingDistribution
Same licence coversNothingModified files
Network clauseNoNo
Link into proprietaryYesYes
Relicense freelyYesPartly

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

MIT License

Default for libraries and small tools that want maximum adoption.

Licence page

Mozilla Public License 2.0

Files that must stay open inside products that are otherwise closed — browsers and plugins.

Licence page

Can you mix them?

MIT License → Mozilla Public License 2.0

compatible

Mozilla Public License 2.0 → MIT License

not compatible

Compatibility statements are one-way and general. How you combine the code — linking, subprocess, copying files — can change the answer, so check the FSF list for anything unusual.

Questions

Can I use MIT License and Mozilla Public License 2.0 in the same project?

You can combine MPL-2.0 files with MIT code, but the MPL files remain MPL and you must publish modifications to them.

What happens if I get the direction wrong?

You end up distributing code under terms its authors never granted — which is copyright infringement, not a technicality. The fix is usually to relicense the outbound side to the stricter licence.

Do both licences require a NOTICE file?

Apache-2.0 does when the upstream project ships one; MIT and the BSD licences have no NOTICE convention at all.