WordPress to Ghost Converter
Convert WordPress XML (WXR) exports to Ghost-compatible JSON files. Preserves posts, pages, tags, authors, and images. Free client-side migration tool.
Click to upload or drag your WXR (.xml) file here
Standard WordPress Export Format supported
Conversion Log
About
Migrating from WordPress to Ghost can be complex because their data structures differ significantly. This tool automates the transformation of a WordPress WXR (XML) export file into a Ghost 2.0+ (JSON) import file.
The converter parses the XML DOM, extracting posts, pages, tags, and authors. It intelligently maps WordPress statuses (e.g., publish → published), preserves publication dates, and attempts to link feature images if the attachment metadata is present in the export.
Formulas
The conversion relies on specific mapping logic to ensure data integrity. The simplified logical flow for a single post entity is:
Users are deduplicated based on the dc:creator field. Since WordPress exports often lack email addresses (required by Ghost), we generate a placeholder: slug@example.com.
Reference Data
| Entity | WordPress Field (XML) | Ghost Field (JSON) | Notes |
|---|---|---|---|
| Post Title | title | title | Plain text copy |
| Content | content:encoded | html | Ghost parses HTML content |
| Slug | wp:post_name | slug | Cleaned and normalized |
| Date | pubDate | published_at | Converted to ISO 8601 |
| Author | dc:creator | users | Mapped via lookup table |
| Image | _thumbnail_id | feature_image | Resolved via attachment URL |
| Tags | category / tag | tags | Unified into single list |