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.
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.
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 →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 →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 →You Might Also Need
Git Stash Manager
Visual reference for git stash commands. Copy-ready stash push, pop, apply, drop, list, and branch commands with stash index control. Free git stash cheat sheet.
Open free tool →
Open Source License Picker
Compare MIT, Apache 2.0, GPL, LGPL, AGPL, BSD, MPL, ISC, and Unlicense side by side. Filter by permission and choose the right license for your project.
Open free tool →
Git Cheatsheet Interactive
Searchable, interactive Git cheatsheet with 50+ commands. Filter by category, copy commands instantly. Covers setup, staging, branching, remotes, history, undo, and tags. Free.
Open free tool →
More Free Tools
Related Articles
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.
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.
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.
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.
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.
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 →