Skip to main content
Toolzum

package.json Validator

Validate package.json for required fields, semver format, and dependency presence. Catch missing fields and bad semver before installs fail — free, local, no signup.

100% Local Browser Native

How to Use the package.json Validator

1. Paste package.json

Full file content — name, version, dependencies intact.

2. Read field errors

Missing required fields and bad semver ranges flagged.

3. Fix before install

Correct version ranges and missing fields, then npm install clean.

Similar Tools You Might Need

See all

Frequently Asked Questions

What fields does it validate?

Presence of name, version, scripts, license and description; npm-style naming; exact semver for version; and syntax-checked ranges in dependencies, devDependencies, peerDependencies and optionalDependencies.

Does it check for security issues?

No — it checks field presence, naming and semver range syntax only. License and description are presence checks, not SPDX validation. Use npm audit for vulnerabilities.

Can it validate private packages?

Yes. Private package names (scoped with @scope/name) are validated correctly. The validator ensures the name follows npm naming conventions.

Does it check semver version ranges?

Yes for common npm syntax (^, ~, comparators, wildcards, hyphen and OR ranges). Dist-tags such as latest are rejected; registry resolution is not performed.

Last updated October 2026