Glossary
Trunk prefix: the 0 you drop in international format
A trunk prefix is the digit dialed before a national number, such as the leading 0 in the UK or France. Why it is dropped in E.164 and how it trips forms.
Updated 2026-11-23
A trunk prefix is the digit or digits dialed in front of a national number when calling inside the same country but outside the local area or network. In the United Kingdom, France and Germany it is 0. In the North American plan it is 1. It is dialing behavior, not part of the number, so it is left out of the international form.
How it works
Think of three layers in what a person types:
| Layer | Example (UK) | Purpose |
|---|---|---|
| International prefix | 00 or + |
Leaves the country |
| Country calling code | 44 |
Selects the country |
| Trunk prefix | 0 |
Selects national routing |
| National number | 7400 123456 |
The line |
Dialing from abroad, you use the first, second and fourth layers. Dialing from inside the country, you use the third and fourth. The trunk prefix is therefore never combined with the country code.
| Written nationally | E.164 |
|---|---|
| 07400 123456 (UK) | +447400123456 |
| 06 12 34 56 78 (France) | +33612345678 |
| 0151 1234567 (Germany) | +491511234567 |
| 1 (415) 555-0123 (US) | +14155550123 |
Exceptions exist. Some countries have no trunk prefix at all. In some plans, such as Italian landlines, the leading 0 is part of the number and stays after the country code. Any rule that says "always drop the first 0" is wrong for those. The national plan decides.
You may also see the written form +44 (0) 7400 123456, which tells domestic callers to dial the 0 and international callers to skip it. A parser must remove the bracketed zero.
Why it matters for validation
The trunk prefix is the number one source of malformed E.164 values. A form that glues +44 and 07400123456 produces +4407400123456, which has one digit too many and fails the numbering plan.
Qelka reads the number the way the destination country's plan does. Given 07400 123456 with country set to GB, it strips the trunk prefix and returns e164 as +447400123456. Given the same digits with no country, the status is unknown: without the country, the digits cannot be read. Send the country whenever the user types a national number. The phone API documents both cases.
Guidance for forms:
- Let the user pick a country, then accept the national format with the trunk prefix.
- Strip non-digits, then let the validator remove the prefix.
- Never concatenate the country code and the raw input yourself.
The E.164 format explained article has more country examples.
Related
Frequently asked questions
What is a trunk prefix?
Do I drop the leading 0 in international format?
What is the difference between a trunk prefix and an international prefix?
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