URL Encoder / Decoder

Encode or decode URL components and query strings instantly.

Frequently Asked Questions

What is URL encoding?

URL encoding (percent encoding) replaces special characters in a URL with a % sign followed by two hex digits, e.g. a space becomes %20.

When do I need to URL encode?

When passing user input as a query parameter, embedding special characters in a URL, or building API requests manually.

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL and preserves characters like / and ?. encodeURIComponent encodes a single parameter value and encodes those characters too. This tool uses encodeURIComponent.

Related Tools