Exporting Passwords

I recently tried exporting my passwords as .csv but it saves them as.txt on my pc. I’ve tried manually changing the extension but when I try to import it says that it’s an invalid file. Could someone help please.
Thanks in an advance!