How can I merge multiple bookmark (html format) files?

Solution 1:

Try Bookmark Merger. It is a python module that will merge the bookmarks.html files generated by Firefox while removing duplicates.

Description:

Bookmark Merger is a Python library/module written mostly for the purpose of merging multiple bookmark files together. It works only with the bookmark.html files created by Firefox.

Solution 2:

So, you wish to merge multiple html files with possible duplicates without importing them in firefox ?

I'd say the easiest solution would be just that - import them in FF, get some extension to check for duplicates, delete those, and then export them again.

Solution 3:

Some update. As of 2015, independant third-party bookmarks merger tools may still work. Though none of those I've checked and tested handle tags or annotations thanks to a Fx limitation.

Now Firefox finally supports export/import tags and annotations starting with version 43 (my source and test. This allows to export/import any bookmarks' folder(s) you wanna keep, in place of replacing the whole lot, finally :)

Solution 4:

I have found the solution. In my opinion, the easiest way is: Let's say you have 100 bookmarks in Mozilla and 4 more files with bookmarks in json/html format. The idea is to have every file in html.

  • So, export the ones in Mozilla to html.
  • Delete them from Mozilla afterwards.
  • Show all bookmarks -> Import and backup -> Restore -> Choose file -> choose one of the json ones you have (if you don t have any, skip this step).
  • After that, export the newly acquired bookmarks to html and delete them from Mozilla.
  • Repeat as many times as needed.

Now, you only have .html bookmarks, a few files. Make sure all the bookmarks from within Mozilla are deleted and start importing the html (Import bookmarks from HTML). Do this for every html file, do not delete anything.

After that, simply arrange them, you will have multiple folders inside the bookmarks but it shouldn't take more than 5 minutes and manually delete the duplicates after sorting them by name.

And voilà, no software, no bookmarks lost, everything takes tops 15 minutes (and I had hundreds of bookmarks in 5 different html files).