License guide

Open-source licenses in plain words

A license says what you may do with someone else’s code. Here are the licenses you meet most often on GitHub, side by side: can you use it at work, sell what you build, keep your own code private?

Five kinds of license

Some projects use source-available licenses, such as BUSL, SSPL or the Elastic License. They are not open source: they limit some uses. The “Can I use it?” card on their project page explains them.

At a glance

What each license lets you do, by kind of license
LicenseUse at workSell what you buildKeep your code privateClosed-source appOnline serviceCredit the authorsPatent grant
Permissive
MITYesYesYesYesYesRequiredNot stated
Apache-2.0YesYesYesYesYesRequiredYes
BSD-3-ClauseYesYesYesYesYesRequiredNot stated
BSD-2-ClauseYesYesYesYesYesRequiredNot stated
ISCYesYesYesYesYesRequiredNot stated
BSL-1.0YesYesYesYesYesRequiredNot stated
ZlibYesYesYesYesYesRequiredNot stated
No conditions
UnlicenseYesYesYesYesYesNot neededNot stated
CC0-1.0YesYesYesYesYesNot neededNo
MIT-0YesYesYesYesYesNot neededNot stated
0BSDYesYesYesYesYesNot neededNot stated
Weak copyleft
LGPL-3.0YesYesConditionsConditionsYesRequiredYes
LGPL-2.1YesYesConditionsConditionsYesRequiredNot stated
MPL-2.0YesYesConditionsConditionsYesRequiredYes
EPL-2.0YesConditionsConditionsConditionsYesRequiredYes
Copyleft
GPL-3.0YesConditionsConditionsNoYesRequiredYes
GPL-2.0YesConditionsConditionsNoYesRequiredNot stated
Network copyleft
AGPL-3.0YesConditionsConditionsNoConditionsRequiredYes
EUPL-1.2YesConditionsConditionsCheck firstConditionsRequiredYes

“Conditions” means yes, if you follow the rule in the license’s section below. “Not stated” means the license text doesn’t say.

Permissive

Few rules: use it almost any way you like, if you keep the notice.

MIT License

PermissiveMIT

The most used open-source license. Short and simple: do almost anything, and keep the notice.

Used by
React, Node.js, Ruby on Rails
Watch out
Its text has no patent grant. Some companies prefer Apache-2.0 for that reason.
  • Use it at workYesFree for personal and company use.
  • Sell what you build with itYesYou can sell apps and services that include it.
  • Keep your own code privateYesYou don’t have to share your code or your changes.
  • Put it in a closed-source appYesYou can ship it inside closed-source software.
  • Credit the authorsRequiredKeep the copyright and license notice in the copies you share.
Read the full license (MIT) ↗

Apache License 2.0

PermissiveApache-2.0

Permissive like MIT, plus a clear patent grant and rules for marking the files you change.

Used by
Kubernetes, TensorFlow, Apache HTTP Server
Watch out
Keep the NOTICE file if there is one. Its code can go into GPL-3.0 projects, but not into GPL-2.0-only ones.
  • Use it at workYesFree for personal and company use.
  • Sell what you build with itYesYou can sell apps and services that include it.
  • Keep your own code privateYesYou don’t have to share your code or your changes.
  • Put it in a closed-source appYesYou can ship it inside closed-source software.
  • Patent rightsYesThe authors give you rights to their patents in it. You lose them if you sue anyone claiming it infringes a patent.
  • Credit the authorsRequiredKeep the copyright, the license and the NOTICE file if there is one. Mark the files you changed.
  • It gives you no right to use their name or logo.
Read the full license (Apache-2.0) ↗

BSD 3-Clause License

PermissiveBSD-3-Clause

Short and permissive like MIT, plus a rule against using the authors’ names to promote your product.

Used by
Go, Django, NumPy
Watch out
Using their names in your marketing needs their written permission. No patent grant in its text.
  • Use it at workYesFree for personal and company use.
  • Sell what you build with itYesYou can sell apps and services that include it.
  • Keep your own code privateYesYou don’t have to share your code or your changes.
  • Put it in a closed-source appYesYou can ship it inside closed-source software.
  • Credit the authorsRequiredKeep the copyright and license notice in the copies you share.
  • Don’t use the authors’ names to promote your product without their written permission.
Read the full license (BSD-3-Clause) ↗

BSD 2-Clause License

PermissiveBSD-2-Clause

Close to MIT: keep the notice, and do almost anything.

