Over a million developers have joined DZone.
Platinum Partner

Useful List of Countries for HTML, JSON, PHP, and MORE!

· Web Dev Zone

The Web Dev Zone is brought to you in partnership with Mendix.  Discover how IT departments looking for ways to keep up with demand for business apps has caused a new breed of developers to surface - the Rapid Application Developer.

The List Of Countries usage scenario is simple – this is the task that needs to be solved in a majority of applications.  No matter which programming language or data format you use in your application (or which language you speak, for that matter), this country list will suit your needs.

Formats Available:

  • Text
  • JSON
  • YAML
  • XML
  • HTML (Select, Flags)
  • CSV
  • SQL
  • PHP

For developers, this is the most common case, they simply need a country table for their database. There are few SQL dumps for each DBMS:

  • MySQL
  • PostgreSQL
  • SQLite
  • SQL Server


All formats are also available in multiple languages, and you can find the full language list here.

Country Flags

Thanks to the world-flags-sprite project,a special HTML version which includes country flags could be done. You can see the demo page here.

Requirements: None
Demo:http:/ / dev. umpirsky. com/ …all-data-formats/
License: Free

The Web Dev Zone is brought to you in partnership with Mendix.  Learn more about The Essentials of Digital Innovation and how it needs to be at the heart of every organization.


Published at DZone with permission of Hirvesh Munogee , DZone MVB .

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}