ISO 3166-1 Country <select> List HTML

November 2010

ISO 3166-1 is a comprehensive standard list of countries and territories around the globe. Web developers are quite used to this list as it is often used when gathering location information in web forms. Typing this all out or modifying an existing list is a pain though, so I thought I'd do myself a favour for the next time I'm asked to create such a list. If it helps you in your project, all the better. Use the three dropdown lists below to change the format of the HTML which is created.

Form Value:     Country name in

Generated <select> box

Generated HTML

Thank you to Wikipedia (once again) for the data.

Jon Combe