# encode/decode urls

**URL:** <https://community.hubspot.com/t/encode-decode-urls/75842>\
**Category:** CMS Development\
**Tags:** design-manager, javascript, html\
**Created:** [February 23, 2023, 1:13pm UTC](https://community.hubspot.com/t/encode-decode-urls/75842 "2023-02-23T13:13:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TildaBexell](https://avatars.discourse-cdn.com/v4/letter/t/d26b3c/32.png) [@TildaBexell](https://community.hubspot.com/u/TildaBexell)\
**Post date:** [February 23, 2023, 1:13pm UTC](https://community.hubspot.com/t/encode-decode-urls/75842/1 "2023-02-23T13:13:37Z")

</div>

Hi! Most of my urls looks like this for our premises:

[https://croisette.com/premise/?name=Alfagatan%2020,%20Mölndal%20-%20358%20kvm,%20kontor](https://croisette.com/premise/?name=Alfagatan%2020,%20M%C3%B6lndal%20-%20358%20kvm,%20kontor)

I dont want any % in my links, I want them clean, so it should look like this instead:

[https://croisette.com/premise/?name=alfagatan20/molnda/20kvm/kontor](https://croisette.com/premise/?name=alfagatan20/molnda/20kvm/kontor)

I think I’ve found the encode code, but don’t know where to put it. Have anyone tried this before?

---

<div class="post-metadata">

**Author:** ![Think19](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@Think19](https://community.hubspot.com/u/Think19)\
**Post date:** [February 23, 2023, 3:41pm UTC](https://community.hubspot.com/t/encode-decode-urls/75842/2 "2023-02-23T15:41:03Z")

</div>

If your talking about the urls stored in your hubspot database of contacts/companies then I think you should be able to do this more easily using the “Insycle Data Management” app add-on for Hubspot:

> **[HubSpot Marketplace](https://ecosystem.hubspot.com/marketplace/apps/marketing/data-management/insycle)**

.

---

<div class="post-metadata">

**Author:** ![TildaBexell](https://avatars.discourse-cdn.com/v4/letter/t/d26b3c/32.png) [@TildaBexell](https://community.hubspot.com/u/TildaBexell)\
**Post date:** [February 24, 2023, 7:57am UTC](https://community.hubspot.com/t/encode-decode-urls/75842/3 "2023-02-24T07:57:11Z")

</div>

Hi! okey thanks I will ask them, have you tried it for urls yourself?

---

<div class="post-metadata">

**Author:** ![Think19](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@Think19](https://community.hubspot.com/u/Think19)\
**Post date:** [February 24, 2023, 10:43am UTC](https://community.hubspot.com/t/encode-decode-urls/75842/4 "2023-02-24T10:43:43Z")

</div>

No, not really.

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [March 2, 2023, 2:42am UTC](https://community.hubspot.com/t/encode-decode-urls/75842/5 "2023-03-02T02:42:22Z")

</div>

The %20 is added anytime you have a space in your URL, if you don’t want them, you would need to make sure that you don’t have spaces included when generating the URL.

You can see the [full list of encoded characters here.](https://www.eso.org/~ndelmott/url_encode.html)

If you are generating your URL dynamically, you’ll need to configure the code to remove these special characters.
