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