HVSMS

Data Quality

How to Validate Mobile Numbers Before Sending SMS

A send-ready SMS audience is more than a list of valid-looking numbers. Build an eligibility workflow that joins number intelligence to consent, suppression, and operational data.

A valid number is not automatically a sendable SMS contact

To validate mobile numbers before sending SMS, normalize the phone field, confirm its syntax, identify the line type, interpret any available reachability signal, and then match the result to a current consent and suppression record. That sequence prevents a common operational mistake: treating a number that merely looks valid as a person your brand may text. For US commercial robotexts, the FCC says prior consent is required and commercial texts require written consent; a recipient may revoke consent at any time by any reasonable means. [1]

Validation is data-quality work, not a substitute for permission. A lookup can indicate that +1 415 555 0123 has a plausible format or is a mobile line. It cannot establish that the current subscriber is the customer who opted in, that the consent covered this program, or that a STOP was not received after the lookup. Treat phone intelligence as one eligibility input in a controlled sending decision. For the distinction between checking a number and proving a person can receive or control it, see mobile number validation versus verification.

Start with normalization, country codes, and syntax

Raw CRM values are inconsistent by design. Customers enter parentheses, spaces, extensions, local dialing formats, and numbers from countries other than the one your team expected. Preserve the original entry for audit and support, but create a separate canonical field for campaign processing. A practical canonical target is E.164: a plus sign, a country calling code, and the national number, with no presentation punctuation. Lookup documentation supports E.164 or national input, but warns that national-format input without an explicit country can be ambiguous and defaults to the US in its example implementation. [3]

  1. Capture a country or market context at collection. Do not infer every record as US merely because your business is US-based.
  2. Strip display punctuation and separate extensions from the SMS destination; an extension is not part of a mobile SMS address.
  3. Parse and standardize the destination into E.164 while retaining the raw value, source system, and timestamp.
  4. Reject clearly malformed values from automated SMS flows and route recoverable errors to a profile-update or support process.
  5. Store the normalized number once and deduplicate on that value, not on the original text field.

Syntax validation checks numbering-plan plausibility, not deliverability or consent. For example, Twilio’s Basic Lookup returns standardized formats and a validity result based on regional length and prefix information; an invalid response can include a validation error such as a number being too long. [3] That is a useful first gate, but it should not be your last one.

How to validate mobile numbers before an SMS campaign

Use a staged decision rather than one blanket ‘valid’ field. The right action depends on what the signal actually says and whether your program has permission to send. This structure also makes campaign review easier because marketing, CRM, and implementation teams can see why a record was included or excluded.

StageWhat to checkRecommended actionWhat it does not prove
NormalizeCountry context, digits, E.164 output, duplicate recordStandardize and consolidate before enrichmentThat the line exists or accepts SMS
SyntaxNumbering-plan length and prefix plausibilityExclude malformed destinations from sendsThat the number is currently assigned
Line typeMobile, landline, fixed VoIP, non-fixed VoIP, toll-free, or unknownExclude landlines; set a defined review policy for VoIP and unknownThat a mobile subscriber consented
Line statusActive, reachable, unreachable, inactive, or unknown where coverage existsSuppress inactive; retry or defer only under a defined operational policyThat a reachable handset belongs to the original customer
ReassignmentWhether a US number was reassigned after a reference dateQuarantine and reacquire permission when the signal or timing requires itThat a no-reassignment result makes consent permanent
PermissionOpt-in scope, source, timestamp, disclosures, STOP/DNC stateAllow the send only when your consent policy passesThat a technically valid number can be marketed to

For US marketing programs, keep the final permission decision separate from delivery enrichment. The FCC consumer guide states that its rules apply even if a mobile number is not on the National Do Not Call Registry. [1] In practice, your audience query should require the approved consent state, exclude all global and program-level suppressions, and then apply the number-quality results. This is central to SMS consent records and audit trails, not merely a data-cleaning exercise.

Use line type and reachability signals for the decisions they support

