URL Encoder


URL Encoder is used to encode or escape text that is normally unsafe for transmission in URL.


URL Decoder
Paste plain text below



URL encoded text


Certain characters need to be encoded (escaped) in URL. This is also called as Percent encoding. Read more at wikipedia

Example Substitutions

Common characters after percent-encoding (ASCII or UTF-8 based)
newline space " % - . < > \ ^ _ ` { | } ~
%0A or %0D or %0D%0A%20%22%25%2D%2E%3C%3E%5C%5E%5F%60%7B%7C%7D%7E

How to do URL encoding in various programming languages

LanguageEncodeDecodeExampleDocumentation
C#System.Web.HttpUtility.UrlEncode()System.Web.HttpUtility.UrlDecode()UrlEncode() UrlDecode()UrlEncode() UrlDecode()
VB .NETSystem.Web.HttpUtility.UrlEncode()System.Web.HttpUtility.UrlDecode()UrlEncode() UrlDecode()UrlEncode() UrlDecode()
Javajava.net.URLEncoder.encode()java.net.URLDecoder.decode()encode() decode()encode() decode()
JavaScriptencodeURI()decodeURI()encodeURI() decodeURI()encodeURI() decodeURI()
Pythonurllib.urlencode()urllib.unquote()urlencode() unquote()urlencode() unquote()
Rubyuri.URI.escape()uri.URI.unescape()escape() unescape()Documentation
Feedback