How to use the URL Encode / Decode
- Paste a URL or text
- Click Encode or Decode
- Copy the result
Encode and decode URLs
Paste text or a link and choose Encode (component) for a single value such as a search term or parameter, Encode full URL to keep :/?&= intact, or Decode to turn %20-style codes back into text (a + is read as a space too). Paste a full URL and you'll also see its parts โ protocol, host, path, query and hash โ with every query parameter listed in a table.
What is URL encoding?
URLs can only contain certain characters, so others are written as % followed by their UTF-8 bytes in hex. Common ones:
- Space:
%20(or+in form data). - Forward slash
%2F; ampersand%26; question mark%3F; hash%23. - Characters beyond ASCII use UTF-8: รฉ =
%C3%A9.
Example: โfree online tools & more/?โ โ free%20online%20tools%20%26%20more%2F%3F. Decoding reverses it.
In code
- JavaScript โ
encodeURIComponent()anddecodeURIComponent(). - Python โ
urllib.parse.quote()andunquote(). - Java โ
URLEncoder.encode(s, StandardCharsets.UTF_8)(spaces become +). - PHP โ
rawurlencode()(%20) orurlencode()(+). - C# โ
Uri.EscapeDataString()andUri.UnescapeDataString(). - Excel has
=ENCODEURL()but no decode function, so paste the text here.
For SVG data URIs in CSS, use Encode (component) on the SVG code.
๐ Everything runs in your browser โ nothing you paste is uploaded.