In most Nigerian products the phone number is the first thing a user types and the key most other things hang off: sign-up, OTPs, wallet transfers, support. It is also one of the easiest fields to get wrong. People write the same number in several ways, numbers move between networks, and an inactive number can end up with a stranger. This is how to design the field around those facts.
One number, several ways of writing it
The NCC says Nigeria’s country code is 234 and that “0” is the trunk prefix for national dialling. In its notification to the ITU of mobile numbers in the national numbering plan, the NCC lists every mobile range with a length of 10 digits. Those 10 digits are the number after +234. Written locally, with the 0 in front, the same number has 11 digits.
So a user may type 0803 123 4567, 803 123 4567, +234 803 123 4567 or 2348031234567, and all of them mean the same line. A good field accepts every one of them:
- Show a fixed +234 prefix, or a country picker defaulting to Nigeria, and let people type the rest.
- Strip spaces, dashes and brackets instead of rejecting them.
- If the digits start with 0, drop the 0. If they start with 234, drop that too. Then expect 10 digits.
- Use a telephone keypad on mobile (
type="tel",autocomplete="tel") so people are not hunting for digits on a full keyboard. - Show the number back in a readable form, such as +234 803 123 4567, before you send a code to it.
Store one format: E.164
Whatever people type, store one form. E.164 is the international standard format. Twilio describes it as starting with a +, followed by the country code, with a total of no more than 15 digits and no leading 0. A Nigerian mobile number becomes +2348031234567. Store it as text, not as a number type, so the + and any future changes survive. If you keep the national 0 format in one table and E.164 in another, you will create duplicate accounts and failed lookups.
Do not write your own pattern and call it validation. Twilio notes that a regular expression cannot guarantee a match with a valid number. Google’s open-source libphonenumber library parses and formats numbers for each country. Its FAQ also warns not to rely on it to tell you whether a number is assigned to a particular user and reachable. A number that passes the format check still has to be proven with an OTP.
Do not guess the network from the prefix
It is tempting to read the first digits and preselect the network, for example on an airtime or data purchase screen. The NCC has run Mobile Number Portability for GSM subscribers since April 2013, which lets people switch networks and keep their number. libphonenumber’s FAQ says that where it offers carrier information, it returns the original carrier for the number, not necessarily the current one.
If you prefill a network, treat it as a suggestion the user can change in one tap, and never block a purchase because the prefix and the chosen network disagree. If the network really matters, as it does for airtime, ask your payment or airtime provider whether its API can tell you the current network.
Numbers get recycled
The NCC consumer handbook says a registered SIM can be reassigned to another user after 365 days of inactivity without a revenue generating event. The NCC’s business rules for subscriber registration, amended in July 2025, add that the NIN attached to a recycled SIM is purged so a new subscriber can link their own. A phone number is therefore not a permanent identity. A number in your database that has been quiet for a year may now belong to someone else.
- Do not let a phone number alone recover an account that holds money or personal data. Pair it with a PIN, a second factor or a check of a document such as the user’s NIN, as your KYC rules require.
- Re-verify the number with an OTP when a dormant account becomes active again, before you send balances or personal details by SMS.
- Let users change their number themselves, with a check on both the old and the new number where possible.
A short checklist
- Accept 0, +234 and 234 formats, and spaces.
- Normalise to E.164 and store it as text.
- Validate with libphonenumber, then confirm with an OTP.
- Never lock the network to the prefix.
- Re-verify dormant numbers before trusting them.
For more on getting codes delivered, see our guide to sending OTP SMS in Nigeria. If you want help designing sign-up and verification flows, see our product design service.



Comments