# Mozilla Public License 2.0 (MPL)

> A weak copyleft rule that works one file at a time. A changed MPL file stays open.

**Field:** Software Development  
**Category:** Product & Releases  
**Also known as:** MPL, MPL 2.0, MPL-2.0, Mozilla License

## Think of it like

It is like a shared notebook. Some pages are for all, and you may add your own.

## Definition

The Mozilla Public License 2.0 is a weak copyleft license that works file by file. If you change a file under the MPL, you must share that file's code under the MPL. But you may add new files of your own under any license, even a closed one. So one product can mix MPL files with private files. Firefox uses it.

## Example

Lucy's team adds two private files to an MPL project and fixes one MPL file. They share the fixed file and keep their own two closed.

## Why it matters

It is a middle way. The shared files stay open, but a company can still build closed parts around them.

## Common mistake

Copying MPL code into your own file to dodge the rule. The copied code is still MPL. This is a plain summary, not legal advice.

## Three principles

- **File by file.** The rule covers each MPL file.
- **Mix allowed.** New files can use any license.
- **Weak copyleft.** Fewer rules than the GPL.

## Related terms

- [Copyleft](https://learn.benibix.com/term/development/copyleft)
- [GNU Lesser General Public License (LGPL)](https://learn.benibix.com/term/development/lgpl)
- [GNU General Public License (GPL)](https://learn.benibix.com/term/development/gnu-gpl)
- [Software License](https://learn.benibix.com/term/development/software-license)
- [Open Source Software](https://learn.benibix.com/term/development/open-source)

![A line of licences from the fewest rules on the left to the most on the right. Permissive: MIT, BSD and Apache 2.0, where you only keep the notice. Weak copyleft: LGPL and MPL 2.0, where you share changes to the library or the file. Strong copyleft: GPL, where you share the code of the whole program you hand out. Network copyleft: AGPL, where running it as a web service counts too.](https://learn.benibix.com/diagrams/dev5-license-spectrum.svg)

---

Source: https://learn.benibix.com/term/development/mozilla-public-license
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
