# Autofill City and State from Zipcode

**URL:** <https://community.hubspot.com/t/autofill-city-and-state-from-zipcode/445>\
**Category:** Lists, Lead Scoring & Workflows\
**Created:** [November 21, 2016, 4:58pm UTC](https://community.hubspot.com/t/autofill-city-and-state-from-zipcode/445 "2016-11-21T16:58:25Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![redbags](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/redbags/32/28756_2.png) [@redbags](https://community.hubspot.com/u/redbags)\
**Post date:** [November 21, 2016, 4:58pm UTC](https://community.hubspot.com/t/autofill-city-and-state-from-zipcode/445/1 "2016-11-21T16:58:25Z")

</div>

Does anyone have a solution to auto complete city and state from a zipcode. I’m trying to see if I can switch from zoho completely but this is something I absolutly need within hubspot

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [November 22, 2016, 1:15pm UTC](https://community.hubspot.com/t/autofill-city-and-state-from-zipcode/445/2 "2016-11-22T13:15:40Z")

</div>

Hey @redbags I just want to confirm the context here - are you in this case using HubSpot forms? What product (CRM for sales, COS for Marketing or Marketinng Free) are you using / looking to use?

---

<div class="post-metadata">

**Author:** ![redbags](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/redbags/32/28756_2.png) [@redbags](https://community.hubspot.com/u/redbags)\
**Post date:** [November 22, 2016, 7:45pm UTC](https://community.hubspot.com/t/autofill-city-and-state-from-zipcode/445/3 "2016-11-22T19:45:14Z")

</div>

Currently I’m using hubspot sales FREE addition but open to paid additions and other marketing with hubspot but first I need to insure everything I’m currently doing in zoho can be reproduced here.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [November 24, 2016, 1:36pm UTC](https://community.hubspot.com/t/autofill-city-and-state-from-zipcode/445/4 "2016-11-24T13:36:30Z")

</div>

In that case you might find HubSpot’s trial useful: [HubSpot 14 Day Free Trial | Content Marketing Software](http://offers.hubspot.com/free-trial)

---

<div class="post-metadata">

**Author:** ![ndwilliams3](https://avatars.discourse-cdn.com/v4/letter/n/c4cdca/32.png) [@ndwilliams3](https://community.hubspot.com/u/ndwilliams3)\
**Post date:** [December 1, 2016, 5:40pm UTC](https://community.hubspot.com/t/autofill-city-and-state-from-zipcode/445/5 "2016-12-01T17:40:10Z")

</div>

There’s nothing built into Hubpsot that i’m awae of to do that. However, If you are comfortable with Javascript or have someone on your team that is, you could use an api like [https://www.zipcodeapi.com/](https://www.zipcodeapi.com/) to populate hidden city and state fields on your forms.

---

<div class="post-metadata">

**Author:** ![ndwilliams3](https://avatars.discourse-cdn.com/v4/letter/n/c4cdca/32.png) [@ndwilliams3](https://community.hubspot.com/u/ndwilliams3)\
**Post date:** [December 1, 2016, 5:42pm UTC](https://community.hubspot.com/t/autofill-city-and-state-from-zipcode/445/6 "2016-12-01T17:42:33Z")

</div>

Here’s another similar option using Google’s Geo API

> <https://github.com/kovalent/examples/blob/gh-pages/zipcode/index.html>

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [December 9, 2016, 4:19am UTC](https://community.hubspot.com/t/autofill-city-and-state-from-zipcode/445/7 "2016-12-09T04:19:42Z")

</div>

Hi @redbags

When a visitor come to your website, HubSpot automatically understands the user location like City, Country, Region, etc…

With this data, you can easily segment your database and contact the right lead for the region that you want to target.

 ![Screen Shot 2016-12-09 at 3.16.23 pm.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/7/e/7e6f6aaba8128bd46d1d7b11019d5bcb8cd44c53.png)

---

<div class="post-metadata">

**Author:** ![tstrack](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tstrack/32/74736_2.png) [@tstrack](https://community.hubspot.com/u/tstrack)\
**Post date:** [May 7, 2018, 6:29pm UTC](https://community.hubspot.com/t/autofill-city-and-state-from-zipcode/445/8 "2018-05-07T18:29:34Z")

</div>

Is there a way I can use these (i.e. IP State/Region) to send in a follow-up email? For example I would have some hidden fields on my Hubspot form that would autofill this info.

---

<div class="post-metadata">

**Author:** ![GregEllis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gregellis/32/52535_2.png) [@GregEllis](https://community.hubspot.com/u/GregEllis)\
**Post date:** [November 11, 2021, 7:43pm UTC](https://community.hubspot.com/t/autofill-city-and-state-from-zipcode/445/9 "2021-11-11T19:43:41Z")

</div>

Hi there, you can now use this to autocomplete city and state from zipcode:

> **[US ZIP Code Lookup & Address Autocomplete for HubSpot](https://zipcodeinfo.org/)**
>
> Autocomplete US addresses and look up ZIP codes inside HubSpot. Full street, city, state, county & ZIP across all 50 states, saved to your CRM. From $19/mo.

---

<div class="post-metadata">

**Author:** ![GregEllis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gregellis/32/52535_2.png) [@GregEllis](https://community.hubspot.com/u/GregEllis)\
**Post date:** [November 11, 2021, 7:45pm UTC](https://community.hubspot.com/t/autofill-city-and-state-from-zipcode/445/10 "2021-11-11T19:45:04Z")

</div>

You can do this using this:

> **[US ZIP Code Lookup & Address Autocomplete for HubSpot](https://zipcodeinfo.org/)**
>
> Autocomplete US addresses and look up ZIP codes inside HubSpot. Full street, city, state, county & ZIP across all 50 states, saved to your CRM. From $19/mo.

It’s a Hubspot extension for zipcode lookups and address search, and it has autocomplete

---

<div class="post-metadata">

**Author:** ![kb-at-sanctuary](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kb-at-sanctuary/32/98099_2.png) [@kb-at-sanctuary](https://community.hubspot.com/u/kb-at-sanctuary)\
**Post date:** [May 25, 2022, 12:25pm UTC](https://community.hubspot.com/t/autofill-city-and-state-from-zipcode/445/11 "2022-05-25T12:25:22Z")

</div>

I’m not finding this in the app market place. Is it still listed?

---

<div class="post-metadata">

**Author:** ![GregEllis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gregellis/32/52535_2.png) [@GregEllis](https://community.hubspot.com/u/GregEllis)\
**Post date:** [May 25, 2022, 4:57pm UTC](https://community.hubspot.com/t/autofill-city-and-state-from-zipcode/445/12 "2022-05-25T16:57:13Z")

</div>

It is not on the marketplace yet as it is fairly new. But you can still install and use it exactly the same, just visit the link and click install.

---

<div class="post-metadata">

**Author:** ![kvlschaefer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kvlschaefer/32/71076_2.png) [@kvlschaefer](https://community.hubspot.com/u/kvlschaefer)\
**Post date:** [May 25, 2022, 7:54pm UTC](https://community.hubspot.com/t/autofill-city-and-state-from-zipcode/445/13 "2022-05-25T19:54:21Z")

</div>

Thanks for sharing, @GregEllis!

---

<div class="post-metadata">

**Author:** ![JBigbee1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jbigbee1/32/204222_2.png) [@JBigbee1](https://community.hubspot.com/u/JBigbee1)\
**Post date:** [November 14, 2024, 3:24pm UTC](https://community.hubspot.com/t/autofill-city-and-state-from-zipcode/445/14 "2024-11-14T15:24:37Z")

</div>

Check out[ZipCode AutoFill](http://www.zipcodeautofill.com/) too! Super easy and you can backfill existing contacts.

---

<div class="post-metadata">

**Author:** ![RBozeman](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rbozeman/32/8786_2.png) [@RBozeman](https://community.hubspot.com/u/RBozeman)\
**Post date:** [February 24, 2023, 9:47pm UTC](https://community.hubspot.com/t/autofill-city-and-state-from-zipcode/445/15 "2023-02-24T21:47:05Z")

</div>

Hey @redbags,

I know this thread is ancient and may not be a priority for the participants, but I wanted to share an updated solution.

There still is no standard feature for this. You could use Operations Hub and build a custom code to populate those fields based on the contents of the postal code field, but you would have to define it for every possible postal code. There are also a couple of plugins mentioned above that I believe are still active.

Also wanted to mention that [Insycle](https://ecosystem.hubspot.com/marketplace/apps/marketing/data-management/insycle) can help with automatically populating states based on zip for contacts. Full disclosure, I work for them. But you can use the “Map US Postal Code to US State” function in Insycle to automatically populate the state.

 ![hubspot forums.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/4/4a003fb27fcf3038a8709110c35a08f9f2164e51.png)

Then, you could automate this template to run on a set schedule, such as every Friday. Or, you could inject it straight into a HubSpot Workflow so that states are automatically populated after a new record hits your database.

Hope that helps!

Ryan

---

<div class="post-metadata">

**Author:** ![JBigbee1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jbigbee1/32/204222_2.png) [@JBigbee1](https://community.hubspot.com/u/JBigbee1)\
**Post date:** [October 24, 2024, 7:41pm UTC](https://community.hubspot.com/t/autofill-city-and-state-from-zipcode/445/16 "2024-10-24T19:41:45Z")

</div>

Hi everyone! I built a HubSpot add-on that does this. It is currently pending approval to be added to the HubSpot marketplace, but you can try it out in beta now! Go to [www.zipcodeautofill.com](http://www.zipcodeautofill.com) to get started. Please give me any feedback you have! Currently only US zipcodes work 🙂

---

<div class="post-metadata">

**Author:** ![GregEllis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gregellis/32/52535_2.png) [@GregEllis](https://community.hubspot.com/u/GregEllis)\
**Post date:** [October 24, 2024, 8:12pm UTC](https://community.hubspot.com/t/autofill-city-and-state-from-zipcode/445/17 "2024-10-24T20:12:56Z")

</div>

Hi there already seems to be one:

> **[Home - US Address/Zipcode Lookup Extension for Hubspot](https://zipcodeinfo.org)**
>
> Only $19 per monthUnlimited team-members, unlimited searches

[https://ecosystem.hubspot.com/marketplace/apps/zipcode-address-search-usa-with-autocomplete--384971](https://ecosystem.hubspot.com/marketplace/apps/zipcode-address-search-usa-with-autocomplete--384971)

---

<div class="post-metadata">

**Author:** ![JBigbee1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jbigbee1/32/204222_2.png) [@JBigbee1](https://community.hubspot.com/u/JBigbee1)\
**Post date:** [November 14, 2024, 3:04pm UTC](https://community.hubspot.com/t/autofill-city-and-state-from-zipcode/445/18 "2024-11-14T15:04:59Z")

</div>

Mine is better 🙂 it does it automatically and can backfill existing contacts
