Tool location: /dev/url-encode
URL encoding (percent encoding) converts special characters into a format safe for URLs. This is essential when including special characters, spaces, or non-ASCII characters in URLs and query strings.
Select Encode to convert text to URL-safe format, or Decode to convert encoded URLs back to readable text.
Paste the text you want to encode or the URL-encoded string you want to decode.
The result appears instantly. Encoded output shows special characters as %XX format. Decoded output shows the original readable text.
Copy the result for use in URLs, API calls, or web development.
See results instantly as you type.
Handles all special characters and Unicode properly.
Properly encodes query parameters and path segments.
Attempt to decode partially encoded strings.
Do not double-encode already encoded strings - this causes errors.
Some characters have special meaning in URLs (&, =, ?) - be careful with encoding.
Different parts of URLs may need different encoding rules.
A: URLs can only contain certain ASCII characters. Special characters like spaces, &, =, and non-ASCII characters must be encoded to %XX format to be safely transmitted in URLs.
A: In query strings, spaces can be + or %20. In URL paths, spaces must be %20. When in doubt, %20 is safer as it works everywhere.
A: You may have encoded parts that should not be encoded, like :// or existing % signs. Only encode the variable parts of URLs, not the structure.
A: Do not encode the entire URL at once. Encode only the parts that contain user data or special characters: query parameter values and variable path segments.