URL Encoder / Decoder
Encode and decode URLs and URL components safely for the web.
Paste the text or URL you want to process. Choose Encode mode to produce encoded output, or Decode mode to reverse encoded text.
encodeURIComponent is safest for query parameters and path segments because it escapes characters like /, ? and &. encodeURI leaves those URL separators untouched, so it is better for whole URLs. The decode mode uses decodeURIComponent and decodeURI to reverse both forms.
Both output fields have a copy button so you can grab the exact string you need.
Frequently asked questions
What is the difference between encodeURI and encodeURIComponent?
encodeURI escapes characters that are invalid in a URL but keeps URL separators such as / and ?. encodeURIComponent escapes almost everything, making it safe for query values and path segments.
When should I use decode mode?
Use it when you have an encoded URL or parameter and want to read the original text, such as turning %20 back into a space.
Can this tool handle Unicode?
Yes. JavaScript's encodeURIComponent encodes UTF-8 sequences, and the decoder reads them back correctly for any Unicode input.