Open Source Compliance

SPDX Expression Validator

Enter an SPDX license expression to validate syntax, operator precedence, and identifier correctness. Supports AND/OR/WITH operators, LicenseRef- custom identifiers, and deprecation flags.

No data is transmitted โ€” everything runs locally

SPDX Expression Validator

The SPDX Expression Validator checks SPDX license expression syntax including AND/OR/WITH operators, LicenseRef identifiers, and deprecated identifier flags.

โ€ข Validate a compound SPDX expression before writing it to a package.json or Cargo.toml

โ€ข Check AND/OR operator precedence in a complex multi-license expression

โ€ข Validate a WITH exception expression for GPL + Classpath exception

โ€ข Verify a LicenseRef- identifier is syntactically correct for a custom license

Credential and secrets management for teams. 1Password provides enterprise password management and secrets infrastructure for development teams.
View supply chain credentials with 1Password
External site ยท Independent provider ยท We may receive a commission ยท Not a recommendation
What does this tool tell you?
The SPDX Expression Validator checks SPDX license expression syntax including AND/OR/WITH operators, LicenseRef identifiers, and deprecated identifier flags.
What affects the result most?
Validates SPDX license expression syntax: 'MIT AND Apache-2.0', 'GPL-2.0-only OR MIT'. AND/OR/WITH operator precedence: AND binds tighter than OR โ€” parentheses recommended for clarity. WITH exceptions: 'GPL-2.0-only WITH Classpath-exception-2.0' โ€” exception must be paired with compatible base license.
How should I use the result?
Treat the tool's output as a first-pass check, not a proof of correctness. A clean pass means no issues in the patterns this tool recognizes; a failure points to a specific problem you can investigate in your source. The underlying spec is the authoritative source for edge cases.
Supply chain CI health visibility. Better Stack for open source compliance teams monitoring dependency scan pipelines and SBOM generation.
View monitoring options โ†’
External site ยท Independent provider ยท We may receive a commission ยท Not a recommendation