ISO 3166-1 · alpha-2 · alpha-3 · numeric · local

Look up country codes across every standard

Alpha-2, alpha-3, numeric, and calling codes for every country, with the flag included. Search by name or any code.

Country Code Lookup
Entries
240
ISO 3166-1
Visible
240
all
Query
—
search
Status
ready
live
Filter
input · filter

Type a country name or any code. Search is case-insensitive.

Alpha-2 is the 2-letter ISO code (US). Alpha-3 is the 3-letter (USA). Numeric is the 3-digit (840).

Click any code to copy it.

output · 240 of 240
FlagNameA2A3NumCall
🇦🇫Afghanistan004
🇦🇱Albania008
🇩🇿Algeria012
🇦🇸American Samoa016
🇦🇩Andorra020
🇦🇴Angola024
🇦🇮Anguilla660
🇦🇶Antarctica010
🇦🇬Antigua and Barbuda028
🇦🇷Argentina032
🇦🇲Armenia051
🇦🇼Aruba533
🇦🇺Australia036
🇦🇹Austria040
🇦🇿Azerbaijan031
🇧🇸Bahamas044
🇧🇭Bahrain048
🇧🇩Bangladesh050
🇧🇧Barbados052
🇧🇾Belarus112
🇧🇪Belgium056
🇧🇿Belize084
🇧🇯Benin204
🇧🇲Bermuda060
🇧🇹Bhutan064
🇧🇴Bolivia068
🇧🇦Bosnia and Herzegovina070
🇧🇼Botswana072
🇧🇷Brazil076
🇮🇴British Indian Ocean Territory086
🇧🇳Brunei096
🇧🇬Bulgaria100
🇧🇫Burkina Faso854
🇧🇮Burundi108
🇨🇻Cabo Verde132
🇰🇭Cambodia116
🇨🇲Cameroon120
🇨🇦Canada124
🇰🇾Cayman Islands136
🇨🇫Central African Republic140
🇹🇩Chad148
🇨🇱Chile152
🇨🇳China156
🇨🇽Christmas Island162
🇨🇨Cocos Islands166
🇨🇴Colombia170
🇰🇲Comoros174
🇨🇬Congo (Brazzaville)178
🇨🇩Congo (Kinshasa)180
🇨🇰Cook Islands184
🇨🇷Costa Rica188
🇭🇷Croatia191
🇨🇺Cuba192
🇨🇼Curaçao531
🇨🇾Cyprus196
🇨🇿Czechia203
🇩🇰Denmark208
🇩🇯Djibouti262
🇩🇲Dominica212
🇩🇴Dominican Republic214
🇪🇨Ecuador218
🇪🇬Egypt818
🇸🇻El Salvador222
🇬🇶Equatorial Guinea226
🇪🇷Eritrea232
🇪🇪Estonia233
🇸🇿Eswatini748
🇪🇹Ethiopia231
🇫🇰Falkland Islands238
🇫🇴Faroe Islands234
🇫🇯Fiji242
🇫🇮Finland246
🇫🇷France250
🇬🇫French Guiana254
🇵🇫French Polynesia258
🇬🇦Gabon266
🇬🇲Gambia270
🇬🇪Georgia268
🇩🇪Germany276
🇬🇭Ghana288
🇬🇮Gibraltar292
🇬🇷Greece300
🇬🇱Greenland304
🇬🇩Grenada308
🇬🇵Guadeloupe312
🇬🇺Guam316
🇬🇹Guatemala320
🇬🇬Guernsey831
🇬🇳Guinea324
🇬🇼Guinea-Bissau624
🇬🇾Guyana328
🇭🇹Haiti332
🇭🇳Honduras340
🇭🇰Hong Kong344
🇭🇺Hungary348
🇮🇸Iceland352
🇮🇳India356
🇮🇩Indonesia360
🇮🇷Iran364
🇮🇶Iraq368
🇮🇪Ireland372
🇮🇲Isle of Man833
🇮🇱Israel376
🇮🇹Italy380
🇨🇮Ivory Coast384
🇯🇲Jamaica388
🇯🇵Japan392
🇯🇪Jersey832
🇯🇴Jordan400
🇰🇿Kazakhstan398
🇰🇪Kenya404
🇰🇮Kiribati296
🇽🇰Kosovo—
🇰🇼Kuwait414
🇰🇬Kyrgyzstan417
🇱🇦Laos418
🇱🇻Latvia428
🇱🇧Lebanon422
🇱🇸Lesotho426
🇱🇷Liberia430
🇱🇾Libya434
🇱🇮Liechtenstein438
🇱🇹Lithuania440
🇱🇺Luxembourg442
🇲🇴Macao446
🇲🇬Madagascar450
🇲🇼Malawi454
🇲🇾Malaysia458
🇲🇻Maldives462
🇲🇱Mali466
🇲🇹Malta470
🇲🇭Marshall Islands584
🇲🇶Martinique474
🇲🇷Mauritania478
🇲🇺Mauritius480
🇾🇹Mayotte175
🇲🇽Mexico484
🇫🇲Micronesia583
🇲🇩Moldova498
🇲🇨Monaco492
🇲🇳Mongolia496
🇲🇪Montenegro499
🇲🇸Montserrat500
🇲🇦Morocco504
🇲🇿Mozambique508
🇲🇲Myanmar104
🇳🇦Namibia516
🇳🇷Nauru520
🇳🇵Nepal524
🇳🇱Netherlands528
🇳🇨New Caledonia540
🇳🇿New Zealand554
🇳🇮Nicaragua558
🇳🇪Niger562
🇳🇬Nigeria566
🇳🇺Niue570
🇳🇫Norfolk Island574
🇰🇵North Korea408
🇲🇰North Macedonia807
🇲🇵Northern Mariana Islands580
🇳🇴Norway578
🇴🇲Oman512
🇵🇰Pakistan586
🇵🇼Palau585
🇵🇸Palestine275
🇵🇦Panama591
🇵🇬Papua New Guinea598
🇵🇾Paraguay600
🇵🇪Peru604
🇵🇭Philippines608
🇵🇳Pitcairn Islands612
🇵🇱Poland616
🇵🇹Portugal620
🇵🇷Puerto Rico630
🇶🇦Qatar634
🇷🇪Réunion638
🇷🇴Romania642
🇷🇺Russia643
🇷🇼Rwanda646
🇧🇱Saint Barthélemy652
🇸🇭Saint Helena654
🇰🇳Saint Kitts and Nevis659
🇱🇨Saint Lucia662
🇲🇫Saint Martin663
🇵🇲Saint Pierre and Miquelon666
🇻🇨Saint Vincent and the Grenadines670
🇼🇸Samoa882
🇸🇲San Marino674
🇸🇹São Tomé and Príncipe678
🇸🇦Saudi Arabia682
🇸🇳Senegal686
🇷🇸Serbia688
🇸🇨Seychelles690
🇸🇱Sierra Leone694
🇸🇬Singapore702
🇸🇽Sint Maarten534
🇸🇰Slovakia703
🇸🇮Slovenia705
🇸🇧Solomon Islands090
🇸🇴Somalia706
🇿🇦South Africa710
🇰🇷South Korea410
🇸🇸South Sudan728
🇪🇸Spain724
🇱🇰Sri Lanka144
🇸🇩Sudan729
🇸🇷Suriname740
🇸🇪Sweden752
🇨🇭Switzerland756
🇸🇾Syria760
🇹🇼Taiwan158
🇹🇯Tajikistan762
🇹🇿Tanzania834
🇹🇭Thailand764
🇹🇱Timor-Leste626
🇹🇬Togo768
🇹🇰Tokelau772
🇹🇴Tonga776
🇹🇹Trinidad and Tobago780
🇹🇳Tunisia788
🇹🇷Turkey792
🇹🇲Turkmenistan795
🇹🇨Turks and Caicos Islands796
🇹🇻Tuvalu798
🇺🇬Uganda800
🇺🇦Ukraine804
🇦🇪United Arab Emirates784
🇬🇧United Kingdom826
🇺🇸United States840
🇺🇾Uruguay858
🇺🇿Uzbekistan860
🇻🇺Vanuatu548
🇻🇦Vatican City336
🇻🇪Venezuela862
🇻🇳Vietnam704
🇼🇫Wallis and Futuna876
🇪🇭Western Sahara732
🇾🇪Yemen887
🇿🇲Zambia894
🇿🇼Zimbabwe716
Quick Start

