LicensePlain 中文 visits —
Home / Commercial use / Mozilla Public License 2.0
Weak copyleftSPDX MPL-2.0

Can I use Mozilla Public License 2.0 commercially?

VerdictYes — 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.

In practice

Mozilla Public License 2.0 allows commercial use and allows your application to stay closed source, provided the library itself stays replaceable. If you modify the library you publish those modifications; if you only link against it, your own code stays yours.

Selling the product

Charging for a binary, a hosted plan or a support contract is a commercial use, and none of the licences on this page forbid it. The GPL family says so in as many words.

Using it inside a company

Internal use inside one organisation is normally not distribution. That is why a company can run GPL software on its own laptops without publishing anything.

What triggers obligations

Distribution, or — for AGPL and SSPL — offering the software to outside users over a network. Those are the events that start the paperwork.

Conditions that come with the yes

  • keep the copyright and permission notice in every copy
  • mark the files you changed
  • hand the source to anyone you distribute binaries to
  • keep the modified files under the same licence

Where it stops

  • modify it without marking the changes

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.

Read next

Full licence page Compliance steps

A commercial-use answer is a fact about the licence, not about your business. If the code sits inside a product you sell, the distribution clause is what matters — read the compliance page for this licence.

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.