This website uses cookies to track usage of this website and to deliver targetted advertising. Please read our Cookie Policy and Privacy Policy for further details of our usage. Continued use of this website indicates acceptance of our use of these cookies.

Timesaving country codes for online shops & forms

Timesaving country codes for online shops & forms

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.

ISO 3166 Country Codes Download


More Web Development, PHP, WordPress and Shopify Posts

Search Posts

Share on Social

Get in touch for a quick, free personalised web design quote

Need some help on your WordPress, Laravel or Shopify project?

Get A Web Quote