I’ve used the Exporter.app by Chintan Ghate from the Mac App Store to export my Apple notes. I wasn’t moving off but wanted something separate for a backup. It isn’t fancy but it works pretty well. It will export to either html or markdown files.