WhatsApp number format for Kenya

Country code +254. How to turn a Kenyan phone number into a working WhatsApp link.

At a glance

A Kenyan mobile written locally as 0712 123456 becomes 254712123456 in a WhatsApp link, giving https://wa.me/254712123456. The digit used for dialling inside the country is removed and the country code goes in its place.

The three ways to write the same number

These are the same Kenyan mobile in each format. The example is a reserved test number from Google’s libphonenumber metadata, so it is structurally correct without belonging to anyone.

Inside Kenya0712 123456
International+254 712 123456
In a wa.me link254712123456

The rule for Kenya

Kenyan mobile numbers start 07 or 01 domestically. Drop the leading 0 and prefix 254.

  1. Start with the local number. 0712 123456
  2. Apply the Kenyan rule. Remove the domestic dialling prefix shown above.
  3. Add the country code. Put 254 in front, giving 254712123456.
  4. Build the link. Append the digits to https://wa.me/ with nothing between them, or use the generator and let it handle the formatting.

Does a valid number mean the person is on WhatsApp?

No. Everything above concerns format, which is a separate question from whether an account exists. A correctly formatted Kenyan number can belong to a landline, to a newly issued SIM, or to someone who has deleted their WhatsApp account, and in each case the link will open and report that the number is not on WhatsApp.

To find out, open a chat link for the number and see whether WhatsApp starts a conversation.

How do I write a Kenyan number for WhatsApp?

Write 254 followed by the subscriber number, digits only, with no plus sign, spaces or dashes. A Kenyan mobile written locally as 0712 123456 becomes 254712123456, giving the link https://wa.me/254712123456.

What is the WhatsApp country code for Kenya?

Kenya uses country code +254. In a wa.me link the plus sign is dropped, so the link starts https://wa.me/254.

Do I remove the leading zero from a Kenyan number?

Yes. The leading digit used for dialling inside Kenya is not part of the international number and must be removed before the country code is added. 0712 123456 becomes 254712123456, not 2540712123456.

Can I message a Kenyan number without saving it?

Yes. Open https://wa.me/ followed by the number in international format and WhatsApp starts the conversation without adding a contact. Recent versions of WhatsApp can also do this by typing the number into the new-chat search.

Why does my Kenyan WhatsApp link say the number is invalid?

Either the number is formatted wrongly or it has no WhatsApp account, since WhatsApp shows the same message for both. Check the digits against 254712123456 first: the most common cause here is keeping the leading zero.