FK
FreeAIKit

URL Encoder / Decoder

Encode special characters for use in URLs, decode percent-encoded strings, and parse any URL into its components. Free and instant.

FAQ

What is URL encoding?

URL encoding (percent encoding) replaces unsafe ASCII characters with a % followed by two hexadecimal digits. For example, a space becomes %20. This ensures URLs can be transmitted safely over the internet.

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL and leaves characters like /, :, @, and ? intact. encodeURIComponent encodes a URL component (like a query value) and encodes those characters too. Use encodeURIComponent for individual parameters.

When should I URL-encode query parameters?

Always encode user-supplied values before inserting them into a URL. Special characters like &, =, +, and # in parameter values will break URL parsing if not encoded.

Why does a space sometimes become + instead of %20?

In HTML form encoding (application/x-www-form-urlencoded), spaces are encoded as +. In standard percent-encoding (RFC 3986), spaces are %20. This tool uses the standard %20 encoding.

More Developer Tools You May Like