How to look up country codes

ISO 3166-1 defines two-letter, three-letter, and three-digit codes for every recognised country. Calling codes come from ITU-T E.164.

  1. 01

    Search by name

    Partial names work — "kor" finds North and South Korea.

    Inputs are treated as UTF-8 throughout the pipeline and validated client-side as you type — nothing dispatches until the value is well-formed.

    searchinpututf-8client-sidevalidated
    query · textkor · set
    North Korea · South Korea
    loaded · parsedclient-side
  2. 02

    Search by code

    Type US, USA, or 840 — any code matches.

    Each toggle re-computes through a memoised hook, so flipping options never resets your input and the UI stays snappy on large inputs.

    codeoptionslivememoisedtoggles
    query · memoisedUSA · live
    United States
    options set · memoisedlive
  3. 03

    Click to copy

    Every code cell is a one-click copy button.

    Randomness — where used — comes from crypto.getRandomValues, never Math.random. Heavy work sits in useMemo.

    copycomputeinstantlocaldeterministic
    copy · instantUS · computed
    US
    computed · instantinstant
  4. 04

    Paste anywhere

    Use in forms, datasets, exports, validators.

    Copy writes through navigator.clipboard and downloads use a Blob — zero network traffic. Same input plus same options always yield the same bytes.

    usecopydownloadzero-networkreproducible
    ok · copiedready · copied
    Pasted
    shipped · ready to shipsuccess
