About the URL Encoder
Spaces, ampersands, accented letters and many symbols are not allowed in URLs as-is. Percent-encoding replaces them with codes like %20 so links and query strings work everywhere.
Pick the mode that matches your job: component mode for a single query value or path segment (the safest choice), full-URL mode to clean up a complete address while keeping its : / ? & = structure, or form mode, which writes spaces as + the way HTML forms submit data.
How to use the URL Encoder
- Paste the text or URL you want to encode.
- Choose component, full URL or form encoding.
- Copy the encoded output, which updates as you type.
Features
- Encode and decode
- Three modes: component, full URL, form
- RFC 3986 compliant (also escapes ! ' ( ) *)
- Clear error for malformed % sequences
- Live output
Supported formats
- Plain text
- URLs
Frequently asked questions
What is the difference between encodeURI and encodeURIComponent?
encodeURI keeps characters that have meaning in a URL, such as / ? & and =. encodeURIComponent escapes them too, which is what you need for a value placed inside a query string.
Should spaces be %20 or +?
Use %20 in paths and most URLs. The + form is only correct for application/x-www-form-urlencoded data, such as HTML form submissions.
Added · Last reviewed · Maintained by Sohail Khax · How we test tools