Skip to content

Help center

Landline or mobile: how to tell what type a number is

Find out whether a phone number is a landline, mobile, VoIP or toll-free line, and why US and Canadian numbers cannot be told apart from the number alone.

Updated 2026-11-23

Check the line_type of the number. In most countries the numbering plan separates mobile from landline ranges, so the basic check answers it. In the US and Canada the plan does not, so the basic check returns fixed_line_or_mobile and only a live lookup can say which it is.

Why it depends on the country

Each country's regulator assigns ranges. Many keep mobile ranges apart from fixed lines, and the free tools and API read that data. The North American Numbering Plan (NANP) does not: an area code and exchange can serve either kind of line, and subscribers can move a number between them. See line type for the full list of types.

Check one number for free

  1. Open the line type lookup.
  2. Enter the number with its country code, such as +44 7400 123456.
  3. Read the type. mobile, landline, voip, toll_free and premium_rate are the ones you will meet most.
  4. If a US or Canadian number shows fixed_line_or_mobile, the live level, available from a free account, asks the network.

Check it with the API

bash
curl https://api.qelka.com/v1/phone \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"phone": "07400 123456", "country": "GB"}'

The result has e164 set to +447400123456 and:

json
{
  "valid": true,
  "line_type": "mobile"
}

For a US number, add "level": "live":

bash
curl https://api.qelka.com/v1/phone \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"phone": "+14155550123", "level": "live"}'

At the live level, the type reported by the provider replaces the plan's: fixed_line_or_mobile becomes mobile in the reference example. A basic call costs 1 credit and a live call 3 credits.

line_type What to do
mobile Send SMS.
landline Call, or ask for a mobile number.
fixed_line_or_mobile Run a live lookup before sending a text.
voip Allow, but consider extra verification. See Identify VoIP numbers.
toll_free, premium_rate, shared_cost Usually not a customer's personal phone. Ask for another number.
unknown The type could not be determined. Do not assume mobile.

Use the type in a form

On submit, validate on your server and branch on line_type: accept mobile, ask for another number when the type is toll_free or premium_rate, and send a code only to numbers that can receive it. Validate phone numbers in a signup form shows the full flow.

Limits to keep in mind

  • The type describes the range, not the handset. A landline number can forward to a mobile. A mobile number can be a second line in an app.
  • VoIP detection depends on ranges. Number ranges assigned to internet telephony are flagged. Numbers some VoIP services rent from ordinary mobile or landline blocks look like regular ones.
  • Types change. Numbers are ported. Re-check before a big send.

Common mistakes

  • Treating fixed_line_or_mobile as mobile. It means unknown, and a text to a landline fails.
  • Guessing from the first digits. Rules differ by country and change when regulators open new ranges.
  • Skipping country. Numbers without + need it, or the status is unknown.
  • Paying for live on every number. Run basic first and go live only for the ambiguous ones.

Frequently asked questions

Can I tell if a number is mobile or landline from its digits?
In many countries, yes: the plan reserves prefixes for mobile ranges, so a UK number starting 07 is mobile. In the United States and Canada, no. The North American plan does not separate the two, so the API returns fixed_line_or_mobile at the basic level. A live lookup asks the network and can return mobile or landline for those numbers.
Why does the API return fixed_line_or_mobile?
Because the numbering plan cannot tell. The North American Numbering Plan assigns blocks by area code and exchange without saying whether a line is fixed or mobile, and subscribers can port between them. The value is the honest answer from plan data. Use the live level when you need to know whether a text message can reach the number.
Why does line type matter for SMS?
A landline cannot receive a standard text message, so sending one wastes money and counts as a failed delivery. Knowing the type before you send lets you route landlines to a voice call, mobiles to SMS and VoIP numbers to extra checks. It also shows toll-free and premium-rate numbers that should not be in a customer list.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.

  • 100 free credits a month
  • No card
  • Test keys spend nothing
  • Cancel any time