URL Encoder / Decoder

Percent-encode special URI components and decode query strings.

Raw URL String1 line65 chars
Percent-Encoded Output1 line0 chars

What is URL Encoder / Decoder?

URL encoding (Percent-encoding) replaces unsafe ASCII characters with a % followed by two hexadecimal digits so query parameters can safely travel across HTTP URLs.

How to use this tool

  1. Paste your target URL string or query parameters into the input window.
  2. Select "Encode Component" or "Decode Component".
  3. Click "Encode URL" / "Decode URL" to execute.

Example

Input:
q=hello world & dev
Output:
q%3Dhello%20world%20%26%20dev

Common Use Cases

  • Escaping redirect URLs passed inside OAuth state query parameters.
  • Encoding dynamic text query parameters for REST APIs.
  • Decoding unreadable percent-escaped URLs found in server log files.

Frequently Asked Questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI preserves special URI delimiter characters (such as :, /, ?, #), whereas encodeURIComponent encodes all characters including slashes and question marks so they can be safely passed inside parameter values.

Related Developer Tools

Browse directory →