+233
Ghana phone numbers
023 123 4567
International +233 23 123 4567, E.164 +233231234567
The numbering plan of Ghana: formats, lengths, the regular expression for each line type and the prefix blocks allocated to each carrier, as ITU publishes it. A pattern says what a number looks like and where it was allocated; whether it is in service, and who serves it today, is a different question (below).
At a glance
- Country code
- +233
- Exit code
- 00
- Trunk prefix
- 0
- Mobile digits
- 9
- Fixed-line digits
- 9
- Number portability
- yes
- Carriers on record
- 5
How to dial a number in Ghana from anywhere: the dialling helper.
| MTN | 6 |
|---|---|
| at | 5 |
| Telecel | 2 |
| Expresso | 1 |
| National Security | 1 |
prefix blocks allocated, from the published records; a block is a prefix at the plan's allocation length
Check a number
Valid mobile number in Ghana.
| Country | Ghana numbering plan |
|---|---|
| Line type | Mobile |
| Carrier the block was allocated to | at |
| E.164 | +233231234567 |
| International | +233 23 123 4567 |
| National | 023 123 4567 |
| RFC 3966 | tel:+233-23-123-4567 |
Test a pattern
Tick the line types you accept, copy the combined pattern, and paste numbers to see which range each one falls in. Numbers are reduced to their national digits first (no spaces, no +233, no trunk prefix 0); nothing leaves your browser.
^(?:(?:2(?:[0346-9]\d|5[67])|5(?:[03-7]\d|9[1-9]))\d{6}|3082[0-5]\d{4}|3(?:0(?:[237]\d|8[01])|[167](?:2[0-6]|7\d|80)|2(?:2[0-5]|7\d|80)|3(?:2[0-3]|7\d|80)|4(?:2[013-9]|3[01]|7\d|80)|5(?:2[0-7]|7\d|80)|8(?:2[0-2]|7\d|80)|9(?:[28]0|7\d))\d{5})$| Number | National digits | Matches |
|---|---|---|
| 023 123 4567 | 231234567 | Mobile |
| 030 234 5678 | 302345678 | Fixed line |
| 0800 12345 | 80012345 | not in the ticked types |
Need another country, or the pattern as code in your language? Open the regex builder.
Walk the prefixes
Type the first digits of a number in national form, or tap them: the operators holding blocks under those digits, then the block a full prefix falls in. 15 blocks held by 5 operators are on record.
Type the first digits of a number in national form.
In full
Cheat sheet
| Country code | +233 |
|---|---|
| International exit code (dialling out) | 00 |
| Trunk prefix (national dialling) | 0 |
| Mobile number length (national digits) | 9 |
| Fixed-line number length (national digits) | 9 (7 dialled locally) |
| E.164 example | +233231234567 |
| RFC 3966 (tel: URI) | tel:+233-23-123-4567 |
| Mobile number portability | Yes |
Line types and their regular expressions
Match each pattern against the national significant number: digits only, without the trunk prefix 0 and without +233. The patterns follow the national numbering plan and are anchored here.
| Line type | National digits | Example, national | Example, E.164 |
|---|---|---|---|
| Mobile | 9 | 023 123 4567 | +233231234567 |
| Fixed line | 9 | 030 234 5678 | +233302345678 |
| Toll-free | 8 or 9 | 0800 12345 | +23380012345 |
Mobile, 9 digits
^(?:(?:2(?:[0346-9]\d|5[67])|5(?:[03-7]\d|9[1-9]))\d{6})$Fixed line, 9 digits
^(?:3082[0-5]\d{4}|3(?:0(?:[237]\d|8[01])|[167](?:2[0-6]|7\d|80)|2(?:2[0-5]|7\d|80)|3(?:2[0-3]|7\d|80)|4(?:2[013-9]|3[01]|7\d|80)|5(?:2[0-7]|7\d|80)|8(?:2[0-2]|7\d|80)|9(?:[28]0|7\d))\d{5})$Toll-free, 8 or 9 digits
^(?:800\d{5,6})$Carrier prefix blocks
The operator each prefix block was allocated to, in national form, from the published allocation records for +233. Numbers are portable, so this is the original allocation, not necessarily the carrier serving a number today.
| Operator | Line type | Prefix blocks | Ranges |
|---|---|---|---|
| MTN | Mobile | 6 | 024–025, 053–055, 059 |
| at | Mobile | 5 | 023, 026–027, 056–057 |
| Telecel | Mobile | 2 | 020, 050 |
| Expresso | Mobile | 1 | 028 |
| National Security | Mobile | 1 | 029 |
Questions developers ask
- How many digits does a phone number in Ghana have?
- Mobile numbers have 9 national digits. Fixed line numbers have 9 national digits (7 when dialled locally). That is the national number, without the country code +233 and without the trunk prefix 0.
- What is the country code for Ghana?
- +233. From abroad, dial your own exit code, then 233, then the national number without its trunk prefix 0. From inside Ghana, the exit code for international calls is 00.
- Which prefixes are mobile numbers in Ghana?
- Mobile numbers start with 02 or 05 in national form; the mobile regular expression on this page gives the exact ranges (example: 023 123 4567). The carrier table shows which prefix blocks were allocated to which operator.
- Can a mobile number in Ghana be ported to another carrier?
- Yes. Ghana has mobile number portability, so a prefix tells you the carrier a number was originally allocated to, not necessarily the one serving it today. Only a live carrier lookup (an HLR or MNP query) answers that.