UK Phone Number Generator
A UK phone number generator produces correctly formatted British telephone numbers drawn from the blocks Ofcom reserves for drama and fiction.
Numbers are formatted the way they are written in the UK — 020 7946 0123, 0161 496 0123, 07700 900123 — and are also available in E.164 and digits-only form. Because they come from Ofcom’s reserved ranges rather than live area codes, an accidental call or SMS from a test environment cannot reach a member of the public.
Options
| Name | Type | Default | Description |
|---|---|---|---|
count | integer | 10 | How many records to return, from 1 to 1000. |
range | string | — | Reserved block id, for example "london", "manchester" or "mobile". |
location | string | — | Post-town slug; resolved to the nearest reserved block. |
kind | enum | — | Filter by number type. |
Use cases
- Form and API validation: Test UK telephone validation, including the two-, three-, four- and five-digit area codes that trip up naive patterns.
- Safe end-to-end testing: Run flows that send SMS or place calls without any risk of contacting a real person.
- CRM and support fixtures: Fill demo records with realistic UK numbers that are guaranteed unallocated.
REST API
GET /api/v1/phone/random
curl "https://ukaddressgenerator.org/api/v1/phone/random?count=10"
{
"status": "success",
"count": 1,
"data": [
{ "formatted": "020 7946 0412", "raw": "02079460412", "e164": "+442079460412", "diallingCode": "020", "kind": "geographic", "area": "London", "reservedForDrama": true }
]
}
Frequently asked questions
- Can a generated number reach a real person?
No. Every number comes from an Ofcom block permanently reserved for drama, such as 020 7946 0xxx, 0161 496 0xxx or 07700 900xxx. Those numbers are never allocated to subscribers.
- Why is 020 7946 0123 written that way?
The London area code is 020 and the local number is eight digits. Writing it as "0207 946 0123" is a common error — there is no 0207 area code.
- Can I generate a number for a specific city?
Yes. Choose a reserved range by area. Cities without a dedicated Ofcom block use 01632 960xxx, which belongs to no geographic area.