URL Encoder is used to encode or escape text that is normally unsafe for transmission in URL.
Output: URL encoded text
Decode portions of URLs that have been encoded using URL encoding & download the output, all on the client side
View ToolCertain characters need to be encoded (escaped) in URL. This is also called as Percent encoding. Read more at wikipedia
Example Substitutions
Character | Encoded Value |
---|---|
newline | %0A or %0D or %0D%0A |
space | %20 |
" | %22 |
% | %25 |
- | %2D |
. | %2E |
< | %3C |
> | %3E |
\ | %5C |
^ | %5E |
_ | %5F |
` | %60 |
{ | %7B |
| | %7C |
} | %7D |
~ | %7E |
How to do URL encoding in various programming languages
- Language: C#
- Encode:
System.Web.HttpUtility.UrlEncode()
- Decode:
System.Web.HttpUtility.UrlDecode()
- Example: UrlEncode() UrlDecode()
- Documentation: UrlEncode() UrlDecode()
- Language: VB .NET
- Encode:
System.Web.HttpUtility.UrlEncode()
- Decode:
System.Web.HttpUtility.UrlDecode()
- Example: UrlEncode() UrlDecode()
- Documentation: UrlEncode() UrlDecode()
- Language: JavaScript
- Encode:
encodeURI()
- Decode:
decodeURI()
- Example: encodeURI() decodeURI()
- Documentation: encodeURI() decodeURI()
- Language: Python
- Encode:
urllib.urlencode()
- Decode:
urllib.unquote()
- Example: urlencode() unquote()
- Documentation: urlencode() unquote()
- Language: Ruby
- Encode:
uri.URI.escape()
- Decode:
uri.URI.unescape()
- Example: escape() unescape()
- Documentation: Documentation
History
- Aug 20, 2017
- Tool Launched
Comments 0