Developer tools · FREE ONLINE TOOL

URL encoder

Encode text safely for a URL parameter.

LET’S GET IT DONE On your device

Getting your tool ready…

How to use URL encoder

Prepare text for use as a single URL component, such as a query parameter value. The tool uses encodeURIComponent, so it also encodes characters that separate parts of a complete URL. Apply it to the value you need to encode rather than the whole destination address.

01

Paste the component text

Enter a parameter value or another individual URL component.

02

Create percent encoding

Run the tool to encode spaces, Unicode text, and relevant reserved characters.

03

Use the encoded value

Copy the result into the correct part of your URL.

COMMON QUESTIONS

URL encoder: useful answers

Should I encode an entire web address with this tool?

Usually not. It encodes URL separators such as slashes and colons because it is intended for one component or parameter value.

How are spaces represented?

Spaces are encoded as %20. This tool does not use the plus-sign convention of HTML form encoding.