South America

Europe

Asia

Pacifica

Africa

Updates to Removal Procedure

2012 Nov 23

We now offer an alternative route to removing your listings from Numbertron. If you don’t want to pay the $1.50 convenienve fee, you can send a postcard instead. Full information is available on the removal page. We still do not have a way to update listing data, though we may in the future.

Comments

2012 Sep 12

It’s now possible to add your comments to a number listing. To do so, just navigate to the page for that number (example) and comment at the bottom of the page. This doesn’t replace the easy delisting process, so I’ve moved the “take my number off your website” link to right above the form.

Phone numbers 102: Area Codes

2012 Feb 13

(Read part 1 of this series)

I’ve decided to put off the promised discussion of phone number formatting in order to instead discuss in greater detail the components of a telephone number.

I’m sure this will be rather boring to most readers. In fact, I find it a bit so myself. However, I think it’s important to be precise.

On the “international plane”, a phone number consists of two or perhaps three parts. E.164 defines these parts, and I’ll explain them.

All fully qualified phone numbers have a country code (one to three digits written with a plus sign in front, such as “+1” or “+972” or “+86”). Simple enough. Country codes uniquely identify the single country where the call should be routed, except when they don’t. The country code +1 is shared among the 24 countries in North America and the Caribbean, and the country code +7 is shared between Russia and Kazakhstan. Other shared country codes include +262, +290, and +358.

The second part is the “national destination number”, also known as the city code. In the phone number “+1 (206) 323-0020”, the city code is 206. All NANP city codes (normally called area codes) are 3 digits long. In a phone number such as “+44 20 7481 8595”, the city code is “20” for London. The UK’s city codes range from short (20) to long (176 83).

Nongeographic area codes, such as the common toll-free “800” and variants, are also national destination codes.

Some countries don’t have city codes. All phone numbers in Estonia, for example, are fully nongeographic.

The third part of the phone number (still viewed solely from the international plane) is the subscriber number. This is allocated in a way that is entirely up to the nation and its telephone company. From an international perspective, assignment procedures for this numbering space are completely opaque.

Let’s drop down a level, to the “national plane”. Here things get much more varied and interesting.

In the United States, 3-digit area codes are assigned to a city-sized region. The next level of assignment is a 3-digit “exchange code”. In the number “+1 (812) 232-1715”, the area code is “812” and the exchange code is “232”. Typically each exchange code corresponds to a particular piece of switching equipment that provides telephone service to up to 10,000 subscribers. In the past 15 years, however, telephone companies have been allocated numbering blocks that are 4 digits long, called “thousands blocks” because they contain one thousand phone numbers. In this example, the thousands block would be “232-1”. These assignments are managed by the North American Number Plan Administration. The NANP structure has stayed substantially the same since it was created in 1951 to allow direct distance dialling (DDD).

The US has fixed-length phone numbers with fixed-length area codes and exchange codes. Are there any countries with varying length area codes? I’m glad you asked!

In the United Kingdom, area codes vary in length from two to six digits, but the total length of the national number (area code and subscriber number together) is fixed at 10 digits in almost all cases. Assignments are handled by Ofcom. Number blocks assigned in the UK also vary in length. Due to a lack of foresight, area codes in the UK have been changed multiple times since direct distance dialling (Subscriber Trunk Dialling, STD) was introduced in 1958.

So far we’ve looked at two countries whose phone numbers are all the same length. Is it common for phone numbers to vary in length within a country?

Yes! It’s common, for example, for mobile numbers to be one or two digits longer than fixed-line numbers. Germany, however, is an extreme example of this.

In Germany, area codes can be from two to five digits long. The numbers within those area codes also vary in length, but the two are not required to add up to any particular length. Subscriber numbers can be as short as three digits in rural areas, or as long as eight digits in dense urban areas. Digits dialed after the subscriber number are also passed on to the subscriber’s ISDN telephone, allowing for direct dialling of extensions as if they are a normal telephone number.

This structure comes from the history of Germany’s telephone network. They used to use Step-By-Step telephone switchgear, which is much more conducive to variable-length numbers than any other type. It also requires much more discipline to set up properly than any other type of mechanical switchgear. Step systems were used in almost every country, but Germany had the largest single deployment.

Phone numbers 101: What is a phone number, exactly?

2012 Feb 12

One fundamental issue in designing Numbertron’s database is the format of a telephone number.

Here are some examples of phone numbers, as humans talk about them:

What’s the best way to represent these? How do you put them all in the same database table?

I chose to normalize them by using the complete E.164 number, including country code and exclusive of any punctuation. Under this scheme, those same numbers are stored as:

When I gather listings from various sources, they often are in national format, sometimes with a 0 or 1 prefix to indicate “long distance” and rarely with the country code prefixed. It can be tricky to find the best way to turn that into an E.164-compatible numbering.

For example, Nepal uses many phone numbers beginning with a 1, meaning “fixed line in Kathmandu”. Nepal’s 1 stays there, so its numbers will look like “+977 1 423 1301”. Simple enough.

Conversely, the leading 0 in United Kingdom numbers (country code 44) is always a dialling code and must be removed. In the UK, though, this leading 0 is widely considered to be a part of the area code. Interestingly, it is even written that way in the Wikipedia article that proves some people care way too much about telephone numbers.

The leading 1 in North American numbers, however, is a bit of a special case — it is technically a dialling code, and as such should be stripped from the number before it is normalized, but the country code that we add is a 1 anyway and so it can be left there without causing a problem.

That’s all, right? A phone number is a string of digits 0 through 9, beginning with a country code. The country code is one to three digits long and uniquely identifies where the number is located. The number is up to 15 digits long including country code. Right? Well, we can safely assume so. For now.

A more interesting facet of the problem is number formatting, to make numbers more pleasant for people to read. I’ll write about that next time.