# Automatic Phone Number Formatting

**URL:** <https://community.hubspot.com/t/automatic-phone-number-formatting/3640>\
**Category:** HubSpot Ideas\
**Tags:** calling, object\
**Created:** [October 20, 2017, 7:10pm UTC](https://community.hubspot.com/t/automatic-phone-number-formatting/3640 "2017-10-20T19:10:59Z")\
**Posts on this page:** 1\
**Showing post:** 91

<div class="post-metadata">

**Author:** ![JOpie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jopie/32/87988_2.png) [@JOpie](https://community.hubspot.com/u/JOpie)\
**Post date:** [September 17, 2021, 3:52pm UTC](https://community.hubspot.com/t/automatic-phone-number-formatting/3640/91 "2021-09-17T15:52:19Z")

</div>

Hi -

Just to put my two cents in: there is a standard for this, E.164, that HubSpot should adhere to.

Put simply, this an international ITU-T recommendation for the worldwide public switched telephone network. In other words, it’s what the telephone companies use. No more than 15 digits, excluding the international call prefix. Prefix with + to indicate that the country calling code is included.

> **[E.164](https://en.wikipedia.org/wiki/E.164)**
>
> E.164 is an international standard (ITU-T Recommendation), titled The international public telecommunication numbering plan, that defines a numbering plan for the worldwide public switched telephone network (PSTN) and some other data networks. E.164 defines a general format for international telephone numbers. Plan-conforming telephone numbers are limited to only digits and to a maximum of fifteen digits. The specification divides the digit string into a country code of one to three digits, and t...

The neat thing about this approach is that DNS mapping is then possible, i.e., any phone number can be mapped into a domain name, after which DNS queries can can locate the Internet service facilities to accept and process phone calls to the owner of record of the number, allowing direct end-to-end internet connections without passing to the public switched telephone network (and any fees they might charge. Unfortunately, not all countries support this, but some major European countries do…

John

---

_[View the full topic](https://community.hubspot.com/t/automatic-phone-number-formatting/3640)._