Pro tips

Pro tips for everyday utilities

Reach for crypto.getRandomValues

Cryptographically random for IDs, tokens, salts. Math.random is for animation and games, not security.

Sort IDs lexicographically

UUID v4 has no time ordering. Use ULID or UUID v7 if you need sorted IDs.

Mock data with seeds

Faker-style libraries can be seeded so tests are reproducible. Embed the seed in the fixture file.

Reference cards beat memory

Cheatsheets for Vim, Git, Docker, Linux signals are faster than man pages when you’re mid-flow.

Browser APIs vary

Touch events, gamepads, and clipboard differ across vendors. Feature-detect before use.

Persist in the right place

localStorage for user preferences, sessionStorage for transient state, IndexedDB for structured data.

Use Cases

When to look up country codes

Forms, exports, validators, address books.

Form dropdowns

Populate a country picker with proper alpha-2 codes. Random values come from crypto.getRandomValues — cryptographically secure for tokens, salts, and session IDs. Math.random is deterministic enough for animations but predictable enough to be a security bug.

CSPRNG-backed

Data exports

Convert spreadsheet country names to ISO codes. Pair with hashids, ULID, or UUID v7 when you need both random and sortable — useful for primary keys, public-facing IDs, and event log ordering without a sequence column.

reproducible

Validators

Reject unknown country inputs in API payloads. Output is deterministic given the same seed, so fixtures and tests stay reproducible across CI runs and contributor machines. Embed the seed in the fixture file for full replay.

snappy

Address books

Normalise country fields against ISO 3166-1. Heavy work runs through useMemo so the UI stays snappy on large inputs. Same input + same options yields identical bytes — the kind of stability snapshot tests rely on.

feature-detected

Shipping

Map country names to courier-required codes. Storage tools persist to the right backend: localStorage for user preferences, sessionStorage for transient state, IndexedDB for structured data. Pick the right shelf and quota worries disappear.

deterministic

i18n keys

Drive translations off alpha-2 codes. Browser feature detection: clipboard, fullscreen, gamepad, and Web Bluetooth APIs gracefully fall back when unavailable. No surprise white screens on Safari or older Firefox.

i18n
FAQ

Frequently asked questions

Codes are unambiguous, stable, and locale-independent. 'US' and 'USA' mean the same country in every language.
Alpha-2 is the most common in web forms and URLs. Alpha-3 is preferred in shipping and customs systems. Numeric is statistical.
ISO has not assigned one. We list it because it's widely used as XK in practice.
Yes. Multi-territory codes (like +1 for NANP) are shown with their area-code prefixes where unambiguous.
No. The full country table is bundled and search runs locally.
Suggest a tool

Something missing?

Tell us what you need. We ship the top requests every two weeks.

Sent straight to the maintainers · no account needed
47 in queue·8 shipped this month
Request queued. Thanks!