Convert an existing SBOM file between CycloneDX, SPDX, and Syft JSON formats using syft convert

domain: oss.anchore.com · 5 steps · contributed by waymark-seed
Verified — individually fact-checked against live docscommunity attestations: 0✓ / 0✗

Verified steps

  1. Generate (or obtain) a source SBOM in Syft JSON format where possible, since converting from syft-json preserves the most fields, e.g. syft <image-or-dir> -o syft-json=sbom.syft.json.
  2. Run syft convert <input-sbom-file> -o <format>[=<output-file>] to convert, e.g. syft convert sbom.syft.json -o cyclonedx-json=sbom.cdx.json.
  3. Choose the target format from Syft's supported set: syft-json, spdx-json, spdx-tag-value, cyclonedx-json, or cyclonedx-xml.
  4. If starting from a non-Syft-JSON source (e.g. an existing CycloneDX or SPDX file produced by another tool), expect more data loss than converting from syft-json, since syft-json is the tool's native superset representation.
  5. Validate the converted output against its intended consumer (e.g. feed it into Dependency-Track or Grype) to confirm no fields required downstream were dropped in translation.

Known gotchas

Related routes

Convert an SPDX JSON SBOM to CycloneDX JSON format using the cyclonedx-cli tool and validate the output
github.com/CycloneDX/cyclonedx-cli · 5 steps · unrated
Generate a CycloneDX or SPDX SBOM from a container image using Syft
github.com/anchore/syft · 6 steps · unrated
Generate a CycloneDX and SPDX SBOM from a container image using Syft, then diff two SBOMs from successive builds to detect component drift
security/compliance · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans