A collection of all country flags in SVG — plus the CSS for easier integration. See the demo

For using the flags inline with text add the classes .flag-icon and .flag-icon-xx (where xx is the ISO 3166-1-alpha-2 code of a country) to an empty . If you want to have a squared version flag then add the class flag-icon-squared as well. Example:

<span class="flag-icon flag-icon-gr"></span>
<span class="flag-icon flag-icon-gr flag-icon-squared"></span>
AF Afghanistan
Kabul
Afghanistan Flag
AX Aland Islands
Mariehamn
Aland Islands Flag
AL Albania
Tirana
Albania Flag
DZ Algeria
Algiers
Algeria Flag
AS American Samoa
Pago Pago
American Samoa Flag
AD Andorra
Andorra la Vella
Andorra Flag
AO Angola
Luanda
Angola Flag
AI Anguilla
The Valley
Anguilla Flag
AG Antigua and Barbuda
St. John's
Antigua and Barbuda Flag
AR Argentina
Buenos Aires
Argentina Flag
AM Armenia
Yerevan
Armenia Flag
AW Aruba
Oranjestad
Aruba Flag
AU Australia
Canberra
Australia Flag
AT Austria
Vienna
Austria Flag
AZ Azerbaijan
Baku
Azerbaijan Flag
BS Bahamas
Nassau
Bahamas Flag
BH Bahrain
Manama
Bahrain Flag
BD Bangladesh
Dhaka
Bangladesh Flag
BB Barbados
Bridgetown
Barbados Flag
BY Belarus
Minsk
Belarus Flag
BE Belgium
Brussels
Belgium Flag
BZ Belize
Belmopan
Belize Flag
BJ Benin
Porto-Novo
Benin Flag
BM Bermuda
Hamilton
Bermuda Flag
BT Bhutan
Thimphu
Bhutan Flag
BO Bolivia (Plurinational State of)
Sucre
Bolivia (Plurinational State of) Flag
BQ Bonaire, Sint Eustatius and Saba
Kralendijk
Bonaire, Sint Eustatius and Saba Flag
BA Bosnia and Herzegovina
Sarajevo
Bosnia and Herzegovina Flag
BW Botswana
Gaborone
Botswana Flag
BR Brazil
Brasília
Brazil Flag
IO British Indian Ocean Territory
Diego Garcia
British Indian Ocean Territory Flag
BN Brunei Darussalam
Bandar Seri Begawan
Brunei Darussalam Flag
BG Bulgaria
Sofia
Bulgaria Flag
BF Burkina Faso
Ouagadougou
Burkina Faso Flag
BI Burundi
Bujumbura
Burundi Flag
CV Cabo Verde
Praia
Cabo Verde Flag
KH Cambodia
Phnom Penh
Cambodia Flag
CM Cameroon
Yaoundé
Cameroon Flag
CA Canada
Ottawa
Canada Flag
KY Cayman Islands
George Town
Cayman Islands Flag
CF Central African Republic
Bangui
Central African Republic Flag
TD Chad
N'Djamena
Chad Flag
CL Chile
Santiago
Chile Flag
CN China
Beijing
China Flag
CX Christmas Island
Flying Fish Cove
Christmas Island Flag
CC Cocos (Keeling) Islands
West Island
Cocos (Keeling) Islands Flag
CO Colombia
Bogotá
Colombia Flag
KM Comoros
Moroni
Comoros Flag
CK Cook Islands
Avarua
Cook Islands Flag
CR Costa Rica
San José
Costa Rica Flag
HR Croatia
Zagreb
Croatia Flag
CU Cuba
Havana
Cuba Flag
CW Curaçao
Willemstad
Curaçao Flag
CY Cyprus
Nicosia
Cyprus Flag
CZ Czech Republic
Prague
Czech Republic Flag
CI Côte d'Ivoire
Yamoussoukro
Côte d'Ivoire Flag
CD Democratic Republic of the Congo
Kinshasa
Democratic Republic of the Congo Flag
DK Denmark
Copenhagen
Denmark Flag
DJ Djibouti
Djibouti
Djibouti Flag
DM Dominica
Roseau
Dominica Flag
DO Dominican Republic
Santo Domingo
Dominican Republic Flag
EC Ecuador
Quito
Ecuador Flag
EG Egypt
Cairo
Egypt Flag
SV El Salvador
San Salvador
El Salvador Flag
GB-ENG England
London
England Flag
GQ Equatorial Guinea
Malabo
Equatorial Guinea Flag
ER Eritrea
Asmara
Eritrea Flag
EE Estonia
Tallinn
Estonia Flag
ET Ethiopia
Addis Ababa
Ethiopia Flag
FK Falkland Islands
Stanley
Falkland Islands Flag
FO Faroe Islands
Tórshavn
Faroe Islands Flag
FM Federated States of Micronesia
Palikir
Federated States of Micronesia Flag
FJ Fiji
Suva
Fiji Flag
FI Finland
Helsinki
Finland Flag
FR France
Paris
France Flag
GF French Guiana
Cayenne
French Guiana Flag
PF French Polynesia
Papeete
French Polynesia Flag
TF French Southern Territories
Saint-Pierre, Réunion
French Southern Territories Flag
GA Gabon
Libreville
Gabon Flag
GM Gambia
Banjul
Gambia Flag
GE Georgia
Tbilisi
Georgia Flag
DE Germany
Berlin
Germany Flag
GH Ghana
Accra
Ghana Flag
GI Gibraltar
Gibraltar
Gibraltar Flag
GR Greece
Athens
Greece Flag
GL Greenland
Nuuk
Greenland Flag
GD Grenada
St. George's
Grenada Flag
GP Guadeloupe
Basse-Terre
Guadeloupe Flag
GU Guam
Hagåtña
Guam Flag
GT Guatemala
Guatemala City
Guatemala Flag
GG Guernsey
Saint Peter Port
Guernsey Flag
GN Guinea
Conakry
Guinea Flag
GW Guinea-Bissau
Bissau
Guinea-Bissau Flag
GY Guyana
Georgetown
Guyana Flag
HT Haiti
Port-au-Prince
Haiti Flag
VA Holy See
Vatican City
Holy See Flag
HN Honduras
Tegucigalpa
Honduras Flag
HK Hong Kong
Hong Kong
Hong Kong Flag
HU Hungary
Budapest
Hungary Flag
IS Iceland
Reykjavik
Iceland Flag
IN India
New Delhi
India Flag
ID Indonesia
Jakarta
Indonesia Flag
IR Iran (Islamic Republic of)
Tehran
Iran (Islamic Republic of) Flag
IQ Iraq
Baghdad
Iraq Flag
IE Ireland
Dublin
Ireland Flag
IM Isle of Man
Douglas
Isle of Man Flag
IL Israel
Jerusalem
Israel Flag
IT Italy
Rome
Italy Flag
JM Jamaica
Kingston
Jamaica Flag
JP Japan
Tokyo
Japan Flag
JE Jersey
Saint Helier
Jersey Flag
JO Jordan
Amman
Jordan Flag
KZ Kazakhstan
Astana
Kazakhstan Flag
KE Kenya
Nairobi
Kenya Flag
KI Kiribati
South Tarawa
Kiribati Flag
XK Kosovo
Pristina
Kosovo Flag
KW Kuwait
Kuwait City
Kuwait Flag
KG Kyrgyzstan
Bishkek
Kyrgyzstan Flag
LA Laos
Vientiane
Laos Flag
LV Latvia
Riga
Latvia Flag
LB Lebanon
Beirut
Lebanon Flag
LS Lesotho
Maseru
Lesotho Flag
LR Liberia
Monrovia
Liberia Flag
LY Libya
Tripoli
Libya Flag
LI Liechtenstein
Vaduz
Liechtenstein Flag
LT Lithuania
Vilnius
Lithuania Flag
LU Luxembourg
Luxembourg City
Luxembourg Flag
MO Macau
Macau
Macau Flag
MG Madagascar
Antananarivo
Madagascar Flag
MW Malawi
Lilongwe
Malawi Flag
MY Malaysia
Kuala Lumpur
Malaysia Flag
MV Maldives
Malé
Maldives Flag
ML Mali
Bamako
Mali Flag
MT Malta
Valletta
Malta Flag
MH Marshall Islands
Majuro
Marshall Islands Flag
MQ Martinique
Fort-de-France
Martinique Flag
MR Mauritania
Nouakchott
Mauritania Flag
MU Mauritius
Port Louis
Mauritius Flag
YT Mayotte
Mamoudzou
Mayotte Flag
MX Mexico
Mexico City
Mexico Flag
MD Moldova
Chișinău
Moldova Flag
MC Monaco
Monaco
Monaco Flag
MN Mongolia
Ulaanbaatar
Mongolia Flag
ME Montenegro
Podgorica
Montenegro Flag
MS Montserrat
Little Bay, Brades, Plymouth
Montserrat Flag
MA Morocco
Rabat
Morocco Flag
MZ Mozambique
Maputo
Mozambique Flag
MM Myanmar
Naypyidaw
Myanmar Flag
NA Namibia
Windhoek
Namibia Flag
NR Nauru
Yaren District
Nauru Flag
NP Nepal
Kathmandu
Nepal Flag
NL Netherlands
Amsterdam
Netherlands Flag
NC New Caledonia
Nouméa
New Caledonia Flag
NZ New Zealand
Wellington
New Zealand Flag
NI Nicaragua
Managua
Nicaragua Flag
NE Niger
Niamey
Niger Flag
NG Nigeria
Abuja
Nigeria Flag
NU Niue
Alofi
Niue Flag
NF Norfolk Island
Kingston
Norfolk Island Flag
KP North Korea
Pyongyang
North Korea Flag
MK North Macedonia
Skopje
North Macedonia Flag
GB-NIR Northern Ireland
Belfast
Northern Ireland Flag
MP Northern Mariana Islands
Saipan
Northern Mariana Islands Flag
NO Norway
Oslo
Norway Flag
OM Oman
Muscat
Oman Flag
PK Pakistan
Islamabad
Pakistan Flag
PW Palau
Ngerulmud
Palau Flag
PA Panama
Panama City
Panama Flag
PG Papua New Guinea
Port Moresby
Papua New Guinea Flag
PY Paraguay
Asunción
Paraguay Flag
PE Peru
Lima
Peru Flag
PH Philippines
Manila
Philippines Flag
PN Pitcairn
Adamstown
Pitcairn Flag
PL Poland
Warsaw
Poland Flag
PT Portugal
Lisbon
Portugal Flag
PR Puerto Rico
San Juan
Puerto Rico Flag
QA Qatar
Doha
Qatar Flag
CG Republic of the Congo
Brazzaville
Republic of the Congo Flag
RO Romania
Bucharest
Romania Flag
RU Russia
Moscow
Russia Flag
RW Rwanda
Kigali
Rwanda Flag
RE Réunion
Saint-Denis
Réunion Flag
BL Saint Barthélemy
Gustavia
Saint Barthélemy Flag
SH Saint Helena, Ascension and Tristan da Cunha
Jamestown
Saint Helena, Ascension and Tristan da Cunha Flag
KN Saint Kitts and Nevis
Basseterre
Saint Kitts and Nevis Flag
LC Saint Lucia
Castries
Saint Lucia Flag
MF Saint Martin
Marigot
Saint Martin Flag
PM Saint Pierre and Miquelon
Saint-Pierre
Saint Pierre and Miquelon Flag
VC Saint Vincent and the Grenadines
Kingstown
Saint Vincent and the Grenadines Flag
WS Samoa
Apia
Samoa Flag
SM San Marino
San Marino
San Marino Flag
ST Sao Tome and Principe
São Tomé
Sao Tome and Principe Flag
SA Saudi Arabia
Riyadh
Saudi Arabia Flag
GB-SCT Scotland
Edinburgh
Scotland Flag
SN Senegal
Dakar
Senegal Flag
RS Serbia
Belgrade
Serbia Flag
SC Seychelles
Victoria
Seychelles Flag
SL Sierra Leone
Freetown
Sierra Leone Flag
SG Singapore
Singapore
Singapore Flag
SX Sint Maarten
Philipsburg
Sint Maarten Flag
SK Slovakia
Bratislava
Slovakia Flag
SI Slovenia
Ljubljana
Slovenia Flag
SB Solomon Islands
Honiara
Solomon Islands Flag
SO Somalia
Mogadishu
Somalia Flag
ZA South Africa
Pretoria
South Africa Flag
GS South Georgia and the South Sandwich Islands
King Edward Point
South Georgia and the South Sandwich Islands Flag
KR South Korea
Seoul
South Korea Flag
SS South Sudan
Juba
South Sudan Flag
ES Spain
Madrid
Spain Flag
LK Sri Lanka
Sri Jayawardenepura Kotte, Colombo
Sri Lanka Flag
PS State of Palestine
Ramallah
State of Palestine Flag
SD Sudan
Khartoum
Sudan Flag
SR Suriname
Paramaribo
Suriname Flag
SJ Svalbard and Jan Mayen
Longyearbyen
Svalbard and Jan Mayen Flag
SZ Swaziland
Lobamba, Mbabane
Swaziland Flag
SE Sweden
Stockholm
Sweden Flag
CH Switzerland
Bern
Switzerland Flag
SY Syrian Arab Republic
Damascus
Syrian Arab Republic Flag
TW Taiwan
Taipei
Taiwan Flag
TJ Tajikistan
Dushanbe
Tajikistan Flag
TZ Tanzania
Dodoma
Tanzania Flag
TH Thailand
Bangkok
Thailand Flag
TL Timor-Leste
Dili
Timor-Leste Flag
TG Togo
Lomé
Togo Flag
TK Tokelau
Nukunonu, Atafu,Tokelau
Tokelau Flag
TO Tonga
Nukuʻalofa
Tonga Flag
TT Trinidad and Tobago
Port of Spain
Trinidad and Tobago Flag
TN Tunisia
Tunis
Tunisia Flag
TR Turkey
Ankara
Turkey Flag
TM Turkmenistan
Ashgabat
Turkmenistan Flag
TC Turks and Caicos Islands
Cockburn Town
Turks and Caicos Islands Flag
TV Tuvalu
Funafuti
Tuvalu Flag
UG Uganda
Kampala
Uganda Flag
UA Ukraine
Kiev
Ukraine Flag
AE United Arab Emirates
Abu Dhabi
United Arab Emirates Flag
GB United Kingdom
London
United Kingdom Flag
UM United States Minor Outlying Islands
Washington, D.C.
United States Minor Outlying Islands Flag
US United States of America
Washington, D.C.
United States of America Flag
UY Uruguay
Montevideo
Uruguay Flag
UZ Uzbekistan
Tashkent
Uzbekistan Flag
VU Vanuatu
Port Vila
Vanuatu Flag
VE Venezuela (Bolivarian Republic of)
Caracas
Venezuela (Bolivarian Republic of) Flag
VN Vietnam
Hanoi
Vietnam Flag
VG Virgin Islands (British)
Road Town
Virgin Islands (British) Flag
VI Virgin Islands (U.S.)
Charlotte Amalie
Virgin Islands (U.S.) Flag
GB-WLS Wales
Cardiff
Wales Flag
WF Wallis and Futuna
Mata-Utu
Wallis and Futuna Flag
EH Western Sahara
Laayoune
Western Sahara Flag
YE Yemen
Sana'a
Yemen Flag
ZM Zambia
Lusaka
Zambia Flag
ZW Zimbabwe
Harare
Zimbabwe Flag