# Format phone number to add country code

**URL:** <https://community.hubspot.com/t/format-phone-number-to-add-country-code/81075>\
**Category:** Data Hub\
**Tags:** data-quality-automation\
**Created:** [May 12, 2023, 5:23am UTC](https://community.hubspot.com/t/format-phone-number-to-add-country-code/81075 "2023-05-12T05:23:35Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![jruocco](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jruocco/32/51304_2.png) [@jruocco](https://community.hubspot.com/u/jruocco)\
**Post date:** [August 27, 2024, 7:19pm UTC](https://community.hubspot.com/t/format-phone-number-to-add-country-code/81075/18 "2024-08-27T19:19:05Z")

</div>

Hi There! I believe the “number of instances” makes sure that this logic only applies to the first “0” in the phone number. I hope this helps!

---

_[View the full topic](https://community.hubspot.com/t/format-phone-number-to-add-country-code/81075)._
