LicensePlain 中文 visits —
Home / Licences / zlib License
PermissiveSPDX ZlibOSI approvedFSF free

zlib License

A short permissive licence that also forbids removing the origin notice and requires altered versions to be marked as altered.

Commercial useYes — commercially, without asking.

You may sell products that contain this code, charge for them and keep the revenue. No royalty is owed and no permission is needed.

What you can do

  • sell a product that uses it
  • ship it inside a closed-source product
  • link or bundle it with proprietary code
  • relicense your own code however you like

What you must do

  1. keep the copyright and permission notice in every copy
  2. mark the files you changed

What you cannot do

  • count on a patent licence
  • modify it without marking the changes

Where it fits

Compression and low-level C libraries.

The thing people get wrong

It is GPL-compatible and extremely short — often pasted for tiny C libraries.

Not legal advice. Read the licence file in the repository you are actually using; this page summarises the published text.

Related

Can I use it commercially?Full licence text

Questions

Can I use zlib License 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.

Do I have to keep the copyright notice?

Keep the notice; do not misrepresent the origin of the software; mark altered source versions plainly as altered.

Do I have to publish my changes?

No. Nothing in this licence reaches your modifications.

Is zlib License OSI approved and FSF free?

OSI: Yes. FSF: Yes.

What do people get wrong about zlib License?

It is GPL-compatible and extremely short — often pasted for tiny C libraries.