URL Encoder / Decoder

Text or encoded URL
Result
(Output will appear here)

How to use URL Encoder / Decoder

Paste text and click Encode to percent-encode it, or paste an encoded string and click Decode. Encoding uses encodeURIComponent, so the result is safe inside a query value.

What is URL Encoding?

URL encoding, also known as percent-encoding, converts characters into a format that can be transmitted over the Internet. URLs can only be sent using the ASCII character set. Special characters that are not ASCII, or that have special meaning in URLs, must be encoded.

For example, a space character is encoded as %20, and an ampersand (&) is encoded as %26. This ensures URLs remain valid and properly interpreted by browsers and servers.

Characters that Need Encoding

FAQ

What's the difference between encodeURI and encodeURIComponent?encodeURI doesn't encode characters that are part of a complete URL, while encodeURIComponent encodes everything except alphanumeric characters.
Why do I need to encode URLs?URLs have strict syntax rules. Special characters can break URL parsing or change the URL's meaning entirely.
Is encoding the same as encryption?No, encoded URLs are easily decoded. Don't use URL encoding for security purposes.