Jump to content

User:Denelson83/Byte country code

From Wikipedia, the free encyclopedia

I have devised a "byte country code", called such because it gives each country in the world a number between 0 and 255 inclusive, essentially allowing every country to be represented by just one byte of data. I conceived this as part of an idea of integrating "location identifiers" into IPv6 addresses. Location identifiers would be two bytes in length, where the first byte draws from the code below, and the second byte represents a first-level administrative division in the country corresponding to the first byte. I have put this code here to make flag tracking easier for myself, as I have recently acquired a brief, but deep interest in flags.

All countries that have officially-assigned and exceptionally-reserved codes (by the ITU and UPU only) in ISO 3166-1, as well as a few other remote autonomous locations, are used in this code. Codes are assigned in a geographical order. Countries in a certain region of the world are grouped into consecutive code ranges. The five major continental areas each have their own code range, and there is also a "wildcard" code range, used to represent regions, and for cases when all countries in a major continental area cannot fit into their corresponding code range.

A few of the numbers in the code below link to their countries' administrative division code lists (the second byte of the two-byte location code).

Legend:  Wildcard   Africa   Europe   Asia   Pacific   Americas 

000 AAA
001 ATA
002
003 UMI
004 FRO
005 SJM
006 HMD
007 NFK
008 FLK
009 SGS
010 BLM
011 MAF
012 SXM
013 BES
014 VGB
015 BMU
016 ASC
017 SHN
018 TAA
019 BVT
020 MUS
021 REU
022 SYC
023 COM
024 MYT
025 MDG
026 ZAF
027 LSO
028 SWZ
029 MOZ
030 MWI
031 ZMB
032 ZWE
033 BWA
034 NAM
035 AGO
036 COG
037 GAB
038 GNQ
039 STP
040 CMR
041 CAF
042 COD
043 RWA
044 BDI
045 TZA
046 UGA
047 KEN
048 SOM
049 DJI
050 ERI
051 ETH
052 SSD
053 SDN
054 EGY
055 LBY
056 TUN
057 DZA
058 NER
059 TCD
060 NGA
061 BEN
062 TGO
063 GHA
064 BFA
065 MLI
066 CIV
067 LBR
068 SLE
069 GIN
070 GNB
071 SEN
072 GMB
073 CPV
074 MRT
075 ESH
076 MAR
077 ICE
078 MAD
079 AZO
080 GIB
081 PRT
082 ESP
083 AND
084 FRA
085 MCO
086 MLT
087 ITA
088 SMR
089 VAT
090 CHE
091 LIE
092 AUT
093 DEU
094 LUX
095 BEL
096 NLD
097 JEY
098 GGY
099 GBR
100 IMN
101 IRL
102 ISL
103 NOR
104 DNK
105 SWE
106 ALA
107 FIN
108 EST
109 LVA
110 LTU
111 POL
112 CZE
113 SVK
114 HUN
115 SVN
116 HRV
117 BIH
118 MNE
119 SRB
120 MKD
121 ALB
122 GRC
123 BGR
124 ROU
125 MDA
126 UKR
127 BLR
128 RUS
129 GEO
130 AZE
131 ARM
132 TUR
133 CYP
134 SYR
135 LBN
136 ISR
137 PSE
138 JOR
139 SAU
140 YEM
141 OMN
142 ARE
143 QAT
144 BHR
145 KWT
146 IRQ
147 IRN
148 TKM
149 UZB
150 KAZ
151 KGZ
152 TJK
153 AFG
154 PAK
155 IND
156 NPL
157 BTN
158 LKA
159 MDV
160 IOT
161 ATF
162 CXR
163 CCK
164 BGD
165 MMR
166 LAO
167 VNM
168 KHM
169 THA
170 MYS
171 SGP
172 BRN
173 IDN
174 TLS
175 PHL
176 TWN
177 MAC
178 HKG
179 CHN
180 MNG
181 PRK
182 KOR
183 JPN
184 PLW
185 MNP
186 MHL
187 GUM
188 FSM
189 PNG
190 AUS
191 NZL
192 NCL
193 VUT
194 SLB
195 NRU
196 KIR
197 TUV
198 WLF
199 FJI
200 TON
201 NIU
202 ASM
203 WSM
204 TKL
205 COK
206 PYF
207 PCN
208 CHL
209 ARG
210 URY
211 BRA
212 PRY
213 BOL
214 PER
215 ECU
216 COL
217 VEN
218 GUY
219 SUR
220 GUF
221 TTO
222 CUW
223 ABW
224 GRD
225 VCT
226 BRB
227 LCA
228 MTQ
229 DMA
230 GLP
231 MSR
232 ATG
233 KNA
234 AIA
235 VIR
236 PRI
237 DOM
238 TCA
239 HTI
240 BHS
241 CUB
242 JAM
243 CYM
244 PAN
245 CRI
246 NIC
247 HND
248 SLV
249 GTM
250 BLZ
251 MEX
252 USA
253 CAN
254 SPM
255 GRL