Utilities

URL Encoded URL

Encode and decode URLs online. Free, instant, no signup.

Example: hello world converts to hello%20world.

About URL Encoder / Decoder

Type in the Raw URL or text box to encode, or paste into the Encoded URL box to decode. Plain text is encoded with encodeURIComponent, so spaces, slashes, ampersands and question marks all become percent codes. A full http or https address keeps its structure: the slashes, the question mark and the ampersands between parameters stay, and each part of the path is encoded.

Frequently asked questions

When do I need to URL-encode a string?

Whenever a value contains spaces, slashes, ampersands, question marks, or non-ASCII characters and you're putting it into a URL, query parameter, or HTTP header.

What's the difference between encodeURI and encodeURIComponent?

encodeURI keeps the characters that give a URL its structure, such as slashes, colons, question marks and hash signs. encodeURIComponent encodes those too, which is what you want for a single query value. This tool uses encodeURIComponent for text and for each path segment of a URL.