How to Format Phone Numbers Correctly for Have I Been Pwned Searches

Searching a phone number in Have I Been Pwned can be useful when you want to know whether a number appeared in a known data breach. However, the results are only as reliable as the format you enter. Phone numbers are written differently around the world, so using the wrong local format, missing country code, or extra characters can lead to missed matches or confusion.

TLDR: For the most reliable Have I Been Pwned phone number searches, use the international E.164 style format: country code first, then the national number, with no spaces, brackets, hyphens, or leading domestic zero. If the search field accepts a plus sign, enter the number as +countrycodenumber; if not, use digits only in the same order. Do not include extensions, labels, or local dialing prefixes.

Why phone number formatting matters

Phone numbers are not universal in the way email addresses are. An email address generally has one obvious written form, but a phone number may have several valid-looking versions depending on where it is written. For example, the same UK number might appear as 020 7183 8750 locally, +44 20 7183 8750 internationally, or 0044 20 7183 8750 when dialed from some countries.

For breach searches, this inconsistency is a serious issue. If a breached database stored numbers in international format, but you search using a domestic format, the system may not identify the match. Conversely, if you include punctuation or prefixes that were not stored with the original number, your search may be less effective. The goal is to convert the number into its cleanest internationally recognizable form before searching.

The recommended format: E.164

The safest format to use is based on E.164, the international numbering standard used to represent phone numbers consistently across countries. In plain terms, E.164 means:

  • Start with the country calling code.
  • Remove the domestic trunk prefix, usually a leading 0.
  • Use only the subscriber number after the country code.
  • Avoid spaces, brackets, hyphens, periods, and text.
  • Do not include extensions such as x123 or ext. 123.

A fully formatted E.164 number is commonly written with a leading plus sign, such as +14155552671. Some search tools accept the plus sign; others may expect digits only, such as 14155552671. The important point is that the number should remain in the same international order: country code followed by the rest of the number.

How to convert a local phone number before searching

To format a number correctly, begin by identifying the country where the phone number is registered. This matters because the country code is not always obvious from the local number alone. A local number that begins with 04, for example, could mean very different things in different countries.

Use this process:

  1. Identify the country. Determine the country associated with the number.
  2. Find the country calling code. For example, the United States and Canada use 1, the United Kingdom uses 44, Australia uses 61, and Germany uses 49.
  3. Remove the local dialing prefix. Many countries use a leading 0 for domestic calls. This is usually removed when adding the country code.
  4. Remove formatting characters. Delete spaces, hyphens, parentheses, and dots.
  5. Enter the final number. Use the plus sign if accepted; otherwise, enter digits only.

For example, a UK number written locally as 020 7183 8750 becomes +442071838750. The leading domestic 0 is removed, and the UK country code 44 is added. If digits only are required, enter 442071838750.

Examples of correctly formatted phone numbers

The following examples show how common local formats can be converted for breach searching:

  • United States: (415) 555-2671 becomes +14155552671 or 14155552671.
  • United Kingdom: 020 7183 8750 becomes +442071838750 or 442071838750.
  • Australia: 0412 345 678 becomes +61412345678 or 61412345678.
  • Germany: 030 123456 becomes +4930123456 or 4930123456.

These examples are illustrative, but the principle is consistent: country code first, no domestic prefix, no visual separators. If you are unsure whether a leading zero is part of the actual number or just a dialing prefix, verify the format using a trusted source for that country’s numbering rules.

Common mistakes to avoid

Incorrect formatting can produce unreliable results. Avoid the following mistakes when performing a Have I Been Pwned search:

  • Using local-only format: Searching 02071838750 instead of 442071838750 may fail for a UK number.
  • Keeping the leading zero: Entering 4402071838750 is usually incorrect because the domestic 0 should be removed.
  • Adding international dialing prefixes: Do not use 00 or 011 before the country code. Those are dialing instructions, not part of the international number.
  • Including extensions: A number such as +14155552671 ext 204 should be searched only as +14155552671.
  • Including punctuation: Spaces, brackets, and hyphens may make numbers easier to read, but they should not be used in a strict search format.

Understand the limits of the search

A properly formatted number improves your chances of finding a match, but it does not guarantee that every exposure will be detected. Have I Been Pwned only reports data from breaches that have been obtained, verified, processed, and made searchable through the service. If a number does not appear in the results, that does not prove it has never been leaked.

Likewise, a positive result should be taken seriously, but it should be understood in context. A phone number appearing in a breach does not necessarily mean your mobile account has been compromised. It may mean the number was included in a breached profile, contact list, customer record, or marketing dataset. Still, exposed phone numbers can increase the risk of phishing, smishing, SIM swap attempts, spam, and social engineering.

Privacy and safety considerations

Before searching, make sure you are using the legitimate Have I Been Pwned website and not a lookalike page. Entering personal information into an untrusted website can create the very risk you are trying to investigate. Be cautious with any site that asks for unnecessary details, account passwords, one-time codes, or payment information to perform a basic breach lookup.

If your number appears in a breach, consider taking practical steps. Enable a PIN or port-out protection with your mobile carrier where available. Be skeptical of unexpected text messages, especially those requesting login codes or urgent payments. Avoid reusing passwords across accounts, and enable multi-factor authentication through an authenticator app or hardware security key where possible.

Final checklist

Before submitting a phone number for a Have I Been Pwned search, confirm the following:

  • The number includes the correct country code.
  • The domestic leading 0 has been removed where appropriate.
  • No spaces, hyphens, brackets, periods, or labels remain.
  • No extension or internal office number is included.
  • You are searching on the legitimate service, not a copycat site.

Correct formatting is a small step, but it is essential for meaningful breach checking. Use the international format, keep the number clean, and interpret the result carefully. A well-formatted search helps you make better security decisions without drawing false conclusions from avoidable input errors.