A simple HTML country selector you can copy and paste into any form. No JavaScript, no framework, no dependencies. This html country selector is ideal for contact forms, signup pages, checkout, and CRS country selector requirements.
Features: pure HTML select element, works without JavaScript, compatible with all browsers, easy to customize labels and values.
Example: HTML Country Dropdown
<select name="country" id="country">
<option value="">Select a country</option>
<option value="US">United States</option>
<option value="GB">United Kingdom</option>
<option value="CA">Canada</option>
<option value="AU">Australia</option>
</select>
You can freely change option values to use ISO-2, ISO-3, or full country names depending on your backend requirements.
Why use a static HTML country selector? Faster page load, zero runtime errors, ideal for static sites and server-rendered forms. If you need dynamic region support, see the JavaScript country picker.