Hand-writing package.json from scratch means remembering exact field names and getting the JSON syntax right on the first try. This tool turns a few simple fields into a valid, correctly-structured file.
What Is the package.json Generator?
Fill in your package name, version, description, scripts, and dependencies, and get a complete, valid package.json ready to drop into your project.
How to Use It
- Open the tool at /tools/package-json-generator.
- Enter your project metadata and module type.
- List your scripts as
name: commandand dependencies asname@version, one per line. - Copy or download the generated package.json.
Key Features
- Simple line-based input for scripts and dependencies — no manual JSON nesting.
- CommonJS/ESM module type switch that sets the correct
typefield. - Private package toggle to block accidental
npm publish. - Direct download as package.json.
When to Use This Tool
- Bootstrapping a new Node.js project without copying an old package.json and editing around leftover fields.
- Standardizing scripts and metadata across multiple internal packages.
- Quickly sketching out dependency lists before running
npm install.
Try It Now
Open package.json Generator directly, or press ⌘K and type the tool name from anywhere on the site.
Part of the DevOps Tools collection on WebdevToolbox — free, browser-based developer tools with no login required.