Load your package.json, select node_modules, and get a license table, a notices file, and CycloneDX and SPDX SBOMs. Files are read in your browser and never uploaded.
This tool runs entirely in your browser. What you enter is never sent anywhere.Your input is never sent anywhere.
Details1. Add your package.json
How this SBOM generator and npm license checker works
A typical npm project pulls in anywhere from dozens to thousands of packages, each under its own license: MIT, Apache-2.0, ISC, GPL, and more. Before you ship, you need to know which licenses are in the tree, which notices they require, and whether a copyleft package slipped in. The EU Cyber Resilience Act (Regulation (EU) 2024/2847) adds another reason: manufacturers of products with digital elements must document their components in an SBOM, with the main obligations applying from December 11, 2027.
This tool reads the dependency list from your package.json, then reads the package.json and LICENSE file of every package inside the node_modules folder you select. From that it builds a license table, a LICENSES.txt notices file, and SBOMs in CycloneDX 1.5 and SPDX 2.3 JSON. Copyleft licenses (GPL, AGPL, LGPL, MPL, EPL, CDDL) and unknown licenses are flagged, and you choose whether devDependencies, peer, optional, and transitive packages are included.
Everything is processed in your browser. Your package.json and node_modules files are not sent to a server, so you can use it on private projects.
Where this fits in your release process
Pre-release license audit
List every license in your dependency tree before a release. Spot GPL or AGPL packages and packages that declare no license at all.
Preparing for the EU Cyber Resilience Act
If you sell into the EU, you can test your CycloneDX and SPDX export now, ahead of the December 11, 2027 date when the main obligations apply. Whether and how the Act covers your product is a question for counsel.
An open source licenses screen for your app
Generate the third-party notices text for an About screen, a docs page, or a LICENSES.txt that ships with your app.
Customer security questionnaires
When a customer or procurement team asks for a dependency list or an SBOM, produce a first draft file in the format they request.
How to export CycloneDX and SPDX files
- Paste your package.json into the box and click Load package.json, or choose the file.
- Click Select node_modules and pick the installed node_modules folder. The tool reads each package's package.json for its license, and its LICENSE file when one exists. Your browser may call this an upload, but the files stay on your device.
- Review the table. For any package marked UNKNOWN, pick a license from the dropdown. Remove rows you don't want and choose which dependency types to include.
- Open the License notices tab to copy or download LICENSES.txt, or the SBOM tab to download bom.cdx.json (CycloneDX) and sbom.spdx.json (SPDX).
Note: Without node_modules, every license shows as UNKNOWN and versions come from the ranges in package.json.
Limits of the license data
- Lockfiles are not read. The dependency list comes from package.json and the license data from the node_modules folder you select.
- Without node_modules, versions are taken from the ranges in package.json (for example, ^18.2.0 becomes 18.2.0), which may differ from what is installed. When you select node_modules, direct dependencies are updated to the installed version.
- Packages in node_modules that are not listed in package.json are labeled transitive, and the tool cannot tell whether they came from dependencies or devDependencies. For a production-only list, run
npm ci --omit=devand select that node_modules folder. - LICENSES.txt uses the text of each package's LICENSE file when one is found. Otherwise it contains only the license name, the author from package.json, and a link. Review it before you distribute it.
- Copyleft flags are a screening aid, not legal advice. Have your legal counsel confirm what each license requires of you.
- The SBOM files are generated from the data you load. This tool does not validate them against the official CycloneDX or SPDX schemas.
Open source licenses compared: MIT, Apache-2.0, GPL, AGPL
A quick reference for the licenses you will see most often. The full license text and your legal counsel decide what applies to you.
| License | Type | Commercial use | Source code obligations | Key point |
|---|---|---|---|---|
| MIT | Permissive | Yes | None | Short text. Keep the copyright and permission notice with copies. |
| Apache-2.0 | Permissive | Yes | None | Includes a patent grant. Modified files must carry notice of the change. |
| BSD-3-Clause | Permissive | Yes | None | Bars using the authors' names to endorse derived products. |
| ISC | Permissive | Yes | None | Functionally close to MIT, with shorter wording. |
| MPL-2.0 | Weak (file-level) copyleft | Yes, with conditions | Modified MPL-licensed files | Source obligations apply per file, not to your whole program. |
| LGPL-3.0 | Weak copyleft | Yes, with conditions | The library itself | How you link the library, and whether users can swap it, matters. |
| GPL-3.0 | Strong copyleft | Yes, with conditions | Can extend to the combined work you distribute | Often a blocker for closed-source distribution. |
| AGPL-3.0 | Strong copyleft | Yes, with conditions | Can extend to network use | If you modify it, users who reach it over a network must be offered the source. |
Copyleft in practice: what a copyleft license requires depends on how you combine the code (static or dynamic linking, modified or unmodified) and how you distribute or host it.
This table is a general summary. Versions and exceptions differ, so read the license text and confirm with your legal counsel.
SBOM basics: formats, the EU CRA, and unknown licenses
Background that helps when you prepare an SBOM or review a dependency license report.
Start with the license inventory, then export the SBOM
The hard part of an SBOM is knowing which packages are in your product, at which versions, under which licenses. Once that inventory is accurate, writing it out as CycloneDX or SPDX is a mechanical step. So read your node_modules first, fix the UNKNOWN entries, and treat the SBOM files as the output of that review.
What the EU Cyber Resilience Act says about SBOMs
The Cyber Resilience Act is Regulation (EU) 2024/2847. Its vulnerability and incident reporting obligations started on September 11, 2026, and the main obligations apply from December 11, 2027. Annex I, Part II requires manufacturers to document the components in their product, including an SBOM in a commonly used, machine-readable format that covers at least the top-level dependencies.
This tool covers JavaScript packages found in node_modules only. Native libraries, firmware, and other components need other tooling. Whether the Act applies to your product depends on its scope, so check the regulation or ask counsel.
CycloneDX vs SPDX
CycloneDX is an OWASP project and is common in security and vulnerability-management tools. SPDX is maintained under the Linux Foundation, was published as ISO/IEC 5962:2021, and has a long record in license compliance.
This tool exports CycloneDX 1.5 and SPDX 2.3 JSON from the same data, so you can send whichever format the recipient asks for.
Fixing packages whose license shows as UNKNOWN
The tool reads the license string, a license object with a type, or a licenses array from each package.json. If none of those is present, the license shows as UNKNOWN. Some packages also use values like SEE LICENSE IN LICENSE, which the tool keeps as written.
Open the package's repository or npm page, read its license, and choose it from the dropdown. If there are many, start with your direct dependencies and the packages you rely on most. The Unknown only filter shows what is left.
Common mistakes when listing npm licenses
Reading licenses from your own package.json
Your project's package.json lists dependency names and version ranges, not the licenses of those dependencies. A list built from it alone has no license data, so it can't answer the audit question.
💡 See the solution▼
Sending build tools to a customer in a production SBOM
Test runners, bundlers, and linters in devDependencies don't ship with your product, but they can end up in the SBOM and trigger extra questions from the recipient.
💡 See the solution▼
Missing a GPL or AGPL package deep in the tree
A copyleft package can arrive indirectly, several levels below a dependency you chose. If you only look at direct dependencies, you won't see it until someone points it out after release.
💡 See the solution▼
Letting the SBOM go stale
An SBOM made once at release stops matching the product as soon as you update or add a dependency. Using an outdated file in a vulnerability review can send you in the wrong direction.
💡 See the solution▼
SBOM and npm license FAQ
Q.What is an SBOM, and why would I need one?
A. An SBOM (software bill of materials) is a machine-readable list of the components inside a piece of software: package names, versions, and licenses. Teams use it to find out quickly whether a newly disclosed vulnerability affects a product, and to show which licenses they ship. Some customers ask for one during security reviews, and the EU Cyber Resilience Act requires manufacturers of products with digital elements to document components in an SBOM.
Q.Should I use CycloneDX or SPDX?
A. Use whichever format the recipient asks for. CycloneDX comes from OWASP and is common in security tooling. SPDX comes from the Linux Foundation and has a long history in license compliance. If nobody has specified a format, CycloneDX is a reasonable starting point. This tool builds both from the same data: CycloneDX 1.5 JSON (bom.cdx.json) and SPDX 2.3 JSON (sbom.spdx.json).
Q.Can I get the licenses of my dependencies from package.json alone?
A. No. Your project's package.json lists the names and version ranges of your dependencies, not their licenses. The license of each dependency is declared in that package's own package.json inside node_modules. Select your node_modules folder and the tool reads the license field of every installed package. Without it, every license shows as UNKNOWN. This tool does not read lockfiles.
Q.Does selecting node_modules upload my files?
A. No. The tool reads the files in your browser and the code does not send them anywhere. Your browser may show a prompt that says "upload" when you pick a folder; that wording comes from the browser, and the files stay on your device. You can confirm this by watching the Network tab in your browser's developer tools while you scan.
Q.How does the tool flag copyleft licenses?
A. It flags GPL, AGPL, LGPL, MPL, EPL, and CDDL licenses, including identifiers such as GPL-3.0-only and GPL-3.0-or-later. For an expression like (MIT OR GPL-3.0-only), the package is flagged only if every option is copyleft, since you can choose the permissive one. For an AND expression, it is flagged if any part is copyleft. The flag is a screening aid. What a license requires of you depends on how you use and distribute the package, so ask your legal counsel before relying on it.
Q.Should devDependencies be in an SBOM?
A. Usually not, if the SBOM describes what you ship. The devDependencies toggle is off by default. One catch: packages found in node_modules that are not listed in your package.json are labeled transitive, and the tool cannot tell whether they were pulled in by dependencies or by devDependencies. For a production-only SBOM, run npm ci --omit=dev and select that node_modules folder. If the recipient asks for build tooling too, turn the toggle on.
Q.Does the notices file contain the full license text?
A. When a package has a LICENSE, LICENCE, or COPYING file in its folder, the tool copies that text into LICENSES.txt. For packages without one, it writes the license name, the author from package.json when present, and a link to the SPDX page. You can switch off the full-text option on the License notices tab. Read the result before you ship it.
Q.Can I submit the generated SBOM as is?
A. Treat it as a first draft. The tool builds the files from the data you load and does not validate them against the official CycloneDX or SPDX schemas. Check that no UNKNOWN licenses remain, confirm the versions are the ones you ship, and run the files through a validator if the recipient requires one.
Your feedback
makes this tool better.
Tell us which features you'd like, what should be fixed, or which new tool you'd like to see. An engineer reads every submission and uses it to guide development.