URL Encoder and Decoder (Percent Encoding)
URLs can only contain a limited set of characters. Spaces, ampersands, non-English letters and emoji have to be percent-encoded, so a space becomes %20. This tool encodes and decodes as you type.
Encodes everything except letters, digits and - _ . ! ~ * ' ( ). Best for a single query value.
Result appears as you type.
How to use the URL Encoder/Decoder
- Choose Encode or Decode.
- Pick the mode: component, full URL or form.
- Paste your text. The result updates instantly. Copy it or swap it back into the input.
Pick the mode that matches what you are doing. Component mode encodes everything unsafe, which is what you want for a single query value. Full URL mode leaves the structure characters such as : / ? & = # alone. Form mode uses + for spaces like HTML forms do.
Frequently asked questions
What is the difference between encodeURI and encodeURIComponent?
encodeURI keeps characters that have meaning in a URL, such as / ? & = and #. encodeURIComponent encodes them too, so it is the right choice for a value you are placing inside a query string.
Why does a space show as %20 or +?
%20 is standard percent-encoding. A plus sign means space only in form-encoded data (application/x-www-form-urlencoded) and in query strings read by most servers.
Why do I see %2520 in my URL?
That is a double-encoded %20: the percent sign itself was encoded. Decode twice, or use the decode-repeatedly option, to get back to the original.
Are emoji and non-English characters supported?
Yes. They are encoded as UTF-8 byte sequences, for example the letter é becomes %C3%A9.
More free tools
- UTM Link BuilderTag any URL with utm_source, medium and campaign, with presets for popular channels.
- UTM ParserBreak a tagged link into its parts and catch tagging mistakes before they hit your reports.
- UTM Link CleanerStrip UTM tags and click IDs like fbclid and gclid from links, in bulk.
- WhatsApp Link GeneratorMake a wa.me click-to-chat link with country code and a ready-to-send message.
- Telegram Link GeneratorBuild t.me links for profiles, share buttons, bot start payloads and phone numbers.