Skip to main content

Open Source License Generator

Pick a license, enter your name and year, and get the complete LICENSE file text ready to paste into your repository. Covers MIT, Apache 2.0, GPL-3.0, BSD-3-Clause, ISC, and MPL-2.0.

✓ 6 major licenses ✓ SPDX identifiers ✓ GitHub-recognized format

Frequently Asked Questions

Which open source license should I choose?▼

MIT is the most popular choice — it's simple, permissive, and lets anyone use your code with attribution. Apache 2.0 is similar but adds patent protection, making it preferred by companies. GPL-3.0 is copyleft — anyone who distributes derived works must also use GPL. BSD-3-Clause is like MIT but adds a non-endorsement clause. ISC is functionally identical to MIT, just shorter. MPL-2.0 is file-level copyleft — modified files stay MPL, but you can link with proprietary code.

What is the difference between permissive and copyleft licenses?▼

Permissive licenses (MIT, Apache, BSD, ISC) allow anyone to use, modify, and redistribute your code — even in proprietary software — as long as they keep your copyright notice. Copyleft licenses (GPL, AGPL, MPL) require that derivative works also be distributed under the same license. Strong copyleft (GPL) covers the entire combined work; weak copyleft (MPL, LGPL) only covers the original files.

Do I need a license file on my GitHub repo?▼

Without a license, your code is under exclusive copyright by default — others cannot legally use, copy, or distribute it, even if it's public. Always add a LICENSE file to make your intent clear. GitHub won't show the license badge without a recognized LICENSE file in the root of your repository.

What is the Apache 2.0 patent grant?▼

Apache 2.0 includes an explicit patent license: contributors grant users a patent license for any patents they hold that are necessarily infringed by the contribution. If a contributor later sues you for patent infringement related to the project, your Apache license terminates. This makes Apache 2.0 safer than MIT when dealing with large corporations.

Can I use MIT-licensed code in a commercial product?▼

Yes. MIT, Apache 2.0, BSD, and ISC are all permissive licenses that explicitly allow commercial use. The only requirement is that you keep the original copyright notice and license text somewhere in your distribution (usually in a NOTICES file, LICENSE file, or About screen). You do NOT need to open-source your proprietary code when using MIT-licensed libraries.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Related Articles

Apr 2, 2026 · 8 min read

Best AI Code Review Tools 2026: CodeRabbit, Sourcery, DeepCode & Bito Compared

Compare top AI code review tools for 2026: CodeRabbit, Sourcery, DeepCode, and Bito. Features, pricing, GitHub/GitLab integration, and choosing the right tool for your team.

Mar 28, 2026 · 13 min read

Advanced Git Workflows in 2026: Worktrees, Bisect, Interactive Rebase, and More

Master advanced Git workflows that most developers never use. Git worktrees for parallel branches, git bisect for hunting bugs, interactive rebase for clean history, sparse checkout for monorepos, and power-user config tips.

Mar 28, 2026 · 15 min read

Aider AI: The Ultimate Terminal-Based AI Coding Assistant for 2026

Complete guide to Aider AI coding assistant. Setup, best practices, model options, and how this terminal-based tool compares to GUI editors for serious developer workflows.

Mar 28, 2026 · 10 min read

Conventional Commits and Commitlint: Complete Guide 2026

Master Conventional Commits and commitlint to automate changelogs, semantic versioning, and release workflows. Covers setup, configuration, CI/CD integration, and the full commitlint toolchain with real .commitlintrc examples.

Mar 27, 2026 · 17 min read

PocketBase vs Appwrite vs Directus vs Payload: Open Source Backend 2026

A deep comparison of PocketBase, Appwrite, Directus, and Payload CMS as open-source backends in 2026 — authentication, database, file storage, APIs, self-hosting, scaling, and which backend to choose for your next project.

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$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.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →