Open Source Licence Picker and File Header Generator
Answer a few questions about patents, copyleft and commercial use to get a licence suggestion, then write the SPDX source file header comment for it.
- Free
- No sign-up
- Works on any device
About Open Source Licence Picker and File Header Generator
Answer a few questions to get a licence suggestion: should others be able to use your code in closed products, must changes to your files stay open, should the whole program stay open, does it run as a web service, and do you need an express patent grant. The page suggests one licence with alternatives, compares twelve common ones in a table, then writes the file header for the licence you pick, as short SPDX tags or, for Apache-2.0 and GPL-3.0, the standard notice, in the comment style of your language. It is general information, not legal advice.
How to use Open Source Licence Picker and File Header Generator
- Answer the questions about sharing, patents and public domain to see the suggested licence.
- Pick the licence for the header (or keep the suggestion) and type the copyright holder and year.
- Choose the comment style of your language and copy the header to the top of your source files.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
Also known as
Frequently asked questions
What is an SPDX identifier?
A short standard name for a licence, such as MIT or Apache-2.0, taken from the list at spdx.org/licenses. Tools and package registries read the SPDX-License-Identifier line to find a file's licence.
MIT or Apache-2.0?
Both are permissive. Apache-2.0 adds an express patent licence and a clause that ends it if the user sues over patents, at the cost of a longer text and some compatibility limits with GPL-2.0-only code.
Do I still need a LICENSE file?
Yes. Put the full licence text in a LICENSE file at the top of the repository. The per-file header is a short pointer that stays with the file when it is copied elsewhere.
Is Open Source Licence Picker and File Header Generator free?
Yes. Open Source Licence Picker and File Header Generator on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.