Home › Encoding Tools › URL Encoder / Decoder
Encoding tools · URI and component modes

URL Encoder / Decoder

Encode text for URLs or decode percent-encoded content. Choose full-URL mode for a complete address, or component mode for a path segment or query value.

Encode & decode
Choose the right mode

A full URL or one value inside it.

Use URL component mode for a single query value or path segment. Use Full URL mode to preserve URL separators such as ://, ?, &, and /. The two modes follow encodeURIComponent/decodeURIComponent and encodeURI/decodeURI respectively.

Componenthello world → hello%20world
Full URL?q=hello%20world&lang=en
FAQ

URL encoding questions.

What is URL encoding?
URL encoding replaces characters that are not safe in a URL with percent-encoded byte sequences so text can be used in a URL.
What is the difference between encodeURI and encodeURIComponent?
encodeURI is for a complete URL and preserves URL structure characters such as ?, &, and /. encodeURIComponent is for one URL component, such as a query parameter value, and encodes those reserved characters.
Why did decoding fail?
A percent escape must contain a percent sign followed by two hexadecimal digits, and decoded bytes must form valid UTF-8. Check incomplete escapes or choose the matching URI mode.
Does this send my text to a server?
No. Encoding and decoding happen in your browser. Basic tool-use events do not include the text you enter or the result.