Since you didn't tell us what browser, this is just an overview.

Click File, Export. Choose Favorites/bookmarks. Pick a destination. They will all go at once.