Every Node.js project starts with a package.json file describing its name, version, scripts and licence. This free package.json generator builds a clean, valid file from a simple form — no need to memorise the schema or fix trailing commas. Fill in the fields, copy the JSON, and save it as package.json in your project. Everything runs in your browser.
npm scripts
Generated package.json
How to Use
- Enter your package name, version and entry file.
- Add an optional description and author.
- Choose a licence and tick the npm scripts you need.
- Copy the generated JSON and save it as package.json.
Key Features
- Always produces valid JSON via built-in serialisation.
- Live preview updates as you type.
- Common npm scripts included with one click.
- One-click copy button.
FAQs
What is package.json?
It is the manifest file for a Node.js project, listing its metadata, dependencies and scripts. npm and yarn read it to install and run your project.
Is the output valid JSON?
Yes. The JSON is produced by the browser’s own serialiser, so it is always syntactically valid.
Can I add dependencies here?
This generator covers project metadata and scripts. Add dependencies with npm install once the file is in your project.