Save 25% on Wizard’s SQL for WP w/ code: WIZARDSQL
Web Dev + WordPress + Security

Bookmark Exodus: Export the WordPress Blogroll and Import to

[ Image: Icon ] After our recent WordPress-2.1 blogroll debacle, we concluded that the WordPress Links Manager (aka the Blogroll) is no longer a viable, long-term solution for managing bookmark collections containing large numbers of links. A far better solution, in the eyes of many savvy web users, is the free social bookmarking service Using for over a year now, we have found it to be highly flexible, always reliable, and infinitely extensible. Plus, as a social bookmark service, everyone benefits from everyone and quality resources are much easier to find. The dec.isio.n to switching from the Blogroll to is, in our opinion, a no-brainer.

Exporting Links from the WordPress Blogroll

With that in mind, we set out to export our entire 700+ collection of links from the WordPress database and import them to As it turns out, the most difficult part of the migration is exporting the links from WordPress in a format that is recognized by Unfortunately, is very picky about acceptable formatting. From the “import/upload” page:

You can also use step 2 to upload bookmarks exported from or a different service, as long as they’re saved in a standard bookmarks format. … Note: uploading XML, Excel files, mp3s, or anything except bookmarks files probably won’t work.

Ouch, no XML. makes it perfectly clear that their current batch-upload feature only works with bookmarks exported directly from a browser (e.g., Firefox, Internet Explorer, Safari, Opera, etc.). Just about anything else simply won’t work. Fortunately, it is relatively simple to adapt the Netscape Bookmark File format1 to any exported set of WordPress Blogroll links.

For example, here is a set of common search-engine links formatted for easy import to any account:

<!DOCTYPE NETSCAPE-Bookmark-file-1>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>My Bookmarks</TITLE>
<DT><A HREF="" title="Google">Google</A></DT>
<DT><A HREF="" title="Yahoo!">Yahoo!</A></DT>
<DT><A HREF="" title="MSN">MSN</A></DT>
<DT><A HREF="" title="Ask">Ask</A></DT>

In our example, we have exported the links from our Blogroll category “Search Engines” and applied the requisite formatting for import. These links may now be tagged on the Import page as “Search Engines” and imported accordingly. Ideally, one would export each Blogroll category from WordPress, tag it with its category name, and upload it to Wash, rinse, repeat. Likewise, given a file size of less than 5MB, it would be possible to simply export the entire Blogroll, tag it as “Imported” (or whatever), and batch upload the entire collection in one fell swoop.

The trick, then, is formatting the exported Blogroll links with that archaic-looking Netscape markup. Simply query the links table in the WordPress database, apply the requisite markup, and display the formatted results. If this all sounds like way too much work for something that should be a piece of cake, don’t worry — it wasn’t that bad. The good news is that I am sharing the fruits of my labor by releasing the official Export Blogroll for plugin.

The Export Blogroll plugin makes exporting the Blogroll super-easy and provides several export options: “export by category”, “export only private links”, “export only public links”, and “export all links”. Simply make a selection, upload and activate the file, and grab a copy of the exported Blogroll via the WordPress Admin. Save it to a file, login to your account, and prepare for import..

Importing Blogroll Links to

With the help of the Export Blogroll plugin, you should now have at least one file (.txt works fine) prepared for import. To import your file, login to your account and go to the import/upload page ( Once there, click the “Browse” button to locate your file. Then, take a moment to tag the imported links, decide if you want to automatically add popular tags, and also decide if existing bookmarks should be replaced or not. That’s it — click the “import now” button to import your links.

It is also worth mentioning that each file upload takes around a minute or so, depending on file size. You may wish to use the time to export the next set/category of Blogroll links. And finally, take advantage of the “export/backup” feature ( and backup your bookmarks!


Jeff Starr
About the Author
Jeff Starr = Creative thinker. Passionate about free and open Web.
Banhammer: Protect your WordPress site against threats.
Perishable Press is operated by Jeff Starr, a professional web developer and book author with two decades of experience. Here you will find posts about web development, WordPress, security, and more »
Wizard’s SQL for WordPress: Over 300+ recipes! Check the Demo »
The Legend of Zelda: Tears of the Kingdom coming May 12, 2023. Absolutely pumped.
Favorite thing for breakfast is a tall glass of cold water. Hits the spot every time.
Fall is my favorite season :)
Still a few days left before “Unlimited” pro licenses are no longer available.
Getting back into it after a nice mini vacation. Time to ramp up and get busy.
Enjoy my 7-year hand-curated collection of free online tools for web dev and design.
Weapons required to rule the world: the weather, common cold, plenty of idiots.
Get news, updates, deals & tips via email.
Email kept private. Easy unsubscribe anytime.