Embed country flag images over CDN (HTTP API)

Country flag images for embedding on your website or for programmatically download to keep flags in your projects up-to-date.

  • PNG
  • WebP
  • SVG
  • JPEG
  • Preview of the flag for download waving aspect ratio 4:3 for all flag icons
  • Preview of the flag for download original same width for all flag icons
  • Preview of the flag for download original same height for all flag icons

Available sizes

Embed on your website

<img
  src="https://flagcdn.com/16x12/ua.png"
  srcset="https://flagcdn.com/32x24/ua.png 2x,
    https://flagcdn.com/48x36/ua.png 3x
"
  width="16"
  height="12"
  alt="Ukraine">

Download programmatically

https://flagcdn.com Our free service /16x12 Size /ua ISO 3166 country code .png

List of codes with names in JSON (countries, U.S. states, EU & UN)

https://flagcdn.com Our free service/en Language/codes.json

For an interactive way of finding the right flag size, go to download flag icons.