About This Tool
Use this tool to percent-encode a URL component or decode an encoded string back into readable text. It is useful when a query value contains spaces, Japanese text, &, =, #, +, or other characters that can change the meaning of a URL.
The encoder uses the same component-level behavior as JavaScript encodeURIComponent, so reserved URL characters such as /, ?, and & are encoded when they appear in the input.
Common Use Cases
Preparing Query Parameter Values
Encode a value before adding it to a query string, such as converting hello world to hello%20world or a+b to a%2Bb.
Reading Encoded URLs
Paste an encoded value to see the readable text behind %XX sequences, including non-ASCII text.
Debugging Broken Links
Check whether a copied URL contains characters that should be encoded before it is placed into code, logs, or documentation.
How to Use
- Paste a URL or text fragment into the input area.
- Choose Encode or Decode.
- Review the result in the output area.
- Use Swap if you want to send the output back to the input.
- Use Copy to copy the output.
Notes / Limitations
This tool transforms text. It does not validate that the result is a complete, reachable, or safe URL.
- Decode mode converts
+to a space before decoding, which matches common form-style query string behavior. - Malformed percent sequences, such as an incomplete
%escape, show an error instead of a decoded result. - Encode mode is for URI components. If you paste a full URL, separators such as
/,?, and&are encoded too.
Privacy & Processing
The encode and decode logic runs in the page with browser JavaScript. The URL tool code does not make a network request with your input.
What Is URL Encoding?
URL encoding, also called percent encoding, represents characters as % followed by two hexadecimal digits. For example, a space becomes %20, & becomes %26, and # becomes %23.
Characters such as letters, numbers, -, _, ., and ~ normally stay readable. Characters with a special role in URLs are encoded when they are part of a value rather than part of the URL structure.