![Timesaving country codes for online shops & forms Timesaving country codes for online shops & forms](https://signalfire.co.uk/image/gDcSxx0Ln2uYzuy6JO7bVf53IWfZhC5guKUBSqvk.jpg/760/428)
When developing a website or app you may find the need for codes to store a users country in a database or use in a form.
The ISO has a standard list of country codes (ISO 3166). These are available in formats called alpha-2 and alpha-3.
To prevent myself needing to generate these again I provide these as a list attached to this post. They're available below in both CSV format and as a PHP array for your use. Please feel free to download.