About the URL Encoder / Decoder
Spaces and special characters like &, ? and # must be escaped before they can be used inside a URL. Use component mode for a single query value and full-URL mode when you want to keep the URL structure intact.
URLs may only contain a limited set of characters. Spaces, accented letters, Urdu text and symbols like &, ? and # either break a link or change its meaning unless they are percent-encoded, which replaces each byte with % followed by two hex digits. This tool is for developers building query strings, marketers checking tracking links and anyone puzzled by a link full of %20 and %3D.
There are two modes because there are two common jobs. Component mode encodes a single value, such as a search term or a redirect target, and escapes every reserved character. Full URL mode encodes a complete address but leaves its structure (://, /, ?, & and =) alone so the link still works. When decoding, a plus sign is treated as a space, as HTML forms do.
How to use the URL Encoder / Decoder
- 1Choose Encode or Decode.
- 2Pick "Component" for a single value or "Full URL" for a whole address.
- 3Paste the text and copy the result.
Key features
- Encode or decode with one switch.
- Component mode, equivalent to encodeURIComponent.
- Full URL mode, equivalent to encodeURI.
- Plus signs decoded as spaces for form-style query strings.
- Clear error for malformed percent sequences.
Practical uses
- Putting a full URL inside another URL as a redirect or callback parameter.
- Reading a long tracking link from an ad platform.
- Encoding non-English search terms for a link.
- Debugging a broken API request where a value contains & or #.
Example
The value “shoes & bags” in Component mode becomes shoes%20%26%20bags. Put into ?q=shoes%20%26%20bags, the server receives the whole phrase instead of splitting it at the &.
Tips and common mistakes
- Encode each parameter value separately, not the whole query string, to avoid double encoding.
- If you see %2520 in a link, the text was encoded twice; decode it twice to get the original.
- Use Full URL mode only when the address is already correctly structured.
Limitations
- The tool works on text; it does not validate whether a URL actually exists.
- Internationalised domain names (Punycode) are not converted.
Privacy
Everything is converted locally in your browser. Links that contain tokens, email addresses or session IDs are never sent to a server.
Frequently asked questions
What is the difference between the two modes?
Component mode (encodeURIComponent) also escapes / ? & = and #. Full-URL mode (encodeURI) leaves those characters so the link still works.
Why is a space shown as %20?
%20 is the percent-encoded form of a space. Some forms use + instead; this tool turns + back into a space when decoding.
I get "URI malformed" when decoding.
The text contains a % that is not followed by two hex digits. Check that the text was encoded correctly.
Should I encode the whole URL with Component mode?
No. It would encode the slashes and colon as well, and the result would no longer be a working link. Use it for values only.