Attorney Approved Web Design Contract Template

Due to the popularity of our web development contract template article, we're offering the contract, estimate, and invoice templates for $199.50 $49.50 if you order by March 14. Click here to learn more.

1 Month Free E-Faxing - Packetel Promo Code

Packetel provides by far the most reliable and affordable electronic faxing service. For a limited time, you can use Packetel promo code qgxhd32649 (case sensitive) to get your first month of faxing free. For more info, read our article on Packetel's Promotion Code.



Jun 10 2006

URL Escape Characters


Filed under: Markup Languages » HTML,
Tools:

What is the % Code in My URL?

In order to prevent the misinterpretation of special characters such as a space, bracket (< and >), or % in the URL (which stands for Uniform Resource Locator - it is the address you see in your browser's address bar indicating the location of the website you are visiting), browsers parse certain special characters using URL escape characters. This explains why when you click on a link such as: domain.com/page one.htm you see it parsed in the address bar as example.com/page%20one.htm. In this case the %20 is the escape character for the space.

Mass find and replace for documents or web pages

Chances are you're looking up the code for a URL escape character because you're a web designer, or at least building and designing your own web site. One of the biggest pains in web design can be the need to update a small piece of content on multiple pages. In this case, if you're needing to update a URL escape character, it will be a pain in the butt to have to open a dozen files individually and make the change. In comes our Find & Replace software. Why pay $100 for Homesite (the only other software that does reliable mass find and replace for HTML or CSS documents), when you can use our Find & Replace software for free (as shareware).

It's powerful and efficient, and compatible with Windows /95 - Vista operating systems. It works with all documents, not just web page files. With it, you can change or update multiple web pages/files at once, including multiple instances of URL escape characters. Whether it's a link, a copyright notice, or simply a spelling mistake - you'll be able to update hundreds of web pages or text documents at once, without having to edit edit each of them manually.

What You See is What You Get (WYSIWYG) HTML Editor

If you'd like to take the hassle out of hand-coding your escape characters, you can use our HTML Editor to make the job easy for you. No technical knowledge required - what you see is what you get. In other words, if you're familiar with using Word Processing software, you should have no problem using our HTML Editor to easily create web documents and web pages. You can even create an entire website of your own from the bottom up - without any programming experience. Click here to learn more.

Common URL Escape Characters

Table of URL Escape Characters
Character Escape Character Character Escape Character
Space %20 # %23
$ %24 % %25
& %26 @ %40
' %60 / %2F
: %3A ; %3B
< %3C = %3D
> %3E ? %3F
[ %5B \ %5C
] %5D ^ %5E
{ %7B | %7C
} %7D ~ %7E

 

Good Coding Practice

It is good coding practice to avoid the need for URL escape characters. As a rule of thumb, avoid using the special characters above when formulating a URI string (filename), and I recommend using the hyphen (-) instead of the underscore (_) (as all search engines recognize the hyphen as a space separator, but the same is not true for the underscore; and older browsers do not correctly interpret the underscore in CSS). If you must use the above characters make sure to escape them using the above escape characters so when the browser parses your code it will not misinterpret the link. It's important to note that these URL escape characters differ from HTML escape characters.

Looking for HTML (XHTML) Escape Characters?

Visit our page on HTML Escape Characters for a list of valid HTML (and XHTML) escape characters.

Average: 4.4 (11 votes)
Select your preferred way to display the comments and click "Save settings" to activate your changes.

HTML List?

Good stuff. Do you also have a list of common html escape characters handy?

HTML Escape Characters List

I'm working on that - I'll add it the next chance I get.

Thanks!

Thanks!

HTML Escape Characters List

Our HTML (and XHTML) Escape Characters List is finally complete.  Click the link in the article above to access the page.

Legible URL Escape Char List

Finally a list of URL escape characters I can read and make sense of. Your website layout actually makes the list readable, as opposed to some others I found. Thank you!!

escape(String) for js

Use escape(String); This is helpful in JavaScript. For more help just reply here.

Do URL escape chars matter in Windows?

Great article. Question is - do URL escape characters matter in Windows Explorer? In other words, can I name a folder "Folder Name", or should I name it "Folder-Name"?

Spaces in folder names

That's a great question. The answer depends on whether the folders will ever be hosted online. In other words, if someone tries to access the folder or files via a web browser, the spaces will be interpreted as characters. In the Windows environment alone, however, there is no need to replace spaces with hyphens.

Comprehensive list of URL chars

Nice - a nice concise table of URL escape characters, just what I was looking for. Now is there any way to get the entire list?

%60 is ` not to be confused

%60 is ` not to be confused with %27 '

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options

CAPTCHA
This question is used to make sure you are a human visitor and to prevent spam submissions.