Your contacts are backed up to your Microsoft account. Log into outlook.com and you will find your contacts there in full and from there you can export your contacts as a file.
If you replace your Windows Phone with another, your contacts and calender will be synchronised when you log into your Microsoft account.