URL Encoder

Paste text to make it safe to use in a URL or query string.

Free · Runs in your browser · Your text is never uploaded

A web address with spaces and symbols encoded with percent codes and back

Encoding text for a URL

Reserved characters such as & = ? # / and spaces would break a URL if used as data, so each is replaced with a percent sign and its hex code (%26, %3D, %3F, %23, %2F, %20). Non-English letters and emoji are first converted to UTF-8 bytes, then each byte is percent-encoded.

Encode individual parameter values with “A value or parameter”. If you paste a complete URL, switch to “A whole URL” so the slashes and question mark are preserved.

Need more options? Open the full URL Encoder & Decoder.

Frequently asked questions

How do I encode a URL?

Paste the text above. Use “A value” mode for one query parameter and “A whole URL” for a full address.

Why is a space %20?

20 is the hexadecimal code of the space character. In form data a plus sign can also stand for a space.

Do I need to encode the whole URL?

No, only the data parts. Encoding the slashes and colons of a full URL would break it.