URL Encoder and Decoder
Encodes text so it is safe to use in a web address, and decodes percent-encoded addresses back to readable text. Use it to build links with spaces or special characters in them, or to read a long, encoded link.
How to use the URL Encoder and Decoder
- Choose Encode or Decode and whether the text is a single value or a whole URL.
- Type or paste your text. The result appears as you type.
Rules applied
- A value or path part encodes every reserved character (
& = ? / #and so on), for query values. - A whole URL keeps the characters that give a URL its structure.
- Text is encoded as UTF-8. Malformed
%sequences are reported with their position.
Limitations
- With Use + for spaces, a literal plus sign must be written as
%2Bwhen decoding.
Worked examples
Input
café & tea = 100%
Result
caf%C3%A9%20%26%20tea%20%3D%20100%25
Input
caf%C3%A9%20%26%20tea%20%3D%20100%25
Result
café & tea = 100%
Practical uses
-
Building a safe link with a search term
A marketer adds a search phrase with spaces and an ampersand to a link. They choose Encode with the single value option, which encodes every reserved character. The phrase can then sit in the address without breaking it.
-
Reading an encoded link
A support agent receives a link full of percent signs. They choose Decode and paste the query value to see what the customer was actually searching for. If a sequence is malformed, the tool reports its position.
Related tools
Privacy: this tool runs entirely in your browser. Your text is not uploaded, logged or saved, and it is never sent to analytics. Maximum input: 1 MiB.