LICENSE

What is a .license file?

The legal terms under which a project's code can be used, modified, and redistributed — usually MIT, Apache 2.0, GPL, or BSD.

Safe format
Type Document
By N/A (developer convention)
MIME text/plain

Drop any file to identify it

No upload. No signup. No sending your file halfway across the internet.
We tell you what it is, right here in your browser.

What is it

Every open-source project should have one. A LICENSE file (sometimes LICENSE.md, LICENSE.txt, or COPYING) sits at the root of a repository and contains the legal text granting permission to use the code. Without one, the code is technically all-rights-reserved by default — even if it's published on GitHub, no one is legally allowed to use it. The LICENSE file is what turns "public code" into "open-source code".

The popular permissive licenses (MIT, Apache 2.0, BSD, ISC) all let users do basically anything with the code — use it commercially, modify it, redistribute it — as long as they include the original license and copyright notice. The copyleft licenses (GPL, AGPL, LGPL) add a requirement that derivative works must also be open-source under the same license. Choosing the right one depends on what you want to encourage: permissive licenses maximise adoption; copyleft licenses ensure improvements stay public. choosealicense.com is a useful guide.

GitHub detects LICENSE files and displays the license name on the repo page. The detection is filename-based — `LICENSE`, `LICENCE`, `LICENSE.md`, `LICENSE.txt`, and `COPYING` all work; anything more creative might not be recognised. The contents need to match a known license template (MIT, Apache 2.0, etc.) for GitHub to identify which license applies. Don't write your own legalese unless you have a lawyer — use a known template, fill in the year and copyright holder, and commit it to the repo.

Technical details
Full Name
License File
MIME Type
text/plain
Developer
N/A (developer convention)
Magic Bytes
N/A
Safety
.license is a known, safe format.
What opens it
Any text editor
FREE All
FAQ
What happens if a project on GitHub has no LICENSE file?
The code is all-rights-reserved by default. Anyone reading the code can do so, but they don't legally have permission to use, modify, or redistribute it. If you want others to use your code, add a LICENSE file. If you want to use someone else's project that has no license, ask the author to add one.
What's the practical difference between MIT and Apache 2.0?
Both are permissive. The main difference: Apache 2.0 includes an explicit patent grant (contributors can't sue you for patent infringement over code they contributed). For most small projects MIT is fine — for projects where patents matter (large companies, complex software) Apache 2.0 is the safer choice.
Related formats