A line type lookup helps avoid obvious mismatches between a channel and a destination. Twilio’s current Line Type Intelligence documentation identifies types including mobile, landline, fixed VoIP, non-fixed VoIP, toll-free, and unknown. It describes landlines as generally unable to receive SMS and mobile numbers as generally able to receive SMS. [4] That makes landline exclusion a sensible baseline. Its type labels are intelligence signals, however, not a universal authorization or deliverability guarantee.

Do not automatically discard every VoIP record. Fixed and non-fixed VoIP can serve legitimate customers, while their suitability may vary by program, provider policy, and risk tolerance. Establish a documented rule for each line type: send, hold for confirmation, or exclude. Review the operational tradeoffs in identifying landlines versus mobile numbers before turning a vendor label into a hard business rule.

Reachability adds a time-sensitive network signal. In Twilio’s Line Status documentation, ‘Active’ means valid and active but not necessarily reachable, while ‘Reachable’ means the handset is connected and reachable; ‘Inactive’ means unassigned or invalid. The product is in public beta and may not return data for every network. [5] Use inactive to prevent waste and investigate repeated unknowns. Do not treat active or reachable as proof of identity, consent, purchase intent, or legal permission.

Reassignment deserves its own control because phone numbers can move to a new subscriber. The FCC’s Reassigned Numbers Database is designed to help callers identify numbers reassigned from a prior consumer so they can avoid contacting people who did not give permission. [7] If you use reassignment data, compare it to the consent or last-confirmed date, quarantine affected records, and reacquire permission rather than assuming an old opt-in follows the number forever.

The CRM should join three evidence streams: the canonical phone number, the program-specific consent record, and the suppression history. Matching only on a customer ID is risky when a shopper changes a profile number, when two contacts share a household number, or when an imported list overwrites a newer preference. Match on the normalized number and retain a link to the consent event that permitted the program.

  • Require an affirmative consent state appropriate to the message category and program; do not infer marketing consent from a transaction alone.
  • Retain source, date and time, collection method, disclosure version or capture evidence, brand/program, and the normalized number associated with the opt-in.
  • Apply STOP and other do-not-contact records before every send, including records received through another system or support channel.
  • Keep consent and suppression history even when a contact is removed from promotional segmentation, subject to your retention and privacy program.
  • Send a confirmation or profile-update request through an approved flow when a number changes rather than silently transferring an old permission record.

This article offers operational guidance, not legal advice. Counsel should determine the consent standard that applies to your messages, technology, jurisdictions, and use case. The FCC says commercial texts require written consent and that consumers may revoke consent by any reasonable means. [1] HVSMS can help turn the resulting requirements into CRM rules, audit fields, templates, and implementation tests.

Build the API workflow around an eligibility gate

Run cheap, deterministic checks at intake and reserve paid or slower intelligence for the records and moments that justify it. A form submission or checkout update is usually the right time to normalize and validate syntax. A high-value campaign, a long-inactive record, or a changed number can justify fresh line-type, status, or reassignment checks. Design the workflow so the messaging platform receives an explicit eligibility result, not a loose phone field.

  1. Ingest the submitted number, country context, source event, and consent capture data without overwriting the raw entry.
  2. Normalize to E.164 and run syntax validation. Mark malformed values as ineligible and trigger a correction path where appropriate.
  3. Call a number-intelligence provider for line type. Use line-status or reassignment signals selectively according to the policies and coverage you have tested.
  4. Write the response, provider timestamp, response version, and decision reason to a controlled data model. Keep intelligence data distinct from consent evidence.
  5. Evaluate a single eligibility rule: valid syntax, acceptable line type, no disqualifying status or reassignment signal, valid program consent, and no suppression.
  6. Sync only eligible records and the required messaging attributes to the sender platform. Log the audience snapshot and rule version for each campaign.

An implementation should fail closed. A timeout, unknown line type, absent country context, or unmatched consent record should default to a hold state, not a marketing send. At scale, add monitoring for lookup errors, sudden shifts in line types, duplicate rates, consent-match failures, carrier filtering, and unsubscribe patterns. Pair this gate with your broader SMS list hygiene guide and SMS deliverability guidance so data quality improves the entire sending operation.

