WordPress XML Splitter (again!)

WordPress XML Splitter (again!)

In the last eight months or so I’ve been getting plenty of e-mails asking for a copy of the Python script I wrote ages ago. It basically takes in a large WP backup XML file and splits it in to chunks of less than 2mb. Apparently some tech blogs also linked to the previous website where the script was hosted but since that site is pretty much dead for some time the script also doesn’t exist. The Python script works well with all operating systems but I believe there are other alternatives for Windows users. For Mac users not comfortable with Terminal, I’ve wrapped up the script in an app using Platypus. I am putting up the script back here again together with the OS X app and both these files can be downloaded using the links below.

Python script

OS X application: WP XML Splitter

(Image Source:  Centennial Arts)

Share this Story:
  • facebook
  • twitter
  • gplus

About anasimtiaz


  1. Toby
    1868 days ago

    Hello Anasimtiaz,
    Thank you for this script. Unfortunately when I run it on a 36MB file it has generated 25,586 separate little files!

    • anasimtiaz
      1850 days ago

      If you still haven’t solved the problem I am happy to have a look to see what’s going wrong.

      • Valerie
        115 days ago

        I’m having the same issue Toby was having – I’m ending up with 40,000 tiny files. Help!

Leave a comment