License Compatibility Checker
Select the open source licences in your project and instantly see a compatibility matrix. Covers permissive, weak copyleft, strong copyleft, network copyleft, and public domain licences — with pair-by-pair explanations.
Frequently Asked Questions
Why are Apache-2.0 and GPL-2.0 incompatible?▼
Apache-2.0 includes an explicit patent termination clause (section 3): if a contributor brings a patent claim, their licence is automatically revoked. The GPL-2.0 does not contain equivalent language, and its section 6 requires that no additional restrictions be placed on recipients beyond those stated in the GPL itself. The FSF considers Apache-2.0's patent clause an 'additional restriction', making the two licences legally incompatible for distribution in a single combined work.
Can I use GPL-2.0 and GPL-3.0 code in the same project?▼
Not directly, unless the GPL-2.0 code is licensed 'version 2 or later' (written as GPL-2.0+). Pure GPL-2.0 code and GPL-3.0 code are incompatible versions that cannot be merged into a single distributed binary. Many projects explicitly state 'GPL-2.0-or-later' in their headers to allow this upgrade path. Check the actual licence header of each library — the SPDX identifier GPL-2.0-only indicates no upgrade is permitted.
What is the difference between LGPL, GPL, and AGPL?▼
All three are copyleft licences from the FSF with increasing restriction. LGPL (Lesser GPL) allows linking from proprietary software without triggering copyleft — only modifications to the library itself must be shared. GPL (General Public License) requires any software that incorporates GPL code to also be distributed under the GPL when distributed publicly. AGPL (Affero GPL) extends this to network use: if you run AGPL software as a service (SaaS) and users interact with it over a network, you must publish the source — even without distributing a binary.
What does 'file-level copyleft' mean for MPL-2.0?▼
The Mozilla Public License 2.0 applies copyleft only at the file level, not the project level. If you modify an existing MPL-2.0 file, that file and its modifications must remain under MPL-2.0. However, new files you create — even in the same project — can be under any licence, including proprietary. This makes MPL-2.0 a 'weak' copyleft that allows mixing with proprietary code more freely than GPL, as long as MPL-licensed files are kept in separate files.
Is CC0-1.0 really compatible with everything?▼
CC0-1.0 waives all copyright and related rights to the maximum extent permitted by law, placing the work as close to the public domain as legally possible. Since there are no restrictions on use, modification, or distribution, CC0 code can be incorporated into any project under any licence. Note: the FSF recommends against CC0 for software (preferring the Unlicense or MIT) because CC0 explicitly does not grant patent rights, whereas licences like MIT and Apache-2.0 do.
Related Products
on GumroadDeveloper Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →AI Prompt Engineering Toolkit
58 structured prompt templates for Claude, ChatGPT, and Gemini — organized by use case. Code Review, Debugging, Documentation, Architecture, and 10 model-specific tips. Stop writing prompts from scratch.
Buy on Gumroad →Developer Cheat Sheet Bundle
10 print-ready cheat sheets for the tools developers use every day: Git, Docker, Linux CLI, SQL, Regex, HTTP Status codes, VS Code shortcuts, Bash scripting, jq/JSON, and Markdown.
Buy on Gumroad →You Might Also Need
HTTP Security Headers Generator
Generate HTTP security headers configuration for nginx and Apache. Configure HSTS, CSP, X-Frame-Options, Referrer-Policy, and more with toggle switches. Copy ready-to-use configs.
Open free tool →
HTTP Security Headers Checker
Paste HTTP response headers and get a checklist of security headers present or missing. Checks CSP, HSTS, X-Frame-Options, and more.
Open free tool →
Content Security Policy Builder
Visual CSP builder with all directives. Generate Content-Security-Policy headers with source expressions, nonces, and report endpoints.
Open free tool →
More Free Tools
Related Articles
Web Security in 2026: CSP, CORS, and Modern Auth Patterns
Master content security policy, CORS configuration, and WebAuthn passkeys. Practical security patterns for modern web applications.
API Authentication Guide: JWT, OAuth 2.0 & API Keys 2026
API authentication guide 2026: JWT structure and validation, OAuth 2.0 flows (authorization code, client credentials), API key management, refresh tokens, and security best practices.
Authentication Security Tools 2026: Modern Auth Patterns, MFA, Passwordless, and OAuth2
Complete guide to authentication security tools in 2026. Covers Auth0, Clerk, NextAuth.js v5, JWT security, Passkeys/WebAuthn, TOTP authenticator apps, OAuth2/OIDC, session management, and building secure auth systems with Node.js and Python.
Cloud Security Hardening in 2026: Comprehensive Practices for Production Environments
Secure your cloud infrastructure with proven hardening practices. This guide covers IAM policies, network security, container security, secrets management, compliance automation, and the security tools that enterprise teams rely on in 2026.
DevSecOps Tools Checklist 2026: 20 Essential Tools for Shift-Left Security
Complete DevSecOps tools checklist for 2026. 20 essential SAST, DAST, SCA, secrets scanning, and container security tools with free/open-source options.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →