From the top menu, select Bookmarks > Bookmark Manager, or press Option + Command + B on your keyboard.
In the window that opens, click on the Organize menu (three dots) in the blue bar in the upper-right-hand corner.
From the dropdown menu, select Export bookmarks.
Enter a name for your bookmarks file and choose a location to save it.