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.
- includes all 254 country flags, 50 flags of the U.S. states, EU & UN
- completely free service over secure and fast HTTP2 CDN Cloudflare
- based on vector files from Wikimedia Commons
- PNG, WebP, SVG (best lossless compression) or JPEG (100% quality)
- always up-to-date flags (last update on January 2, 2024)
- we appreciate backlink to https://flagpedia.net
- PNG
- WebP
- SVG
- JPEG
- waving aspect ratio 4:3 for all flag icons
- original same width for all flag icons
- 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
Available sizes (width is fixed, height is variable)
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
Available sizes (height is fixed, width is variable)
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
- waving aspect ratio 4:3 for all flag icons
- original same width for all flag icons
- original same height for all flag icons
Available sizes
Embed on your website
Download programmatically
https://flagcdn.com Our free service
/16x12 Size
/ua ISO 3166 country code
.webp
Available sizes (width is fixed, height is variable)
Embed on your website
Download programmatically
https://flagcdn.com Our free service
/16x12 Size
/ua ISO 3166 country code
.webp
Available sizes (height is fixed, width is variable)
Embed on your website
Download programmatically
https://flagcdn.com Our free service
/16x12 Size
/ua ISO 3166 country code
.webp
- original same width for all flag icons
- original same height for all flag icons
Available sizes (width is fixed, height is variable)
Download programmatically
https://flagcdn.com Our free service
/16x12 Size
/ua ISO 3166 country code
.jpg
Available sizes (height is fixed, width is variable)
Download programmatically
https://flagcdn.com Our free service
/16x12 Size
/ua ISO 3166 country code
.jpg
Embed on your website
<img
src="https://flagcdn.com/ua.svg"
width="30"
alt="Ukraine">
Download programmatically
https://flagcdn.com Our free service/ua ISO 3166 country code.svg
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.