LicensePlain 中文 visits —
Home / Licences / Mozilla Public License 2.0
Weak copyleftSPDX MPL-2.0OSI approvedFSF free

Mozilla Public License 2.0

File-level copyleft: files you modify must stay MPL while the rest of your project can be licensed however you want.

Commercial useYes — commercially, without asking.

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
  • run it as a service without publishing anything

What you must do

  1. keep the copyright and permission notice in every copy
  2. mark the files you changed
  3. hand the source to anyone you distribute binaries to
  4. keep the modified files under the same licence

What you cannot do

  • modify it without marking the changes

Where it fits

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

The thing people get wrong

It offers secondary licences (GPL-2.0-or-later LGPL-2.1-or-later AGPL-3.0-or-later); a file marked “Incompatible With Secondary Licenses” loses that route — which is why GPL-2.0 is the cell to check.

Mixing it with other licences

One-way: can code under this licence live inside a project released under the licence in the table?

Outbound licenceSPDXVerdict
MITmitNo
Apache-2.0apache-2.0No
BSD-3bsd-3-clauseNo
ISCiscNo
LGPL-3.0lgpl-3.0OK
GPL-2.0gpl-2.0Depends
GPL-3.0gpl-3.0OK
AGPL-3.0agpl-3.0OK
EPL-2.0epl-2.0No

Full 10 × 10 matrix — read the direction of the table before quoting it

Not legal advice. Read the licence file in the repository you are actually using; this page summarises the published text.

Related

Can I use it commercially?Compliance checklistMozilla Public License 2.0 vs MIT License

Questions

Can I use Mozilla Public License 2.0 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?

Publish modified MPL files; keep notices; the larger work may be under other terms.

Do I have to publish my changes?

Publish modified MPL files; keep notices; the larger work may be under other terms.

Is Mozilla Public License 2.0 OSI approved and FSF free?

OSI: Yes. FSF: Yes.

What do people get wrong about Mozilla Public License 2.0?

It offers secondary licences (GPL-2.0-or-later LGPL-2.1-or-later AGPL-3.0-or-later); a file marked “Incompatible With Secondary Licenses” loses that route — which is why GPL-2.0 is the cell to check.