URL Encoder and Decoder
Encode a query value or path segment, or decode percent escapes to readable UTF-8 text. Choose how spaces and literal plus signs are handled.
- Choose the direction
- Pick a space rule
- Copy the component
Convert URL component
- Choose the direction
- Example
- Encode
Choose the direction
Use Encode for original text. Use Decode when percent escapes are already present.
- Pick a space rule
- Example
- Spaces become +
Pick a space rule
Select Form value for an HTML form query. A literal plus then travels as %2B.
- Copy the component
- Example
- tea+%26+cake
Copy the component
Place the encoded value after the query parameter name, keeping the URL's own separators outside it.
Send a search phrase
In form mode spaces become plus signs, while the plus in the actual search phrase becomes %2B. Encoding the ampersand keeps it from starting another query parameter.
- tea & cake + café
- tea+%26+cake+%2B+caf%C3%A9
Read a literal plus
Decode in component mode to keep an existing plus. Switch to form mode and the same input reads ‘a b’. The source format determines the correct interpretation.
Turn a finished address into a scannable symbol with the QR code generator.
- a+b in component mode
- a+b
Recognize encoding mistakes
One value at a time
A complete URL includes structural characters such as slashes and question marks. Pass the value of one component when constructing a link.
A second encoding pass
A percent sign itself becomes %25. An already encoded space can become %2520 if you encode it twice. Decode once to inspect the intermediate text.
| Input | Result |
|---|---|
| tea & cake + café | tea+%26+cake+%2B+caf%C3%A9 |
| a+b in component mode | a+b |
Where are your records processed?
The browser handles all encoding in this tab. It does not request the address or query value you enter. Privacy policy.
- Choose the direction
- Pick a space rule
- Copy the component
URL Encoder and Decoder questions
Does the tool open pasted links?
It treats the input as text and returns a text result.
Why does %FF fail to decode?
Its byte value alone cannot start a valid UTF-8 character. Check the encoding at the source.
Can I keep line breaks?
Yes. Newline characters are encoded along with the other characters in the field.