URL Encode & Decode

How URL Encoding Works

URL encoding replaces unsafe characters with percent-encoded values.

  1. 1

    Identify unsafe characters

    Characters that have special meaning in URLs (like &, ?, =) or are not in the ASCII range are identified.

  2. 2

    Convert to percent-encoded format

    Each unsafe character is replaced with a % followed by two hexadecimal digits representing its byte value.

FAQ

What is URL encoding?
URL encoding (also called percent encoding) converts characters into a format that can be transmitted over the Internet. Special characters are replaced with % followed by two hexadecimal digits.
When should I use URL encoding?
Use URL encoding when you need to include special characters in a URL query string or path segment. Characters like spaces, &, =, and non-ASCII characters should be encoded.

Related Tools