Package URL (purl) Parser and Builder
Check that a purl is valid and canonical, assemble one from its parts, or convert a manifest or lock file into purls ready for an SBOM.
S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho
…
Com es fa
- 1Choose a tab
Parse and validate, Build, or Manifest to purls.
- 2Paste purls
Enter one purl per line and select a line to see its components.
- 3Fix findings
Read the checks and use Replace with canonical forms if you want.
- 4Build a purl
Pick a type, fill the fields and add qualifiers with the quick buttons.
- 5Convert a manifest
Drop a manifest or lock file and confirm the detected format.
- 6Export
Download the purl list, the CSV or the CycloneDX components.
Sobre aquesta eina
A package URL, or purl, is a single string that names one software package in any ecosystem: pkg:npm/%40angular/[email protected], pkg:pypi/[email protected] or pkg:maven/org.slf4j/[email protected]. Software bills of materials in CycloneDX and SPDX use purls, vulnerability databases such as OSV and the GitHub Advisory Database key their records on them, and dependency scanners match on them. Because a purl is a compact grammar with type-specific rules, it is easy to get almost right. A missing namespace on a Maven purl, an upper-case PyPI name, a version range instead of an exact version or an unescaped @ in an npm scope will make a scanner silently miss a match. This tool parses with the algorithm from the specification, reports what is wrong and prints the canonical form. A builder assembles purls from fields, and a converter reads common manifests and lock files.
Parse and validate
Paste one purl per line. Each line is parsed right to left as the specification describes: subpath after the hash, qualifiers after the question mark, then scheme, type, version, name and namespace. The list marks lines as valid, needing a check, or invalid. Selecting a line shows the components, the canonical string and every finding, such as a namespace that Maven requires, a namespace that PyPI does not use, a qualifier key that appears twice, or a version that looks like a range. Canonical form lower-cases the type, applies type rules (PyPI names lower-cased with underscores turned into dashes, GitHub owners and repositories lower-cased, npm scopes percent-encoded), sorts qualifiers by key and drops empty ones. A registry link opens the package on npmjs.com, pypi.org, Maven Central, nuget.org, crates.io and other registries.
Build
Pick one of 25 types, read its note and example, then fill in namespace, name, version, qualifiers and subpath. Quick buttons add common qualifiers such as arch, distro, classifier, repository_url, checksum and download_url. The purl updates as you type and is checked with the same rules.
Convert a manifest
Drop package.json, package-lock.json, requirements.txt, pom.xml, Maven coordinate lines, go.mod, Cargo.toml, composer.json, a .csproj or packages.config, or Gemfile.lock. The format is detected from the name and content. Exact versions go into the purl; ranges such as ^3.23.8 are left out with a note, because a purl names one release. Export a text list, a CSV with the section of each package, or a CycloneDX components array.
Limits
The converter does not resolve version ranges, Maven property placeholders or parent POMs, so use a lock file or your build tool for complete, exact lists. It is not an SBOM generator and does not find transitive dependencies from a manifest. Type rules follow the published type definitions; less common types are checked only for general syntax.
Exemple resolt
A developer pastes pkg:maven/org.apache.xmlgraphics/[email protected]?repositorY_url=repo.spring.io/release&classifier=sources. The tool reports it valid but not canonical and prints pkg:maven/org.apache.xmlgraphics/[email protected]?classifier=sources&repository_url=repo.spring.io/release with the key lower-cased and the qualifiers sorted. pkg:maven/[email protected] is marked invalid because Maven needs the groupId as namespace. In the converter, a package.json with five dependencies gives 3 exact purls such as pkg:npm/%40tanstack/[email protected], while zod ^3.23.8 and @types/node ~20.14.10 become versionless purls flagged as ranges.
En resum
- Categoria: Desenvolupament i dades
- S'executa al navegador, sense registre, sense pujar res.
- La informació que introdueixes es queda al dispositiu.
- Disponible en anglès.
- Contingut revisat per última vegada:
- Font oficial: package-url purl specification (ECMA TC54)
Preguntes freqüents
What does canonical mean for a purl?
It is the one spelling that every tool should produce for the same package: lower-case type, type-specific case rules, percent-encoding where required and qualifiers sorted by key. Comparing canonical strings avoids false mismatches.
Why is the @ in an npm scope written as %40?
The @ sign separates the version, so inside the namespace it must be percent-encoded. pkg:npm/%40angular/[email protected] is the canonical form.
Can a purl hold a version range?
No. A purl identifies one exact release. Ranges belong in the vers specification or in your manifest; this tool warns when a version contains ^, ~, >, < or similar characters.
Which files can the converter read?
package.json, package-lock.json, requirements.txt, pom.xml, Maven coordinate lines, go.mod, Cargo.toml, composer.json, .csproj and packages.config, and Gemfile.lock.
Does it check for vulnerabilities?
No. It produces correct purls that you can feed into OSV, Dependency-Track or another scanner, which then do the vulnerability lookup.
Is my manifest uploaded?
No. Files are read and converted by your browser. Registry links only open when you click them.
