{
  "id": 22176547,
  "title": "Phone numbers in E.164: the formatting bugs that break SMS and calls",
  "url": "https://urgent.news/2026/11/27/phone-numbers-in-e-164-the-formatting-bugs-that-break-sms-and-calls",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-27T15:00:01.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/packetexchangeio/phone-numbers-in-e164-the-formatting-bugs-that-break-sms-and-calls-4de0"
  },
  "original_language": "en",
  "account": "In the world of phone numbers, a common issue arises – numbers stored in an inconsistent format that can break SMS and calls. This problem stems from leaving behind dialling prefixes, adding duplicate country codes, importing CSV data incorrectly, or accepting duplicate user entries. To combat these formatting bugs, phone numbers must be stored in E.164 format, which includes a plus sign, country code, and national number without any spaces or punctuation. A single function, such as the one provided using the libphonenumber library, can easily convert raw numbers into E.164 format, ensuring consistent storage and avoiding formatting issues. By implementing this normalization process, developers can prevent common mistakes like leaving in UK's leading zero, double country codes, or spreadsheet formatting mishaps, ultimately improving the reliability of SMS and voice APIs.",
  "summary": "AI disclosure: this article was written with the help of AI and checked by a human before publishing. Most \"SMS not delivered\" and \"call failed\" tickets I have seen were not network problems. They were phone numbers stored in a shape the carrier could not route. The fix is boring and it works: store every number in E.164 and convert at the edges. What E.164 is E.164 is the international numbering…",
  "summary_source": "publisher",
  "key_points": [
    "Phone numbers often stored in inconsistent formats causing SMS and call failures",
    "Inconsistent formats stem from dialling prefixes, duplicate country codes, CSV errors",
    "E.164 format with plus sign, country code, no spaces/punctuation resolves bugs"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}