Skip to content
Careersbeginner

What are open source licenses?

Updated Nov 30, 20263 min readBased on official documentation
What are open source licenses?

In short

An open source license is a legal text that comes with software and says what you may do with its code. Licenses that meet the Open Source Definition let people use, change and share the software freely. The Open Source Initiative (OSI) reviews and approves licenses before they earn that label.

What an open source license is

Every piece of software has a license. The license is a legal document that tells users what they may do with the code. Without one, the default rule is that nobody else may copy or change the work. An open source license flips that default. It gives people permission to use, modify and share the software, usually for free.

The official documentation describes these licenses as ones that comply with the Open Source Definition. In plain terms, the definition is a checklist of freedoms. A license that respects those freedoms can be called open source. The Open Source Initiative, often shortened to OSI, is the group that checks licenses against this checklist. A license must pass the OSI's license review process before it is approved.

How the approved list works

The OSI keeps a public list of approved licenses. Each entry has a full name, a short identifier such as MIT or Apache-2.0, and a category. The identifier is useful because it appears in code repositories and package files. When you read a project, look for that short name to see which terms apply.

The list is long. It includes permissive licenses, which allow almost any reuse as long as the original notice is kept. It also includes copyleft licenses, which require that changed versions be shared under the same terms. Some licenses are old and marked as superseded, which means a newer version is preferred. Others are marked as redundant because a more popular license covers the same ground.

Common families you will meet

You do not need to memorize the whole list. Most developers meet a handful of licenses again and again. Permissive licenses such as the MIT License, the 2-Clause and 3-Clause BSD Licenses, and the Apache License 2.0 are common in libraries. They make it easy for companies and individuals to reuse code in their own products.

Copyleft licenses such as the GNU General Public License are common in projects that want their derivative work to stay open. The GNU Lesser General Public License sits between the two and is often used for libraries. The Mozilla Public License 2.0 is another popular choice. Each family has different rules about attribution, patents and sharing changes, so the details matter when you combine code.

A simple example

Imagine you find a small utility on a code hosting site. The project includes a file named LICENSE. You open it and see the text of the MIT License. That tells you that you may use the code in your own app, change it, and ship it, as long as you keep the copyright notice and the license text with your copy. You do not need to ask the author for permission.

Now imagine the same file held the GNU General Public License. You could still use the code, but if you distributed a modified version, you would need to share your changes under the same license. The two files look similar at first. Their rules are very different, and your choice affects what you can do next.

Common mistakes

The first mistake is assuming that a project with public code is automatically open source. Public visibility is not the same as a license. If there is no license file, the code is usually not free to reuse, even if anyone can read it.

The second mistake is mixing licenses without checking. Code under different licenses may not be compatible. Some teams set a rule that only approved licenses may enter their codebase, and they check each new dependency before adding it.

The third mistake is ignoring the notice requirements. Many licenses ask you to keep copyright notices and license text. Removing them can break the terms even when the rest of your use is allowed.

Why it matters for your career

Understanding licenses helps you read code, choose libraries and work with legal teams. Developers who know the basics can spot risks early and ask better questions. If you want to contribute to other people's projects, knowing the license is part of understanding the project. You can learn more about that in our guide on how to contribute to open source at https://blozhik.com/learn/open-source-contribution. You can also see the official list of approved licenses at https://opensource.org/licenses.

Licenses are not a substitute for legal advice. For a business product, ask your company's legal team to review any unusual terms. For everyday work, reading the license file and keeping notices in place covers most cases.

FAQ

Is free software the same as open source?

They overlap a lot but come from different movements and emphasize different things. Open source focuses on the practical benefits of sharing code, while free software focuses on user freedom. Many licenses satisfy both descriptions.

Can I use open source code in a paid product?

Often yes, but it depends on the license. Permissive licenses usually allow commercial use with notice requirements, while some copyleft licenses require you to share changes. Always read the specific license before shipping.

Who decides whether a license is open source?

The Open Source Initiative reviews licenses against the Open Source Definition and publishes the approved ones. The list is public, so you can check any license name against it.

What happens if a project has no license?

Without a license, default copyright rules apply, which generally means you may not copy, change or share the code. Ask the author for permission or choose a different project.

Sources

This page is based on the official documentation below. Read it for full detail.

Open source licenses — official documentation ↗
blozhikDeveloper news from across the web, explained. Every story links to its original sources.