Phone numbers · KE
Kenya phone number format
Kenya numbers use the country code +254. A mobile number looks like 0712 123456 at home and +254712123456 in international E.164 format.
| Type | Example (national) | International | E.164 | Digits |
|---|---|---|---|---|
| Mobile | 0712 123456 | +254 712 123456 | +254712123456 | 9 |
| Landline | 020 2012345 | +254 20 2012345 | +254202012345 | 7, 8, 9 |
| Toll-free | 0800 223 456 | +254 800 223 456 | +254800223456 | 9, 10 |
| Premium-rate | 0900 223 456 | +254 900 223 456 | +254900223456 | 9 |
- Country calling code
- +254
- National (trunk) prefix
- 0
- International call prefix
- 000
- Separate VoIP range
- No
- Time zones
- Africa/Nairobi
Validate in code
Check a Kenya number.
Send the number as typed plus country: "KE". You get it back in E.164 with its line type, ready to store.
curl https://veqen-app.com/v1/phone/check \
-H "Authorization: Bearer $VEQEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"country": "KE", "phone": "0712 123456"}'import os, requests
r = requests.post(
"https://veqen-app.com/v1/phone/check",
headers={"Authorization": f"Bearer {os.environ['VEQEN_API_KEY']}"},
json={"country": "KE", "phone": "0712 123456"},
timeout=10,
)
result = r.json()
print(result["risk"]["verdict"], result["risk"]["reasons"])const res = await fetch("https://veqen-app.com/v1/phone/check", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VEQEN_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({"country": "KE", "phone": "0712 123456"}),
});
const result = await res.json();
console.log(result.risk.verdict, result.risk.reasons);Questions
Kenya numbers
What is the country code for Kenya?
+254. Dial it after your international access code, or use +254 from a mobile phone.
How do I format a Kenya phone number in E.164?
Drop the national prefix (0) and add +254. For example 0712 123456 becomes +254712123456.
How many digits is a Kenya mobile number?
9 digits after the country code.
Does Kenya have VoIP phone numbers?
There is no separate VoIP range in the numbering plan, so VoIP numbers look like ordinary numbers.