Handy link — Export bookmarks [from] Safari…:
[Safari File menu] "Export Browsing Data to File". When you click it you'll be able to choose which data to export.
I've realised my Safari Bookmarks are incredibly cluttered with all kinds of things I no longer need. Now I can happily delete all the cruft.