jsondecode.com logo

URL Encoder

Percent-encode any text for safe use in URLs. Converts special characters to %XX format. Runs entirely in your browser.

Input
URL Encoded Output

What is URL Encoding?

URL encoding (also called percent-encoding) converts characters that are not allowed in URLs into a percent sign followed by two hex digits. For example, a space becomes %20, and an ampersand becomes %26. This ensures the URL is valid and unambiguous.

URL encoding is defined in RFC 3986. It is required for query string values, form submissions, and anywhere user-supplied text is embedded in a URL. Characters A–Z, a–z, 0–9, and - _ . ~ are left unencoded; all others are percent-encoded.