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 locallyTool
About this tool
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
Affiliate disclosure
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
FAQ
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.
Related tools