Used by
FreeBSD (its own code)
Watch out
Its text has no patent grant.
  • Use it at workYesFree for personal and company use.
  • Sell what you build with itYesYou can sell apps and services that include it.
  • Keep your own code privateYesYou don’t have to share your code or your changes.
  • Put it in a closed-source appYesYou can ship it inside closed-source software.
  • Credit the authorsRequiredKeep the copyright and license notice in the copies you share.
Read the full license (BSD-2-Clause) ↗

ISC License

PermissiveISC

A shorter MIT: the same freedoms in fewer words.

Used by
OpenBSD, as its preferred license
Watch out
Its text has no patent grant.
  • Use it at workYesFree for personal and company use.
  • Sell what you build with itYesYou can sell apps and services that include it.
  • Keep your own code privateYesYou don’t have to share your code or your changes.
  • Put it in a closed-source appYesYou can ship it inside closed-source software.
  • Credit the authorsRequiredKeep the copyright and license notice in the copies you share.
Read the full license (ISC) ↗

Boost Software License 1.0

PermissiveBSL-1.0

Permissive. Source copies keep the notice, but compiled programs don’t need to carry it.

Used by
Boost C++ Libraries
Watch out
Not the Business Source License (BUSL), which has a similar short name and limits use.
  • Use it at workYesFree for personal and company use.
  • Sell what you build with itYesYou can sell apps and services that include it.
  • Keep your own code privateYesYou don’t have to share your code or your changes.
  • Put it in a closed-source appYesYou can ship it inside closed-source software.
  • Credit the authorsRequiredKeep the notice in source code you share. Compiled apps don’t need it.
Read the full license (BSL-1.0) ↗

zlib License

PermissiveZlib

Permissive, common in libraries and games. Mark changed versions, and don’t claim you wrote the original.

Used by
zlib, SDL
Watch out
Credit in your product is welcome, but not required.
  • Use it at workYesFree for personal and company use.
  • Sell what you build with itYesYou can sell apps and services that include it.
  • Keep your own code privateYesYou don’t have to share your code or your changes.
  • Put it in a closed-source appYesYou can ship it inside closed-source software.
  • Change itYes, with conditionsMark changed versions clearly, and don’t claim you wrote the original.
  • Credit the authorsRequiredKeep the notice in source code you share. Credit in your product is welcome, not needed.
Read the full license (Zlib) ↗

No conditions

Use it any way you like. You don’t even need to keep a notice.

The Unlicense

No conditionsUnlicense

Gives the work to the public domain, with a permissive license as a fallback.

Used by
yt-dlp (its source; its ready-made executables include GPL code)
Watch out
Some countries don’t let authors give up all rights, and the text says nothing about patents.
  • Use it at workYesFree for personal and company use.
  • Sell what you build with itYesYou can sell apps and services that include it.
  • Keep your own code privateYesYou don’t have to share your code or your changes.
  • Put it in a closed-source appYesYou can ship it inside closed-source software.
  • Credit the authorsNot neededYou don’t have to keep any notice.
Read the full license (Unlicense) ↗

Creative Commons Zero 1.0

No conditionsCC0-1.0

Creative Commons’ public domain dedication, with a fallback license where that isn’t possible.

Watch out
It says it gives no patent rights, so some companies avoid it for code. It is common for data.
  • Use it at workYesFree for personal and company use.
  • Sell what you build with itYesYou can sell apps and services that include it.
  • Keep your own code privateYesYou don’t have to share your code or your changes.
  • Put it in a closed-source appYesYou can ship it inside closed-source software.
  • Patent rightsNoThe license says it gives no patent rights.
  • Credit the authorsNot neededYou don’t have to keep any notice.
  • It gives you no right to use their name or logo.
Read the full license (CC0-1.0) ↗

MIT No Attribution

No conditionsMIT-0

MIT without the rule to keep the notice.

Watch out
Much rarer than MIT. If in doubt, read the license file.
  • Use it at workYesFree for personal and company use.
  • Sell what you build with itYesYou can sell apps and services that include it.
  • Keep your own code privateYesYou don’t have to share your code or your changes.
  • Put it in a closed-source appYesYou can ship it inside closed-source software.
  • Credit the authorsNot neededYou don’t have to keep any notice.
Read the full license (MIT-0) ↗

BSD Zero Clause License

No conditions0BSD

The ISC license without the rule to keep the notice.

