package.json Generator
Generate valid package.json files with presets, validation, and exports builder
Required
Quick-add common scripts:
Exports
Define conditional exports for ESM/CJS dual-package support.
No exports defined.
Dependencies
No entries yet. Click Add to start.
Dev Dependencies
No entries yet. Click Add to start.
Peer Dependencies
No entries yet. Click Add to start.
Was this tool helpful?
What is package.json Generator?
Generate complete package.json files using a guided form-based builder.
Fill in all standard fields including name, version, description, scripts, dependencies, author, license, repository, exports, and engine requirements. Start from 8 project presets: blank, Node.js CLI, React library, Next.js app, Express API, TypeScript library, monorepo root, and VS Code extension. Validates package names against npm rules and versions against semver. Real-time JSON preview with syntax highlighting. Import existing package.json files to edit. All processing runs in your browser.
How to Use package.json Generator
- 1Select a project preset or start from blank
- 2Fill in the form fields - name and version are required
- 3Add scripts, keywords, and configure engine requirements as needed
- 4Copy the generated package.json or download it as a file
Frequently Asked Questions
Related Tools
.gitignore Generator
Generate .gitignore files for any project - 50+ templates for languages, frameworks, IDEs, and OS
XML Sitemap Generator
Free online XML sitemap generator - generate XML sitemaps from a list of URLs
JSON Schema Generator
Free online JSON schema generator - generate JSON Schema from sample JSON data automatically
Robots.txt Generator
Free online robots.txt generator - generate robots.txt files to control search engine crawler access
Changelog Generator
Generate changelogs in Keep a Changelog format - version entries, semver, and diff links
Markdown Table Generator
Free online markdown table generator - create Markdown tables visually with an interactive editor