# Why does %20 appear in the middle of my web browser addresses?

**URL:** <https://boards.straightdope.com/t/why-does-20-appear-in-the-middle-of-my-web-browser-addresses/276679>\
**Category:** Factual Questions\
**Created:** [November 25, 2004, 10:14pm UTC](https://boards.straightdope.com/t/why-does-20-appear-in-the-middle-of-my-web-browser-addresses/276679 "2004-11-25T22:14:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xurando](https://avatars.discourse-cdn.com/v4/letter/x/b77776/32.png) [@Xurando](https://boards.straightdope.com/u/Xurando)\
**Post date:** [November 25, 2004, 10:14pm UTC](https://boards.straightdope.com/t/why-does-20-appear-in-the-middle-of-my-web-browser-addresses/276679/1 "2004-11-25T22:14:13Z")

</div>

From time to time (usually at least twice a week) I’ll type in a web address and when it begins to connect at the top of the screen it will suddenly insert the the term %20 right in the middle of the address and I’ll be unable to connect to the site. It happens with all types of sites and browsers and is not specific to just my computer. Does this happen to other SDers and why does this happen?

Thanks, X

---

<div class="post-metadata">

**Author:** ![Bruce\_Daddy](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@Bruce\_Daddy](https://boards.straightdope.com/u/Bruce_Daddy)\
**Post date:** [November 25, 2004, 10:16pm UTC](https://boards.straightdope.com/t/why-does-20-appear-in-the-middle-of-my-web-browser-addresses/276679/2 "2004-11-25T22:16:14Z")

</div>

If the url has a space in it, your browser will render it as %20. This happens when someone links a picture [www.somewebsite.com/my](http://www.somewebsite.com/my) crazy picture.jpg. 20 is the hex code for space.

[http://www.asciitable.com/](http://www.asciitable.com/)

---

<div class="post-metadata">

**Author:** ![pokey](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@pokey](https://boards.straightdope.com/u/pokey)\
**Post date:** [November 26, 2004, 12:43am UTC](https://boards.straightdope.com/t/why-does-20-appear-in-the-middle-of-my-web-browser-addresses/276679/3 "2004-11-26T00:43:56Z")

</div>

Maybe when you are typing it, you don’t even realize that you automatically hit the spacebar between the words in the url. Nobody has a web address with a space in it. If you type [http://www.straight](http://www.straight) [dope.com](http://dope.com) it will translate to [http://www.straight](http://www.straight)%[20dope.com](http://20dope.com) and not connect. Another common time to accidentally automatically hit the space bar is right after you type “.” because it’s a habit.

---

<div class="post-metadata">

**Author:** ![Colophon](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@Colophon](https://boards.straightdope.com/u/Colophon)\
**Post date:** [November 26, 2004, 11:15am UTC](https://boards.straightdope.com/t/why-does-20-appear-in-the-middle-of-my-web-browser-addresses/276679/4 "2004-11-26T11:15:47Z")

</div>

> [@pokey](#):
>
> Nobody has a web address with a space in it.

This is not strictly true. While you can’t have a domain name with a space in it, there are plenty of URLs with the “%20” string.

These are often images, where the file name of the image has a space in it. You can type the address into your browser with the space and still get the file:

e.g.  
[www.cc.jyu.fi/~mlaitin/pics/LA/universal%20studios%20-%20Indiana%20jones-qq2.jpg](http://www.cc.jyu.fi/~mlaitin/pics/LA/universal%20studios%20-%20Indiana%20jones-qq2.jpg)

If you type **[www.cc.jyu.fi/~mlaitin/pics/LA/universal](http://www.cc.jyu.fi/~mlaitin/pics/LA/universal) studios - Indiana jones-qq2.jpg** into the address bar you will still get to the file.

(Incidentally I have no idea what that picture is all about; I just did a quick Google Image search for an example…)

---

<div class="post-metadata">

**Author:** ![JRDelirious](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/jrdelirious/32/9531_2.png) [@JRDelirious](https://boards.straightdope.com/u/JRDelirious)\
**Post date:** [November 26, 2004, 10:21pm UTC](https://boards.straightdope.com/t/why-does-20-appear-in-the-middle-of-my-web-browser-addresses/276679/5 "2004-11-26T22:21:31Z")

</div>

> [@Colophon](#):
>
> This is not strictly true. While you can’t have a domain name with a space in it, there are plenty of URLs with the “%20” string.
> 
> These are often images, where the file name of the image has a space in it.

Right. Which then can create a tricky situation if you do a “save as”, since depending on your software you may wind up with the actual characters “%20” in the middle of your saved filename

---

<div class="post-metadata">

**Author:** ![LSLGuy](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lslguy/32/5813_2.png) [@LSLGuy](https://boards.straightdope.com/u/LSLGuy)\
**Post date:** [November 26, 2004, 11:48pm UTC](https://boards.straightdope.com/t/why-does-20-appear-in-the-middle-of-my-web-browser-addresses/276679/6 "2004-11-26T23:48:32Z")

</div>

You’re seeing something called “URL encoding”. A URL, by the standard ([http://www.ietf.org/rfc/rfc1738.txt](http://www.ietf.org/rfc/rfc1738.txt)), may contain only letters, numbers and a few special characters. Anything else, such as spaces or other special characters must be encoded as %nn.

> [@](#):
>
> Thus, only alphanumerics, the special characters “$-\_.+!\*’(),”, and reserved characters used for their reserved purposes may be used unencoded within a URL.
