URL encoder and decoder
Build a safe link with spaces, accents or symbols in it, or read an encoded URL from a log or redirect. Choose whether you are encoding one value or a whole URL.
Runs in your browser. Nothing is uploaded.
Loading tool…
How to use
- Choose Encode or Decode.
- Paste your text or URL.
- Copy the result.
Common uses
- Put a search phrase, email address or file name with spaces into a link safely.
- Read a tracking or redirect URL full of %2F and %3D sequences.
- Debug a query string that a server receives differently from what you sent.
Example
- Input
- price list & offers
- Result
- price%20list%20%26%20offers
Encoded as one value.
Good to know
- One value: encodes everything except letters, digits and - _ . ! ~ * ' ( ). Use it for one part of a link, such as a search term.
- A whole URL: keeps : / ? & = and # so the link still works, and encodes the rest.
- Accents and emoji: encoded as UTF-8, so é becomes %C3%A9.
- Plus signs: decoding can turn + into a space, as web forms do. Untick it when a real + matters.
- Broken input: a % not followed by two hex digits shows an error instead of a half-decoded result.
- Text stays in your browser tab and is not sent anywhere.
Questions
Should a space be %20 or +?
%20 is correct anywhere in a URL. + means a space only in query strings and form data, so the encoder always uses %20.
Is URL encoding the same as encryption?
No. Anyone can decode it. It only makes text safe to place in a link; never rely on it to hide information.
Why are some characters not encoded in “whole URL” mode?
Characters such as / ? & = and # give the URL its structure. Encoding them would turn the URL into a single value.
Can it decode a URL that was encoded twice?
Decode it, then decode the result again. Each pass removes one layer of encoding.