While setting up table rates for Magento, I realized that people need a list of the country codes so I put this list up on the site. I actually retrieved this information using the SOAP API on my demo store so the information will be accurate unless you have updated your country data list.
Note that the table rates spread sheet only needs the the 3 letter code but I also added the 2 letter code in case you need it for something other than shipping.
If you need state codes for the US, you can view this list.
- Andorra
- 2 Letter Code: AD
- 3 Letter Code: AND
- United Arab Emirates
- 2 Letter Code: AE
- 3 Letter Code: ARE
- Afghanistan
- 2 Letter Code: AF
- 3 Letter Code: AFG
- Antigua and Barbuda
- 2 Letter Code: AG
- 3 Letter Code: ATG
- Anguilla
- 2 Letter Code: AI
- 3 Letter Code: AIA
- Albania
- 2 Letter Code: AL
- 3 Letter Code: ALB
- Armenia
- 2 Letter Code: AM
- 3 Letter Code: ARM
- Netherlands Antilles
- 2 Letter Code: AN
- 3 Letter Code: ANT
- Angola
- 2 Letter Code: AO
- 3 Letter Code: AGO
- Antarctica
- 2 Letter Code: AQ
- 3 Letter Code: ATA
- Argentina
- 2 Letter Code: AR
- 3 Letter Code: ARG
- American Samoa
- 2 Letter Code: AS
- 3 Letter Code: ASM
- Austria
- 2 Letter Code: AT
- 3 Letter Code: AUT
- Australia
- 2 Letter Code: AU
- 3 Letter Code: AUS
- Aruba
- 2 Letter Code: AW
- 3 Letter Code: ABW
- Åland Islands
- 2 Letter Code: AX
- 3 Letter Code: ALA
- Azerbaijan
- 2 Letter Code: AZ
- 3 Letter Code: AZE
- Bosnia and Herzegovina
- 2 Letter Code: BA
- 3 Letter Code: BIH
- Barbados
- 2 Letter Code: BB
- 3 Letter Code: BRB
- Bangladesh
- 2 Letter Code: BD
- 3 Letter Code: BGD
- Belgium
- 2 Letter Code: BE
- 3 Letter Code: BEL
- Burkina Faso
- 2 Letter Code: BF
- 3 Letter Code: BFA
- Bulgaria
- 2 Letter Code: BG
- 3 Letter Code: BGR
- Bahrain
- 2 Letter Code: BH
- 3 Letter Code: BHR
- Burundi
- 2 Letter Code: BI
- 3 Letter Code: BDI
- Benin
- 2 Letter Code: BJ
- 3 Letter Code: BEN
- Saint Barthélemy
- 2 Letter Code: BL
- 3 Letter Code: BLM
- Bermuda
- 2 Letter Code: BM
- 3 Letter Code: BMU
- Brunei
- 2 Letter Code: BN
- 3 Letter Code: BRN
- Bolivia
- 2 Letter Code: BO
- 3 Letter Code: BOL
- Brazil
- 2 Letter Code: BR
- 3 Letter Code: BRA
- Bahamas
- 2 Letter Code: BS
- 3 Letter Code: BHS
- Bhutan
- 2 Letter Code: BT
- 3 Letter Code: BTN
- Bouvet Island
- 2 Letter Code: BV
- 3 Letter Code: BVT
- Botswana
- 2 Letter Code: BW
- 3 Letter Code: BWA
- Belarus
- 2 Letter Code: BY
- 3 Letter Code: BLR
- Belize
- 2 Letter Code: BZ
- 3 Letter Code: BLZ
- Canada
- 2 Letter Code: CA
- 3 Letter Code: CAN
- Cocos [Keeling] Islands
- 2 Letter Code: CC
- 3 Letter Code: CCK
- Congo – Kinshasa
- 2 Letter Code: CD
- 3 Letter Code: COD
- Central African Republic
- 2 Letter Code: CF
- 3 Letter Code: CAF
- Congo – Brazzaville
- 2 Letter Code: CG
- 3 Letter Code: COG
- Switzerland
- 2 Letter Code: CH
- 3 Letter Code: CHE
- Côte d’Ivoire
- 2 Letter Code: CI
- 3 Letter Code: CIV
- Cook Islands
- 2 Letter Code: CK
- 3 Letter Code: COK
- Chile
- 2 Letter Code: CL
- 3 Letter Code: CHL
- Cameroon
- 2 Letter Code: CM
- 3 Letter Code: CMR
- China
- 2 Letter Code: CN
- 3 Letter Code: CHN
- Colombia
- 2 Letter Code: CO
- 3 Letter Code: COL
- Costa Rica
- 2 Letter Code: CR
- 3 Letter Code: CRI
- Cuba
- 2 Letter Code: CU
- 3 Letter Code: CUB
- Cape Verde
- 2 Letter Code: CV
- 3 Letter Code: CPV
- Christmas Island
- 2 Letter Code: CX
- 3 Letter Code: CXR
- Cyprus
- 2 Letter Code: CY
- 3 Letter Code: CYP
- Czech Republic
- 2 Letter Code: CZ
- 3 Letter Code: CZE
- Germany
- 2 Letter Code: DE
- 3 Letter Code: DEU
- Djibouti
- 2 Letter Code: DJ
- 3 Letter Code: DJI
- Denmark
- 2 Letter Code: DK
- 3 Letter Code: DNK
- Dominica
- 2 Letter Code: DM
- 3 Letter Code: DMA
- Dominican Republic
- 2 Letter Code: DO
- 3 Letter Code: DOM
- Algeria
- 2 Letter Code: DZ
- 3 Letter Code: DZA
- Ecuador
- 2 Letter Code: EC
- 3 Letter Code: ECU
- Estonia
- 2 Letter Code: EE
- 3 Letter Code: EST
- Egypt
- 2 Letter Code: EG
- 3 Letter Code: EGY
- Western Sahara
- 2 Letter Code: EH
- 3 Letter Code: ESH
- Eritrea
- 2 Letter Code: ER
- 3 Letter Code: ERI
- Spain
- 2 Letter Code: ES
- 3 Letter Code: ESP
- Ethiopia
- 2 Letter Code: ET
- 3 Letter Code: ETH
- Finland
- 2 Letter Code: FI
- 3 Letter Code: FIN
- Fiji
- 2 Letter Code: FJ
- 3 Letter Code: FJI
- Falkland Islands
- 2 Letter Code: FK
- 3 Letter Code: FLK
- Micronesia
- 2 Letter Code: FM
- 3 Letter Code: FSM
- Faroe Islands
- 2 Letter Code: FO
- 3 Letter Code: FRO
- France
- 2 Letter Code: FR
- 3 Letter Code: FRA
- Gabon
- 2 Letter Code: GA
- 3 Letter Code: GAB
- United Kingdom
- 2 Letter Code: GB
- 3 Letter Code: GBR
- Grenada
- 2 Letter Code: GD
- 3 Letter Code: GRD
- Georgia
- 2 Letter Code: GE
- 3 Letter Code: GEO
- French Guiana
- 2 Letter Code: GF
- 3 Letter Code: GUF
- Guernsey
- 2 Letter Code: GG
- 3 Letter Code: GGY
- Ghana
- 2 Letter Code: GH
- 3 Letter Code: GHA
- Gibraltar
- 2 Letter Code: GI
- 3 Letter Code: GIB
- Greenland
- 2 Letter Code: GL
- 3 Letter Code: GRL
- Gambia
- 2 Letter Code: GM
- 3 Letter Code: GMB
- Guinea
- 2 Letter Code: GN
- 3 Letter Code: GIN
- Guadeloupe
- 2 Letter Code: GP
- 3 Letter Code: GLP
- Equatorial Guinea
- 2 Letter Code: GQ
- 3 Letter Code: GNQ
- Greece
- 2 Letter Code: GR
- 3 Letter Code: GRC
- South Georgia and the South Sandwich Islands
- 2 Letter Code: GS
- 3 Letter Code: SGS
- Guatemala
- 2 Letter Code: GT
- 3 Letter Code: GTM
- Guam
- 2 Letter Code: GU
- 3 Letter Code: GUM
- Guinea-Bissau
- 2 Letter Code: GW
- 3 Letter Code: GNB
- Guyana
- 2 Letter Code: GY
- 3 Letter Code: GUY
- Hong Kong SAR China
- 2 Letter Code: HK
- 3 Letter Code: HKG
- Heard Island and McDonald Islands
- 2 Letter Code: HM
- 3 Letter Code: HMD
- Honduras
- 2 Letter Code: HN
- 3 Letter Code: HND
- Croatia
- 2 Letter Code: HR
- 3 Letter Code: HRV
- Haiti
- 2 Letter Code: HT
- 3 Letter Code: HTI
- Hungary
- 2 Letter Code: HU
- 3 Letter Code: HUN
- Indonesia
- 2 Letter Code: ID
- 3 Letter Code: IDN
- Ireland
- 2 Letter Code: IE
- 3 Letter Code: IRL
- Israel
- 2 Letter Code: IL
- 3 Letter Code: ISR
- Isle of Man
- 2 Letter Code: IM
- 3 Letter Code: IMN
- India
- 2 Letter Code: IN
- 3 Letter Code: IND
- British Indian Ocean Territory
- 2 Letter Code: IO
- 3 Letter Code: IOT
- Iraq
- 2 Letter Code: IQ
- 3 Letter Code: IRQ
- Iran
- 2 Letter Code: IR
- 3 Letter Code: IRN
- Iceland
- 2 Letter Code: IS
- 3 Letter Code: ISL
- Italy
- 2 Letter Code: IT
- 3 Letter Code: ITA
- Jersey
- 2 Letter Code: JE
- 3 Letter Code: JEY
- Jamaica
- 2 Letter Code: JM
- 3 Letter Code: JAM
- Jordan
- 2 Letter Code: JO
- 3 Letter Code: JOR
- Japan
- 2 Letter Code: JP
- 3 Letter Code: JPN
- Kenya
- 2 Letter Code: KE
- 3 Letter Code: KEN
- Kyrgyzstan
- 2 Letter Code: KG
- 3 Letter Code: KGZ
- Cambodia
- 2 Letter Code: KH
- 3 Letter Code: KHM
- Kiribati
- 2 Letter Code: KI
- 3 Letter Code: KIR
- Comoros
- 2 Letter Code: KM
- 3 Letter Code: COM
- Saint Kitts and Nevis
- 2 Letter Code: KN
- 3 Letter Code: KNA
- North Korea
- 2 Letter Code: KP
- 3 Letter Code: PRK
- South Korea
- 2 Letter Code: KR
- 3 Letter Code: KOR
- Kuwait
- 2 Letter Code: KW
- 3 Letter Code: KWT
- Cayman Islands
- 2 Letter Code: KY
- 3 Letter Code: CYM
- Kazakhstan
- 2 Letter Code: KZ
- 3 Letter Code: KAZ
- Laos
- 2 Letter Code: LA
- 3 Letter Code: LAO
- Lebanon
- 2 Letter Code: LB
- 3 Letter Code: LBN
- Saint Lucia
- 2 Letter Code: LC
- 3 Letter Code: LCA
- Liechtenstein
- 2 Letter Code: LI
- 3 Letter Code: LIE
- Sri Lanka
- 2 Letter Code: LK
- 3 Letter Code: LKA
- Liberia
- 2 Letter Code: LR
- 3 Letter Code: LBR
- Lesotho
- 2 Letter Code: LS
- 3 Letter Code: LSO
- Lithuania
- 2 Letter Code: LT
- 3 Letter Code: LTU
- Luxembourg
- 2 Letter Code: LU
- 3 Letter Code: LUX
- Latvia
- 2 Letter Code: LV
- 3 Letter Code: LVA
- Libya
- 2 Letter Code: LY
- 3 Letter Code: LBY
- Morocco
- 2 Letter Code: MA
- 3 Letter Code: MAR
- Monaco
- 2 Letter Code: MC
- 3 Letter Code: MCO
- Moldova
- 2 Letter Code: MD
- 3 Letter Code: MDA
- Montenegro
- 2 Letter Code: ME
- 3 Letter Code: MNE
- Saint Martin
- 2 Letter Code: MF
- 3 Letter Code: MAF
- Madagascar
- 2 Letter Code: MG
- 3 Letter Code: MDG
- Marshall Islands
- 2 Letter Code: MH
- 3 Letter Code: MHL
- Macedonia
- 2 Letter Code: MK
- 3 Letter Code: MKD
- Mali
- 2 Letter Code: ML
- 3 Letter Code: MLI
- Myanmar [Burma]
- 2 Letter Code: MM
- 3 Letter Code: MMR
- Mongolia
- 2 Letter Code: MN
- 3 Letter Code: MNG
- Macau SAR China
- 2 Letter Code: MO
- 3 Letter Code: MAC
- Northern Mariana Islands
- 2 Letter Code: MP
- 3 Letter Code: MNP
- Martinique
- 2 Letter Code: MQ
- 3 Letter Code: MTQ
- Mauritania
- 2 Letter Code: MR
- 3 Letter Code: MRT
- Montserrat
- 2 Letter Code: MS
- 3 Letter Code: MSR
- Malta
- 2 Letter Code: MT
- 3 Letter Code: MLT
- Mauritius
- 2 Letter Code: MU
- 3 Letter Code: MUS
- Maldives
- 2 Letter Code: MV
- 3 Letter Code: MDV
- Malawi
- 2 Letter Code: MW
- 3 Letter Code: MWI
- Mexico
- 2 Letter Code: MX
- 3 Letter Code: MEX
- Malaysia
- 2 Letter Code: MY
- 3 Letter Code: MYS
- Mozambique
- 2 Letter Code: MZ
- 3 Letter Code: MOZ
- Namibia
- 2 Letter Code: NA
- 3 Letter Code: NAM
- New Caledonia
- 2 Letter Code: NC
- 3 Letter Code: NCL
- Niger
- 2 Letter Code: NE
- 3 Letter Code: NER
- Norfolk Island
- 2 Letter Code: NF
- 3 Letter Code: NFK
- Nigeria
- 2 Letter Code: NG
- 3 Letter Code: NGA
- Nicaragua
- 2 Letter Code: NI
- 3 Letter Code: NIC
- Netherlands
- 2 Letter Code: NL
- 3 Letter Code: NLD
- Norway
- 2 Letter Code: NO
- 3 Letter Code: NOR
- Nepal
- 2 Letter Code: NP
- 3 Letter Code: NPL
- Nauru
- 2 Letter Code: NR
- 3 Letter Code: NRU
- Niue
- 2 Letter Code: NU
- 3 Letter Code: NIU
- New Zealand
- 2 Letter Code: NZ
- 3 Letter Code: NZL
- Oman
- 2 Letter Code: OM
- 3 Letter Code: OMN
- Panama
- 2 Letter Code: PA
- 3 Letter Code: PAN
- Peru
- 2 Letter Code: PE
- 3 Letter Code: PER
- French Polynesia
- 2 Letter Code: PF
- 3 Letter Code: PYF
- Papua New Guinea
- 2 Letter Code: PG
- 3 Letter Code: PNG
- Philippines
- 2 Letter Code: PH
- 3 Letter Code: PHL
- Pakistan
- 2 Letter Code: PK
- 3 Letter Code: PAK
- Poland
- 2 Letter Code: PL
- 3 Letter Code: POL
- Saint Pierre and Miquelon
- 2 Letter Code: PM
- 3 Letter Code: SPM
- Pitcairn Islands
- 2 Letter Code: PN
- 3 Letter Code: PCN
- Puerto Rico
- 2 Letter Code: PR
- 3 Letter Code: PRI
- Palestinian Territories
- 2 Letter Code: PS
- 3 Letter Code: PSE
- Portugal
- 2 Letter Code: PT
- 3 Letter Code: PRT
- Palau
- 2 Letter Code: PW
- 3 Letter Code: PLW
- Paraguay
- 2 Letter Code: PY
- 3 Letter Code: PRY
- Qatar
- 2 Letter Code: QA
- 3 Letter Code: QAT
- Réunion
- 2 Letter Code: RE
- 3 Letter Code: REU
- Romania
- 2 Letter Code: RO
- 3 Letter Code: ROU
- Serbia
- 2 Letter Code: RS
- 3 Letter Code: SRB
- Russia
- 2 Letter Code: RU
- 3 Letter Code: RUS
- Rwanda
- 2 Letter Code: RW
- 3 Letter Code: RWA
- Saudi Arabia
- 2 Letter Code: SA
- 3 Letter Code: SAU
- Solomon Islands
- 2 Letter Code: SB
- 3 Letter Code: SLB
- Seychelles
- 2 Letter Code: SC
- 3 Letter Code: SYC
- Sudan
- 2 Letter Code: SD
- 3 Letter Code: SDN
- Sweden
- 2 Letter Code: SE
- 3 Letter Code: SWE
- Singapore
- 2 Letter Code: SG
- 3 Letter Code: SGP
- Saint Helena
- 2 Letter Code: SH
- 3 Letter Code: SHN
- Slovenia
- 2 Letter Code: SI
- 3 Letter Code: SVN
- Svalbard and Jan Mayen
- 2 Letter Code: SJ
- 3 Letter Code: SJM
- Slovakia
- 2 Letter Code: SK
- 3 Letter Code: SVK
- Sierra Leone
- 2 Letter Code: SL
- 3 Letter Code: SLE
- San Marino
- 2 Letter Code: SM
- 3 Letter Code: SMR
- Senegal
- 2 Letter Code: SN
- 3 Letter Code: SEN
- Somalia
- 2 Letter Code: SO
- 3 Letter Code: SOM
- Suriname
- 2 Letter Code: SR
- 3 Letter Code: SUR
- São Tomé and Príncipe
- 2 Letter Code: ST
- 3 Letter Code: STP
- El Salvador
- 2 Letter Code: SV
- 3 Letter Code: SLV
- Syria
- 2 Letter Code: SY
- 3 Letter Code: SYR
- Swaziland
- 2 Letter Code: SZ
- 3 Letter Code: SWZ
- Turks and Caicos Islands
- 2 Letter Code: TC
- 3 Letter Code: TCA
- Chad
- 2 Letter Code: TD
- 3 Letter Code: TCD
- French Southern Territories
- 2 Letter Code: TF
- 3 Letter Code: ATF
- Togo
- 2 Letter Code: TG
- 3 Letter Code: TGO
- Thailand
- 2 Letter Code: TH
- 3 Letter Code: THA
- Tajikistan
- 2 Letter Code: TJ
- 3 Letter Code: TJK
- Tokelau
- 2 Letter Code: TK
- 3 Letter Code: TKL
- Timor-Leste
- 2 Letter Code: TL
- 3 Letter Code: TLS
- Turkmenistan
- 2 Letter Code: TM
- 3 Letter Code: TKM
- Tunisia
- 2 Letter Code: TN
- 3 Letter Code: TUN
- Tonga
- 2 Letter Code: TO
- 3 Letter Code: TON
- Turkey
- 2 Letter Code: TR
- 3 Letter Code: TUR
- Trinidad and Tobago
- 2 Letter Code: TT
- 3 Letter Code: TTO
- Tuvalu
- 2 Letter Code: TV
- 3 Letter Code: TUV
- Taiwan
- 2 Letter Code: TW
- 3 Letter Code: TWN
- Tanzania
- 2 Letter Code: TZ
- 3 Letter Code: TZA
- Ukraine
- 2 Letter Code: UA
- 3 Letter Code: UKR
- Uganda
- 2 Letter Code: UG
- 3 Letter Code: UGA
- U.S. Minor Outlying Islands
- 2 Letter Code: UM
- 3 Letter Code: UMI
- United States
- 2 Letter Code: US
- 3 Letter Code: USA
- Uruguay
- 2 Letter Code: UY
- 3 Letter Code: URY
- Uzbekistan
- 2 Letter Code: UZ
- 3 Letter Code: UZB
- Vatican City
- 2 Letter Code: VA
- 3 Letter Code: VAT
- Saint Vincent and the Grenadines
- 2 Letter Code: VC
- 3 Letter Code: VCT
- Venezuela
- 2 Letter Code: VE
- 3 Letter Code: VEN
- British Virgin Islands
- 2 Letter Code: VG
- 3 Letter Code: VGB
- U.S. Virgin Islands
- 2 Letter Code: VI
- 3 Letter Code: VIR
- Vietnam
- 2 Letter Code: VN
- 3 Letter Code: VNM
- Vanuatu
- 2 Letter Code: VU
- 3 Letter Code: VUT
- Wallis and Futuna
- 2 Letter Code: WF
- 3 Letter Code: WLF
- Samoa
- 2 Letter Code: WS
- 3 Letter Code: WSM
- Yemen
- 2 Letter Code: YE
- 3 Letter Code: YEM
- Mayotte
- 2 Letter Code: YT
- 3 Letter Code: MYT
- South Africa
- 2 Letter Code: ZA
- 3 Letter Code: ZAF
- Zambia
- 2 Letter Code: ZM
- 3 Letter Code: ZMB
- Zimbabwe
- 2 Letter Code: ZW
- 3 Letter Code: ZWE