URL Encode Pro



Live Mode Switch




Related Pages: URL Decode.

About URL Encode Pro:

This pro online url encode tool helps you to encrypt one input string into a url format String.

Why URL Encode?

HTTP GET request often contains parameters. However, the potential unsafe ASCII within parameters can mess up the server. To address this problem, browser will automatically replace unsafe ASCII characters with % followed by 2 numbers. For example '&' will be replaced by '%26' and space will be replaced by '%20'.

URL Encode Conversion Chart:

! # $ & ' ( ) * + , / : ; = ? @ [ ]
%21 %23 %24 %26 %27 %28 %29 %2A %2B %2C %2F %3A %3B %3D %3F %40 %5B %5D

URL Encode with Python:

import urllib.parse

def url_encode(input_str):
    output_msg = urllib.parse.quote(input_str).strip()
    return output_msg