Rightshold Sign up

Can I use GPL-2.0 code commercially?

Short answer: Selling or shipping a program with GPL-2.0 code: Yes. Running it as an online service without distributing it: Yes.

GPL-2.0 allows commercial use and sale; anyone you distribute the program to must get the complete source under GPL-2.0.

Selling or shipping a program with GPL-2.0 code: Yes

License: GNU General Public License v2.0 only (GPL-2.0-only, curated)

Duties: attribution, license_notice, state_changes, share_alike, source_disclosure

Running it as an online service without distributing it: Yes

License: GNU General Public License v2.0 only (GPL-2.0-only, curated)

Duties: attribution, license_notice, state_changes, share_alike, source_disclosure

Context

Sources

Check it yourself (free, no key)

{
  "tool": "check_license",
  "arguments": {
    "license": "GPL-2.0-only",
    "intended_use": {
      "commercial_use": true,
      "redistribution": true
    }
  }
}

Computed from Rightshold's license profiles; not legal advice. Updated 2026-10-23. JSON · Markdown