Idempotent seed runner that fills a Payload database with ordered, cross-referenced content
WP2Payload
Migrates WordPress posts, pages, media, SEO and redirects into Payload
Installation
pnpm add wp2payload About
WP2Payload moves a WordPress site into Payload, including posts, pages, categories, tags, authors, media, SEO metadata and redirects. It reads from the live site over its REST API, from a WordPress export file, or from a backup. Block content is converted into rich text, and links between migrated posts keep working.
Content is cleaned against an allowlist, so hidden link farms, injected scripts and unknown iframes are removed and saved for review. Downloaded media is checked by its actual content and re-encoded. Running the migration again updates existing items instead of creating duplicates, and a report lists every skipped block, missing reference and security finding.
Package info
- Package name
wp2payload- Latest version
0.3.0- Unpacked size
- 1.2 MB
- License
- MIT
- Weekly downloads
- 503
- Last publish
- Nov 5, 2026
Similar tools
More in Data & migrationMigrates WordPress sites to Payload from a WXR export file
Converts WordPress WXR exports into Astro, Next.js, Payload or Pruvious projects
Runs create, update, delete and upsert on Payload collections from the terminal