URL Encoder / Decoder
About This Tool
Paste any URL or text and instantly encode or decode it. All processing happens in your browser — nothing is sent to any server.
- Encode: Converts special characters (spaces,
&,=,#, etc.) into percent-encoded format (%20,%26, …) - Decode: Converts
%XXsequences back into human-readable characters
How to Use
- Paste your URL or text into the input area
- Choose Encode or Decode
- The result appears instantly in the output area
- Click Copy to copy the result to your clipboard
Common Use Cases
Build Query Strings Safely
When constructing a URL with query parameters programmatically, values must be percent-encoded to avoid breaking the URL structure. For example, search=hello world becomes search=hello%20world.
Decode a Mangled URL
URLs copied from emails or documents sometimes arrive with their special characters already encoded. Paste them here to read the original value.
Encode for use in href or src Attributes
HTML attribute values that contain & or " need to be URL-encoded before embedding in an href attribute.
What is URL Encoding?
URL encoding (also called percent encoding) is a mechanism to encode characters that are not allowed in a URL or that have special meaning. Per RFC 3986, only unreserved characters (A–Z, a–z, 0–9, -, _, ., ~) may appear unencoded. All other characters are represented as % followed by two hex digits.
Encoded vs. Not Encoded
| Character | Encoded |
|---|---|
| Space | %20 |
& | %26 |
= | %3D |
? | %3F |
# | %23 |
/ | %2F |
+ | %2B |