> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scanoss.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Converting Results

> Transform SCANOSS scan results between different formats, including CycloneDX, SPDX Lite, and CSV.

After scanning your project, you can convert the resulting JSON output to other formats
for use with different tools, workflows, and stakeholders — without needing to re-scan
your codebase.

## The Convert Command

### Basic Syntax

```bash theme={null}
scanoss-py convert --input <input-file> --format <format> --output <output-file>
```

Run the following command to view all available options:

```bash theme={null}
scanoss-py convert --help
```

**Available output formats:**

* `cyclonedx` — CycloneDX Software Bill of Materials (SBOM)
* `spdxlite` — SPDX Lite SBOM (a licence-focused subset of the SPDX standard)
* `csv` — Comma-separated values (spreadsheet-compatible)

> **Note:** The `--format` flag value is case-sensitive and must be entered in lowercase
> as shown above.

### Convert to CycloneDX

Generate an SBOM in CycloneDX format:

```bash theme={null}
scanoss-py convert --input scan-results.json --format cyclonedx --output sbom.cdx.json
```

### Convert to SPDX Lite

Generate an SBOM in SPDX Lite format:

```bash theme={null}
scanoss-py convert --input scan-results.json --format spdxlite --output sbom.spdx.json
```

### Convert to CSV

Generate a comma-separated values file suitable for use in spreadsheet applications:

```bash theme={null}
scanoss-py convert --input scan-results.json --format csv --output results.csv
```