Revalidate when the risk or data changes—not on a blind calendar alone

There is no universal refresh interval that makes every SMS list safe or efficient. Revalidation should follow a risk-based schedule based on message value, acquisition source, expected customer turnover, prior engagement, provider coverage, and the chance that a number changed hands. Check the number again at moments when its status is most likely to matter.

  • At initial capture, checkout, account creation, or a profile-number change.
  • Before a high-value or unusually large campaign when the last intelligence check is old under your policy.
  • Before reactivating long-dormant contacts or after a meaningful period without engagement.
  • After recurring delivery failures, carrier errors, customer-service reports, or a suspicious spike in opt-outs.
  • Whenever a reassignment check indicates the number may no longer be tied to the consent event.

Avoid both extremes. Constantly querying every record can add cost and collect signals you do not need. Never refreshing a long-lived list lets stale, unreachable, or reassigned destinations accumulate. Document the trigger, the data source, the action, and the owner of every exception. For a broader cadence framework, see how often to clean an SMS list.

Teams make better decisions when they label the source of each rule. Legal requirements govern what may be sent and to whom. Carrier and platform policies influence whether traffic is accepted, registered, filtered, or supported. Conservative operating practices reduce avoidable errors even where a rule does not prescribe a specific technical control. Conflating the three can either create false confidence or unnecessary friction.

Rule categoryWhat it means for validationPractical owner
Legal requirementMaintain the consent and revocation controls that apply to your message type and program; number validity does not replace consent.Legal and compliance, with CRM implementation
Carrier or platform policyMeet sender-registration and campaign-review expectations for the route you use; preserve verifiable opt-in, opt-out, and help information.Messaging operations and implementation
Conservative best practiceNormalize, deduplicate, use line intelligence, hold uncertain records, and revalidate on meaningful triggers.CRM, lifecycle, and data operations

For example, A2P 10DLC is a US carrier standard for application-to-person traffic sent over 10-digit long codes. Provider documentation describes registration as supplying brand information and campaign details including how users opt in, opt out, and get help. [6] CTIA describes its Messaging Principles and Best Practices as voluntary industry best practices intended to protect consumers from unwanted messages. [2] Treat both as carrier-ecosystem requirements or guidance, not as a replacement for legal analysis.

Frequently asked questions

Questions about validate mobile numbers

What is the difference between phone number validation and verification?

Phone number validation assesses whether a number is correctly formatted, plausible for a numbering plan, and possibly what type or status of line it is. Verification usually asks the person to prove control of the number, such as by entering a one-time code. Neither step alone proves that your business has the consent required for a marketing SMS program. [3]

Can I text every number labeled mobile?

No. A mobile label only suggests the line generally can receive SMS. It does not show that the current subscriber gave consent, that the permission applies to the campaign, or that the number is not suppressed or reassigned. Use mobile status as one condition within a consent-based eligibility rule. [4] [7]

Does an active or reachable result guarantee delivery?

No. A line-status result is a point-in-time network signal. In Twilio’s documentation, active does not necessarily mean reachable, and the Line Status product may not return data for every network. Carrier filtering, device state, message content, sender configuration, and other factors can still affect delivery. [5]

When should an ecommerce brand revalidate a mobile number?

Validate at capture and whenever the number changes. Add risk-based checks before high-value or large sends, when reactivating a dormant customer, after delivery problems, and when a reassignment signal calls the link between the number and prior consent into question. The exact cadence should reflect your program and data risk rather than a universal interval.

Free strategy teardown

Turn your SMS list into a controlled sending system

Get a free SMS strategy teardown from HVSMS. We will identify the data, consent, registration, and workflow gaps standing between your CRM and a cleaner, more reliable SMS program.Request Your Free SMS Strategy Teardown →

References

[1]FCC: Stop Unwanted Robocalls and Texts

[2]CTIA: Messaging Principles and Best Practices

[3]Twilio Lookup v2 API Documentation

[4]Twilio Line Type Intelligence Documentation

[5]Twilio Line Status Documentation

[6]Twilio: Programmable Messaging and A2P 10DLC

[7]Reassigned Numbers Database