scoutbeetle
    ↑↓ move↵ openesc close

    Pick the right open-source licence.

    Answer up to three questions. You get one licence, the reason for it, how it compares with the others, and the lines to paste into your project.

    • Runs in your browser
    • No sign-up
    • Nothing is uploaded

    Question 1 of 3

    1May others use your code inside closed-source products?
    1Should they keep your name and copyright notice?
    1Do you want an explicit patent grant?
    1What must stay open when someone changes it?
    1Does running it as a hosted service count as sharing it?
    Recommended

    MITPermissive

    Closed-source use
    Patent grant
    Must share changes
    Used by

    Read the full licence text ↗
    Common open-source licences compared
    LicenceTypeClosed-source usePatent grantKeep noticeShare changes
    0BSDZero-Clause BSDPublic domain-like––No
    MITMIT LicensePermissive–No
    BSD-3-ClauseBSD 3-ClausePermissive–No
    Apache-2.0Apache License 2.0PermissiveNo
    MPL-2.0Mozilla Public License 2.0Weak copyleftChanged files
    LGPL-3.0GNU LGPL 3.0Weak copyleftThe library
    GPL-3.0GNU GPL 3.0Strong copyleft–Whole project
    AGPL-3.0GNU AGPL 3.0Strong copyleft–Whole project, also when hosted

    Guidance, not legal advice. Facts follow choosealicense.com and the SPDX licence list.

    How it works

    1. 1Answer the questions

      Only the ones that matter for your earlier answers are shown.

    2. 2Read the recommendation

      One licence, in plain words, with close alternatives and projects that use it.

    3. 3Copy what you need

      An SPDX header, the package.json field and a README section, with your name filled in.

    Questions

    Is this legal advice?

    No. It is a short guide based on the common reading of each licence. For anything with real money or many contributors involved, ask a lawyer.

    What is the difference between GPL and AGPL?

    Both require sharing the source when you distribute the software. The AGPL also counts offering it to users over a network, so a hosted service built on AGPL code must publish its changes.

    Can I change the licence later?

    For code you wrote alone, yes. Once others have contributed, you need their agreement (or a contributor licence agreement) to relicense their parts. Versions already released keep their licence.

    What is an SPDX identifier?

    A short standard name for a licence, like MIT or Apache-2.0. Package managers, scanners and GitHub read it to know your licence without parsing the full text.

    More free tools