Embed this tool

Copy the code below and paste it into your website. The iframe loads only the tool — no header, sidebar, footer, or ads.

Off by default: the iframe keeps a fixed height and does not scroll internally; increase the height to fit the tool. Turn on to allow internal scrolling.

The area around the tool blends with your page; the tool card keeps its surface.

The iframe uses width 100% and height 600px. Adjust the height to fit the tool.

package.json Generator

Create or import a valid package.json with dependencies, scripts, metadata and module settings in seconds.

Import an existing package.json

Drop a package.json file here, choose one, or paste its contents. Fields the form does not edit are preserved unchanged in the output.

Importing replaces the current form values.

Project

Separate keywords with commas.

Prevents accidental publishing to npm.

Module and runtime

Separate entries with commas.

Links
Scripts

Commands left empty are omitted from the generated file.

Quick presets

Rows without a version are left out and flagged below.

Dependencies
Dev dependencies
Peer dependencies
Generated package.json package.json
{
  "name": "my-package",
  "version": "1.0.0",
  "license": "MIT"
}

About

  • Import an existing package.json by dropping a file, choosing one, or pasting its contents
  • Preserve top-level fields that the form does not edit, such as exports, bin or workspaces
  • Generate a valid package.json with name, version, license and author metadata
  • Add scripts, dependencies, dev dependencies and peer dependencies without touching JSON syntax
  • Validate npm package names and exact semantic versions as you type
  • Use quick presets for Node.js, TypeScript and Vite projects
  • Copy the result to the clipboard or download it as package.json
  • Runs entirely in your browser, so nothing you type leaves your device

FAQ

Tags: npmnodepackage-jsondependenciesjavascriptgenerator

Related Tools