Used by
Toybox
Watch out
Its text has no patent grant.
  • Use it at workYesFree for personal and company use.
  • Sell what you build with itYesYou can sell apps and services that include it.
  • Keep your own code privateYesYou don’t have to share your code or your changes.
  • Put it in a closed-source appYesYou can ship it inside closed-source software.
  • Credit the authorsNot neededYou don’t have to keep any notice.
Read the full license (0BSD) ↗

Weak copyleft

Your own code can stay closed. Changes to this project’s code stay open.

GNU Lesser General Public License 3.0

Weak copyleftLGPL-3.0

Made for libraries: closed-source apps may use the library, but changes to the library stay open.

Used by
Qt (most of it; some parts are GPL-only, and a paid license exists)
Watch out
On consumer devices you sell, users must be able to install a changed version of the library.
  • Use it at workYesFree for personal and company use.
  • Sell what you build with itYesYou can sell apps and services that include it.
  • Put it in a closed-source appYes, with conditionsYour app can link to it. Users must be able to swap in a changed library, so allow reverse engineering for that.
  • Keep your own code privateYes, with conditionsYour own code can stay closed. When you share copies, share the library’s source, with your changes.
  • Run it as an online serviceYesRunning it on your server is not sharing copies, so nothing extra applies.
  • Credit the authorsRequiredKeep the notices, include the license text, and say your app uses the library under the LGPL-3.0.
  • On consumer devices you sell, also give users the steps to install a changed library.
  • Some authors also sell a license with other terms. Ask them if these rules don’t fit.
Read the full license (LGPL-3.0) ↗

GNU Lesser General Public License 2.1

Weak copyleftLGPL-2.1

The older LGPL: closed-source apps may use the library, but changes to the library stay open.

Used by
FFmpeg (most of it), GTK
Watch out
If you link it statically, give users what they need to relink with their own version.
  • Use it at workYesFree for personal and company use.
  • Sell what you build with itYesYou can sell apps and services that include it.
  • Put it in a closed-source appYes, with conditionsYour app can link to it. Users must be able to swap in a changed library, so allow reverse engineering for that.
  • Keep your own code privateYes, with conditionsYour own code can stay closed. When you share copies, share the library’s source, with your changes.
  • Run it as an online serviceYesRunning it on your server is not sharing copies, so nothing extra applies.
  • Credit the authorsRequiredKeep the notices, include the license text, and say your app uses the library under the LGPL-2.1.
  • Some authors also sell a license with other terms. Ask them if these rules don’t fit.
Read the full license (LGPL-2.1) ↗

Mozilla Public License 2.0

Weak copyleftMPL-2.0

Copyleft per file: its files stay open, and your own files can stay closed.

Used by
Firefox, Syncthing
Watch out
When you share copies, share the source of its files, including your changes to them.
  • Use it at workYesFree for personal and company use.
  • Sell what you build with itYesYou can sell apps and services that include it.
  • Put it in a closed-source appYes, with conditionsYour own files can stay closed. Its files, and your changes to them, stay under the MPL-2.0.
  • Keep your own code privateYes, with conditionsYour own files can stay closed. When you share copies, share the source of its files, with your changes.
  • Run it as an online serviceYesRunning it on your server is not sharing copies, so nothing extra applies.
  • Credit the authorsRequiredKeep the copyright and license notices in its files.
  • It gives you no right to use their name or logo.
Read the full license (MPL-2.0) ↗

Eclipse Public License 2.0

Weak copyleftEPL-2.0

Copyleft per module: changes to its code stay open, and your separate modules can stay closed.

Used by
Eclipse IDE, Jakarta EE
Watch out
If you sell it in a product, your promises to buyers are yours alone, and you must defend its authors against claims caused by what you promised.
  • Use it at workYesFree for personal and company use.
  • Sell what you build with itYes, with conditionsPromises you make to buyers are yours. You must defend the authors against claims they cause.
  • Put it in a closed-source appYes, with conditionsYour own separate modules can stay closed. Its code, and your changes to it, stay under the EPL-2.0.
  • Keep your own code privateYes, with conditionsYour own files can stay closed. When you share copies, share the source of its files, with your changes.
  • Run it as an online serviceYesRunning it on your server is not sharing copies, so nothing extra applies.
  • Credit the authorsRequiredKeep the copyright and license notices in its files.
  • It gives you no right to use their name or logo.
Read the full license (EPL-2.0) ↗

Copyleft

If you share it, or an app built on it, you share the source too.

GNU General Public License 3.0

CopyleftGPL-3.0

