License Detector Online

Identify a licence from its text (SPDX ID + similarity), parse and fix SPDX expressions, check dependency licences for your project, generate NOTICES.

Free tool: 20 requests per minute.

Result

Press “Run” to see the result.

op=detect (or just text): paste a LICENSE / COPYING file or a file header. The text is normalised like the SPDX matching guidelines (case, punctuation, bullets, copyright lines, British / American spellings) and compared with every licence of the SPDX License List (~700 texts) by word 3-gram Dice similarity: you get the best match with a confidence (exact ≥ 0.95, high, medium, low), the top candidates with how much of the text and of the licence is covered, multiple_licences when a file holds several (e.g. MIT + Apache-2.0), SPDX-License-Identifier tags and standard notices such as the Apache-2.0 or GPL "or any later version" headers.

op=parse with expression: "MIT OR (Apache-2.0 AND BSD-3-Clause)" becomes a tree with each licence’s category, OSI / deprecated flags and exceptions (WITH Classpath-exception-2.0); wrong names are corrected ("Apache 2" → Apache-2.0, "GPLv3" → GPL-3.0-or-later). op=check takes dependencies ([{name, license}] or {name: expression}), your project_license (an SPDX ID or proprietary), distribution (binary, source, saas, internal) and an optional policy (allow, deny, deny_categories): each dependency gets ok, conditions (attribution, NOTICE, file-level copyleft), warning, conflict, denied or unknown with reasons — e.g. GPL in a proprietary binary, AGPL in SaaS, Apache-2.0 under GPL-2.0-only; for OR the most permissive option is chosen.

op=notice turns packages ([{name, version, license, copyright, url}]) into a THIRD-PARTY-NOTICES text with each licence text once (format=text downloads it). op=info with id returns a licence (and its text with include_text=true); without id it lists the SPDX licences (q, category). Compatibility results are a reference, not legal advice.

Use this in your code

curl -X POST "https://apibox.io.vn/v1/spdx-license" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"op":"check","project_license":"proprietary","distribution":"binary","dependencies":[{"name":"react","license":"MIT"},{"name":"readline-sync","license":"GPL-3.0-only"},{"name":"sharp","license":"Apache-2.0"},{"name":"dual-lib","license":"GPL-2.0-only OR MIT"}]}'

API documentation → Get a free API key

FAQ

Why are GPL-3.0-only and GPL-3.0-or-later both 100 % similar?

They share the same text: the "only" or "or later" choice is in the file headers. Look at standard_notices or the SPDX-License-Identifier.

Is the compatibility check legal advice?

No. It applies common interpretations (e.g. FSF compatibility lists) and flags cases to review; ask a lawyer for important decisions.

Which licence list version is used?

The latest SPDX License List release, refreshed weekly; spdx_list_version is in every response.