Use Bookmarks Synchronizer to generate an XBEL file from your Firefox bookmarks.
Upload your XBEL file and this page will transform it to OPML and return the result.
Note that you can exclude folders and/or bookmarks from being processed by changing the description to $#HIDDEN#$.