Strong copyleft: share a program that includes it, and you share the whole source under the GPL.

Used by
Bash, GIMP, Ansible
Watch out
Running it as a website is not sharing. On consumer devices you sell, users must be able to install changed versions.
  • Use it at workYesRunning it inside your company is fine.
  • Sell what you build with itYes, with conditionsYou may charge for copies, but buyers get the full source and the same rights.
  • Keep your own code privateYes, with conditionsOnly while you don’t share copies. If you share your app, share its full source under the GPL-3.0.
  • Put it in a closed-source appNoIf you ship an app that includes it, the whole app must be under the GPL-3.0. Separate programs next to it are fine.
  • Run it as an online serviceYesRunning it on your server is not sharing copies, so nothing extra applies.
  • Credit the authorsRequiredKeep the notices and mark the files you changed.
  • Some authors also sell a license with other terms. Ask them if these rules don’t fit.
Read the full license (GPL-3.0) ↗

GNU General Public License 2.0

CopyleftGPL-2.0

The older GPL, with the same core rule: share the program, share the whole source.

Used by
Linux kernel, Git, WordPress
Watch out
GPL-2.0-only code can’t be combined with GPL-3.0 or Apache-2.0 code. Check for “or later”.
  • Use it at workYesRunning it inside your company is fine.
  • Sell what you build with itYes, with conditionsYou may charge for copies, but buyers get the full source and the same rights.
  • Keep your own code privateYes, with conditionsOnly while you don’t share copies. If you share your app, share its full source under the GPL-2.0.
  • Put it in a closed-source appNoIf you ship an app that includes it, the whole app must be under the GPL-2.0. Separate programs next to it are fine.
  • Run it as an online serviceYesRunning it on your server is not sharing copies, so nothing extra applies.
  • Credit the authorsRequiredKeep the notices and mark the files you changed.
  • Some authors also sell a license with other terms. Ask them if these rules don’t fit.
Read the full license (GPL-2.0) ↗

Network copyleft

Copyleft, and letting people use it over a network can count as sharing.

GNU Affero General Public License 3.0

Network copyleftAGPL-3.0

GPL-3.0 plus a network rule: if people use your changed version over a network, offer them its source.

Used by
Mastodon, Nextcloud, Grafana
Watch out
Some companies have a policy against AGPL code. Check yours before you build on it.
  • Use it at workYesRunning it inside your company is fine.
  • Run it as an online serviceYes, with conditionsIf you change it and let others use it over a network, offer them your version’s source. Unchanged needs nothing extra.
  • Sell what you build with itYes, with conditionsYou may charge, but users get the full source and the same rights.
  • Keep your own code privateYes, with conditionsOnly while you don’t share copies and don’t let others use a changed version over a network.
  • Put it in a closed-source appNoIf you ship an app that includes it, the whole app must be under the AGPL-3.0. Separate programs next to it are fine.
  • Credit the authorsRequiredKeep the notices and mark the files you changed.
  • Some authors also sell a license with other terms. Ask them if these rules don’t fit.
Read the full license (AGPL-3.0) ↗

European Union Public License 1.2

Network copyleftEUPL-1.2

The European Union’s copyleft license. Offering it over a network counts as sharing, even unchanged.

Used by
Most of the European Commission’s own software
Watch out
Combine it with code under a listed license, such as GPL-3.0 or MPL-2.0, and the combined work may use that license.
  • Use it at workYesRunning it inside your company is fine.
  • Run it as an online serviceYes, with conditionsLetting others use it over a network counts as sharing, even unchanged. Give them the source or a link to it.
  • Sell what you build with itYes, with conditionsYou may charge, but users get the source and the same EUPL rights.
  • Keep your own code privateYes, with conditionsOnly while you don’t share copies and don’t let others use it over a network.
  • Put it in a closed-source appCheck firstChanged versions stay under the EUPL. Combined with code under a listed license, the whole may use that one. Whether linking counts is debated.
  • Credit the authorsRequiredKeep the notices, include the license, and mark your changes with the date.
  • Some authors also sell a license with other terms. Ask them if these rules don’t fit.
Read the full license (EUPL-1.2) ↗

True for every license here

  • It comes with no promise that it works. You use it at your own risk.
  • This covers the project’s own code. Its dependencies, and folders like “ee”, may have other licenses.
  • The license can change between versions. The one in the version you use is what counts.

For information only, not legal advice. These are short summaries; the license text is what counts. For a business decision, ask a lawyer.