> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Open source licenses

> This article explains open source licenses, their importance, and how they define permissions and responsibilities for using, modifying, and redistributing code.

Releasing your work as open source can accelerate collaboration and innovation—but it also carries legal responsibilities. In most countries, creative work is automatically protected by copyright. Unless you grant explicit permission, others cannot use, modify, or redistribute your code.

<Callout icon="triangle-alert" color="#FF6B6B">
  Always include a license file in your repository. Without one, contributors and users risk infringing on your copyright.
</Callout>

A license clearly defines the permissions, conditions, and limitations for anyone who interacts with your project.

<Frame>
  ![The image is a diagram illustrating open source licenses, highlighting the abilities to access, edit, and redistribute source code.](https://kodekloud.com/kk-media/image/upload/v1752882537/notes-assets/images/Open-Source-for-Beginners-Open-source-licenses/open-source-licenses-diagram-access-edit-redistribute.jpg)
</Frame>

## What Makes a Project “Open Source”?

Simply making code publicly accessible doesn’t make it open source. True open source projects must adopt a license that complies with the [Open Source Definition](https://opensource.org/osd). That definition ensures your project remains free to use, modify, and distribute under clear terms.

<Frame>
  ![The image shows a Google search bar with the text "any free work is open source" typed in. The background is dark, and the Google logo is prominently displayed above the search bar.](https://kodekloud.com/kk-media/image/upload/v1752882538/notes-assets/images/Open-Source-for-Beginners-Open-source-licenses/google-search-bar-open-source-text.jpg)
</Frame>

<Callout icon="lightbulb" color="#1CB2FE">
  A license grants legal permission. Popular open source licenses are maintained by standard organizations to ensure consistency and clarity.
</Callout>

## Popular Open Source Licenses

| License Name                        | Key Permissions                            | Learn More                                                   |
| ----------------------------------- | ------------------------------------------ | ------------------------------------------------------------ |
| MIT License                         | Commercial use, modification, distribution | [MIT License](https://opensource.org/licenses/MIT)           |
| GNU General Public License (GPL) v3 | Copyleft, distribution under same terms    | [GPL v3](https://www.gnu.org/licenses/gpl-3.0.en.html)       |
| Apache License 2.0                  | Patent grant, redistribution               | [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)    |
| BSD 2-Clause (“Simplified BSD”)     | Redistribution with attribution            | [BSD 2-Clause](https://opensource.org/licenses/BSD-2-Clause) |
| Mozilla Public License 2.0          | File-level copyleft, distribution          | [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/)            |

## Examining a License on GitHub

Let’s explore how React’s team handles licensing. Visit the [React GitHub repository](https://github.com/facebook/react) and locate the `LICENSE` file:

1. Navigate to the repo and click on **LICENSE** in the file list.
2. You’ll see that React uses the MIT License.
3. The sidebar also provides a quick summary of permissions and conditions.

<Frame>
  ![The image shows a GitHub repository page displaying the MIT License for a project named "react-page." It includes details about permissions, limitations, and conditions of the license.](https://kodekloud.com/kk-media/image/upload/v1752882540/notes-assets/images/Open-Source-for-Beginners-Open-source-licenses/github-repo-mit-license-react-page.jpg)
</Frame>

Each license carries unique obligations—such as attribution requirements or copyleft clauses—so review them carefully before choosing one for your project.

## References

* [Open Source Definition](https://opensource.org/osd)
* [Open Source Initiative: License List](https://opensource.org/licenses)
* [Choose an Open Source License](https://choosealicense.com/)

<CardGroup>
  <Card title="Watch Video" icon="video" cta="Learn more" href="https://learn.kodekloud.com/user/courses/open-source-for-beginners/module/649f4ff1-452a-46e6-9822-6cb8808ccc6f/lesson/d670537f-6439-4c03-9a5d-cb82eeb8105a" />
</CardGroup>
