Super Plugin Sale! Your Choice: BOGO or 30% Off »
Web Dev + WordPress + Security

URL Character Codes

URLs frequently employ potentially conflicting characters such as question marks, ampersands, and pound signs. Fortunately, it is possible to encode such characters via their escaped hexadecimal ASCII representations. For example, we would write ? as %3F. Here are a few more URL character codes (case-insensitive), for easy copy/paste reference.

  • <     %3C
  • >     %3E
  • #     %23
  • %     %25
  • {     %7B
  • }     %7D
  • |     %7C
  • \     %5C
  • ^     %5E
  • ~     %7E
  • [     %5B
  • ]     %5D
  • `     %60
  • ;     %3B
  • /     %2F
  • ?     %3F
  • :     %3A
  • @     %40
  • =     %3D
  • &     %26
  • $     %24
  • +     %2B
  • "     %22
  • space %20

To convert back and forth between the encoded and unencoded characters, check out any free online tool such as Eric Meyer’s URL Decoder/Encoder.

About the Author
Jeff Starr = Designer. Developer. Producer. Writer. Editor. Etc.
Banhammer: Protect your WordPress site against threats.

One response to “URL Character Codes”

  1. August Klotz 2007/02/19 2:43 pm

    You can also use Google to translate special URL characters. Simply search for the character and check within the search URL in your browser’s address field. The encoded URL character will be located between the "q=" parameter and the next "&" character (if any). Sometimes this comes in handy when working on the fly.

Comments are closed for this post. Something to add? Let me know.
Welcome
Perishable Press is operated by Jeff Starr, a professional web developer and book author with two decades of experience. Here you will find posts about web development, WordPress, security, and more »
SAC Pro: Unlimited chats.
Thoughts
All free plugins updated and ready for WP 6.6 dropping next week. Pro plugin updates in the works also complete :)
99% of video thumbnail/previews are pure cringe. Goofy faces = Clickbait.
RIP ICQ
Crazy that we’re almost halfway thru 2024.
I live right next door to the absolute loudest car in town. And the owner loves to drive it.
8G Firewall now out of beta testing, ready for use on production sites.
It's all about that ad revenue baby.
Newsletter
Get news, updates, deals & tips via email.
Email kept private. Easy unsubscribe anytime.