UK mobile number testing
UK Mobile Number Format for Test Data
A realistic-looking mobile field should follow the UK numbering shape without creating a complete contact number or confusing mobile services with neighbouring personal-number and paging ranges.
By PostcodeLab · Published · Updated
Domestic and international shape
A conventional UK domestic mobile number contains 11 digits beginning with 0. In international presentation, remove the leading 0 and use country code +44. Spaces improve readability but should not be treated as part of the underlying identifier.
| Use | Pattern | Diallable? |
|---|---|---|
| Domestic test pattern | 07432 581 XXX | No |
| International test pattern | +44 7432 581 XXX | No |
Know the 07 service boundaries
Ofcom lists mobile services within 071–075 and 077–079. It separately identifies 070 as personal numbers and 076 as radiopaging. A validator should not accept every value beginning with 07 as an ordinary UK mobile number.
Ofcom publishes current allocated and available number blocks in its numbering data. Allocation information changes, so a maintained service should record its source date and periodically review its prefix data.
Why PostcodeLab masks the final digits
The generator chooses from a curated allocated-prefix snapshot, adds three random digits and replaces the final three digits with XXX. The output keeps the visual length needed for interface testing but cannot be dialled as displayed.
Do not replace the masked characters. Completing a pattern could produce a number assigned to an unrelated person or service. For automated tests, keep the literal X characters or use a product-specific reserved fixture agreed with the integration provider.
Validation checklist
- Normalise spaces and the
+44form before comparing values. - Distinguish ordinary mobile ranges from
070and most076services. - Do not infer a person's identity or current provider from a prefix.
- Validate again on the server when the value affects an account workflow.
- Use an explicit sandbox destination for real SMS delivery tests.
Official references
Related developer guides
UK Test Data Guide for QA and Development
Plan safer UK test data for QA and development with environment separation, data minimisation, retention controls, logging safeguards and review steps.
Read guidePostcodeLab Data Methodology and Sources
See how PostcodeLab selects UK postal records, separates synthetic identity fields, masks mobile patterns, handles removals and documents data limitations.
Read guideUK Address Form Test Cases and QA Checklist
Use practical UK address form test cases for field variation, postcodes, lookup failure, accessibility, mobile layouts, exports and integration safety.
Read guideUK Address Generator API for Testing
Try the free single-record UK address test-data API for QA, with a manual playground, JSON fields, masked mobile patterns, rate limits and safe examples.
Read guide