Guide

SPDX License Identifiers: Read MIT OR Apache-2.0

Short answer: an SPDX identifier is a short, standard name for a licence, such as MIT or Apache-2.0. An expression combines them, for example MIT OR Apache-2.0, which means you may choose either licence. Paste a file, a header or a LICENSE text into the License Finder and it picks out SPDX expressions, copyright lines and licence headers, and tells you how strong the evidence is.

What SPDX is

The SPDX License List, maintained by the Linux Foundation's SPDX project, gives each common licence a standard short identifier, a full name and a permanent page. Using the same identifier everywhere makes licences machine-readable and easy to compare. The official list is at spdx.org/licenses.

Reading an expression

  • MIT is a single licence.
  • MIT OR Apache-2.0 means the licensee may choose which one applies.
  • Other operators such as AND and WITH exist in the SPDX expression syntax, so read the whole line, not only the first name.

In source files, the identifier usually sits in a comment such as SPDX-License-Identifier: MIT.

What the License Finder detects

  • SPDX identifiers and expressions;
  • copyright lines;
  • licence headers and licence text.

It separates strong evidence (an explicit identifier or full licence text) from weaker evidence (a mention or a partial match), so you know how much weight to give each hit.

What it does not do

It is not legal advice. It does not judge whether two licences are compatible with each other or with your product, and it cannot tell you whether you comply. A missing licence is not a permission: code with no licence is not automatically free to use. When it matters, read the real text and ask a qualified person. For the dependencies themselves, see how to review dependency changes before a merge.

How to read an SPDX license identifier with the License Finder

  1. Open the License Finder.
  2. Paste the file, header, package.json licence field or licence text (up to 500,000 characters).
  3. Read the detected expressions and note the evidence strength.
  4. Check each identifier against the SPDX list and read the actual licence.

Limits to know

  • Detection only. No compatibility judgement and no legal conclusion.
  • Weaker evidence needs a human check.
  • Everything runs in your browser.

Frequently asked questions

What does MIT OR Apache-2.0 mean? The licensee can choose either licence.

What is an SPDX identifier? A standard short name for a licence, such as MIT.

Does the tool tell me if licences are compatible? No.

Is code without a licence free to use? Not automatically.

Where do I find the official identifiers? The SPDX License List.

Related tools and guides

Sources and further reading