How to encode or decode a URL
- Paste your text or URL into the Input box.
- Press Encode to make it safe for a URL, or Decode to turn
%20-style codes back into characters. - Tick Treat as a complete URL when you encode a whole address and want to keep its slashes, question mark and ampersands.
What is URL encoding?
A URL may only contain a limited set of characters. Everything else – spaces, accented letters, non-Latin scripts, emoji and symbols with a special meaning – is written as a percent sign followed by the two-digit hexadecimal value of each UTF-8 byte. A space becomes %20, “é” becomes %C3%A9.
This is called percent-encoding. Without it, a value containing “&” or “=” would be read as the start of a new parameter and the link would break.
One value or a whole URL?
- A single value (a search term, a file name, a redirect address placed inside another URL) must be fully encoded, including
/ ? & =. That is the default mode. - A complete URL should keep its structure, so only spaces and non-ASCII characters are encoded. Tick the box for this mode.
- The plus sign: in form data “+” means a space. The decoder turns “+” into a space in the default mode.
Frequently asked questions
Is my URL sent anywhere?
No. Encoding and decoding happen entirely in your browser.
Why does decoding fail?
A percent sign that is not followed by two hexadecimal digits, or bytes that are not valid UTF-8, cannot be decoded. Check for a stray “%” in the text.
What is the difference between %20 and +?
Both stand for a space. %20 works everywhere in a URL; “+” is only valid in the query string of submitted forms.
Do I need to encode a URL twice?
No. Double encoding turns % into %25 and breaks the link. Encode each value once.