← All license families

Apache 2.0

Apache License 2.0

PermissiveSPDX: Apache-2.0ScanCode: PermissiveOSI approved

In one sentence

Broad reuse — including inside proprietary products — in exchange for keeping notices intact.

What catches people out

  • Ships an express patent grant — and terminates it if you sue a contributor over patents in this work.
  • If the project has a NOTICE file, you must pass it along with your distributions.
  • You must mark files you changed.

Using Apache-2.0 code

You can

  • Use the code commercially, privately, and inside closed-source products
  • Modify it and distribute your modified version
  • Sublicense it as part of a larger work under your own terms

You must

  • Keep the original copyright notice and license text with copies you distribute
  • State the license of the incorporated code in your distribution or docs

You cannot

  • Strip required notices or claim you wrote the original work
  • Expect a warranty, support, or liability cover from the authors
  • Imply the authors endorse your product

This is not legal advice. Your obligations depend on how you use the code and your jurisdiction. Consult counsel for production risk.

Check a repository

Paste any public GitHub repository to see whether it really is Apache-2.0, with the evidence behind the answer.

Browse popular Apache-2.0 repositories →

The license itself

Other permissive licenses