package.json Generator
LOCAL · Browser-OnlyGenerate 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
What project presets are available?
Does it validate the package name?
Can I import an existing package.json?
Does it support the exports field?
How is this different from running npm init?
Are name and version the only required fields?
Related Tools
.gitignore Generator
Generate .gitignore files for any project - 50+ templates for languages, frameworks, IDEs, and OS
Json schema from json
Free online JSON schema generator - generate JSON Schema from sample JSON data automatically
Search engine crawler control
Free online robots.txt generator - generate robots.txt files to control search engine crawler access
Env validator
Edit and validate .env files online - detect duplicates, mask secrets, generate .env.example
Keep a changelog
Generate changelogs in Keep a Changelog format - version entries, semver, and diff links
Docker multi-stage build
Generate production-ready Dockerfiles for 18 stacks - multi-stage builds, best practices included
Ci cd generator
Free online github actions generator - generate CI/CD workflow YAML files from templates
Json path
Free online JSON path finder - navigate JSON and click to copy the path to any value
Keep reading: JSON Syntax Cheat Sheet and .gitignore templates reference. Doing this in code instead? See the JSON and data endpoints.