URL Encoder and Decoder
Convert spaces, accented characters, and symbols to percent escapes for use in URL components.
Convert a URL component
Processed locallyHow to use it
Choose Encode for a parameter value or path segment, or Decode to read percent escapes. Swap direction moves the output to the input and reverses the operation.
Frequently asked questions
Should I encode an entire URL?
Usually, you encode a single parameter value or path segment. Encoding a whole URL as one component also encodes delimiters such as colons and slashes. That is useful when the URL is the value of another parameter.
Why does a space become %20 while a plus sign stays as +?
The tool uses encodeURIComponent and decodeURIComponent. In this format, %20 represents a space. Treating + as a space is a separate convention used by some forms.
What causes decoding errors?
A percent sign must be followed by two hexadecimal digits, and the combined bytes must represent valid UTF-8 text. Use %25 for a literal percent sign.