HomeFree Tools

CSV to WordPress XML converter

Turn a spreadsheet into a file that WordPress can import. Map your columns to titles, content, dates, categories and custom fields, check the problems, then download the XML. Nothing is uploaded.

Free, no sign upRuns in your browser

The first row must hold the column names. Your file stays on this computer.

Most blog and page moves start with a spreadsheet: an export from Webflow, a list from an old system, or a content plan that somebody filled in by hand. The importer that WordPress offers for posts and pages does not read a CSV. It reads its own XML file. This converter writes that file for you, and it lists the rows that need attention before anything reaches your site.

What does the XML file contain?

The format is called WXR, short for WordPress eXtended RSS. WordPress makes the same kind of file when you use Tools, then Export. It holds a list of authors, a list of categories and tags, and then one item for each post or page. This is where each column of your sheet goes:

Your columnPlace in the XML fileGood to know
TitletitleA row without a title is listed as a problem
Contentcontent:encodedHTML stays as it is, plain text becomes paragraph blocks
Excerptexcerpt:encodedMay be left empty
Datewp:post_dateYou say if 03/04/2026 means April or March
Slugwp:post_nameMade from the title when the cell is empty
Categories and tagscategory, with a nicenamePut a vertical bar between names that contain commas
Featured image URLAn attachment item and _thumbnail_idThe image must be online when you import
Anything elsewp:postmetaBecomes a custom field with the name you type

The file uses high id numbers, from 500001 up. If one image fails to download, its post then shows no picture, instead of an old picture that has the same low number. WordPress keeps those ids when they are free, so ids of new posts on that site will carry on from there.

How do you import it?

  • Make a backup, or use a staging copy of the site first.
  • In WordPress, open Tools, then Import. Under WordPress choose Install Now, then Run Importer.
  • Choose the XML file and press Upload file and import.
  • For each author, pick an existing user or create a new one. Choose an existing user if you do not want a new account.
  • Tick "Download and import file attachments" if your sheet has featured images.

The importer skips a post when the site already has one with the same title, date and post type. That is helpful when you run a file twice. It is a trap when two rows share a title and have no date, so the check list warns you about those rows.

If the server runs out of memory, the WordPress handbook suggests saving the file as several smaller files and importing them one by one. The converter does this for you: pick how many rows go into each file. The handbook also warns that a failed import may leave some content behind, so look through the site before you try again.

Put the full address of one image in a column, for example https://example.com/photos/tea.jpg, and match that column to Featured image URL. The converter writes the image as an attachment and points the post at it. During the import WordPress fetches each image from its address and gives the post the new attachment number.

Three things stop this from working: the box for attachments was not ticked, the image sits behind a login, or the address is not a direct link to a file. A shared Google Drive link opens a page, not a picture. Addresses that start with http are listed in the report, because they often move to https or go offline. Images inside the content keep their old address, so copy those across separately.

Can it fill custom post types and ACF fields?

Yes for custom post types, as long as the type exists on the new site before you import. The WordPress importer refuses items of a type it does not know. Type the machine name, such as book or recipe, not the label in the menu.

For Advanced Custom Fields, match the column to Custom field and type the field name. ACF also stores a reference from each value to the key of its field. To include it, add a second column with the same name and an underscore in front, for example _reading_time, and put the field key, such as field_64b1, in every row. This suits text, number and date fields. Repeaters, galleries and relationship fields hold more than one value, so test them with a single row or use a plugin.

When is a plugin the better choice?

Use this page when you move content once and do not want to install something on the target site. Use an import plugin such as WP All Import when the sheet changes every week, when existing posts must be updated, or when you have many related fields. Its Pro version can check a file on a schedule and add, edit or delete posts. For WooCommerce products, use the CSV importer that comes with WooCommerce, because prices, stock and variations do not fit a plain post.

A move of a full site is more than its posts. Old addresses need redirects, and forms, menus and templates have to be rebuilt. Our website redesign checklist covers those steps, and the WordPress and WooCommerce page shows how we handle the content and the redirects together.

Let's talk about your next project

Book a 30-minute call or send a brief. A founder replies within one working day.