Phone number validator

Kenya phone number validator

A number is valid in Kenya when the digits after +254 match one of 4 number types, with 7 to 10 digits in all. A mobile number starts 10 to 14, 18 or 7.

+2547 to 10 digitsLocal prefix 0

Check a number in Kenya

Write the number with +254 or the local way. The check runs in your browser and nothing is sent.

Rules by number type

Digits are counted after the country code. Starts are the first digits the plan allows for the type.

Number types and rules for Kenya
TypeStarts withDigitsSample
Mobile10 to 14, 18 or 79+254 712 123456
Landline20, 40 to 46, 5, 60 to 62 or 64 to 697 to 9+254 201 751261
Toll free809 or 10+254 8003457023
Premium rate909+254 900 359107

Test numbers and what the check says

Every result below comes from the same check as the validator above. Use a number to see how it fails.

Test numbers for Kenya
NumberCaseResult
+254 712 123456Example numberPasses Valid mobile number.
+254 201 751261Landline rangePasses Valid landline number.
+254 8003457023Toll free rangePasses Valid toll-free number.
+254 900 359107Premium rate rangePasses Valid premium-rate number.
0712123456Written the local wayPasses Valid mobile number.
+254 71212345One digit shortFails 8 digits suits landline numbers, but a number starting 71 is not in any of those ranges.
+254 71212345671Too many digitsFails Too long: 11 digits follow the country code, where Kenya allows 7 to 10 digits.
+254 712123Below the shortest lengthFails Too short: 6 digits follow the country code, where Kenya allows 7 to 10 digits.
+254 312 123456Right length, unused startFails 9 digits suits mobile, landline, toll-free or premium-rate numbers, but a number starting 31 is not in any of those ranges.

Test numbers are computed from the rules and never dialled. A passing one proves the pattern, not that someone owns it.

Mistakes to look for

Common mistakes with Kenya numbers
MistakeExampleResult
Keeping the 0 after +254. The 0 only exists for calls made inside Kenya. Behind the plus sign and the country code it has to go; a strict system will refuse the number as typed.+254 0712123456Valid mobile number. The 0 after +254 is only for local dialling and is dropped from the international form. Store it as +254712123456.
Typing 000 and a plus sign together. 000 is the dialled form of the plus sign. One of the two is enough, never both.+000254712123456It starts with +000, but numbers in Kenya start with +254.
Giving a mobile number a landline length. Landline numbers allow lengths of 7 to 9, mobile numbers of 9. A mobile-looking start cut to 7 digits fits neither.+254 71212347 digits suits landline numbers, but a number starting 71 is not in any of those ranges.

Questions about Kenya numbers

What makes a phone number valid in Kenya?
After the country code, its digits must match the pattern of at least one number type in the plan: mobile, landline, toll free or premium rate. The count is 7 to 10 digits in all, and each type has its own count and its own starting digits, shown in the table above.
How do I write a mobile number for Kenya?
A mobile number is 9 digits long after +254 and starts 10 to 14, 18 or 7. Written for international use it reads +254 712 123456; the E.164 form for storing is +254712123456.
Does the leading 0 count when I validate a number?
Written the local way, it is removed before the check, so 0712123456 and +254712123456 give the same result. Behind a plus sign the check still accepts it, with a note to store the number without it.
Does a valid result mean the number is in service?
No. The check reads the numbering plan only: it never rings the number and cannot tell whether a subscriber holds it today. It rules out numbers that cannot exist.

Validate numbers in bulk

The page checks one number at a time. The phone lookup does the same check for any country from the API, and reports the number type the numbering plan assigns with each result.

The LookValid phone lookup and what one check costs
ProductCreditsDocs
Phone Numbering-Plan Validation1 credit per valid numberAPI docs

Kenya country code and dialling · Phone number formatter · Validate a number from any country

Rules: version 1.13.15 of libphonenumber-js, published 8 October 2026, built on Google's libphonenumber metadata. LookValid is not connected to Google or to any phone company named here.