URL Encode and Decode
Percent-encode text for URLs and decode encoded URLs back to readable text.
Runs in your browser. Your text and files never leave your device.
How to URL encode or decode
- Paste text or a link into the input box.
- Press Encode to make it URL-safe, or Decode to read an encoded link.
- Copy the output.
In JavaScript, the same results come from encodeURIComponent() (Component) and encodeURI() (Whole URL). Need Base64 instead? Use the Base64 tool.
Frequently Asked Questions
What is URL encoding?
URLs can only contain certain characters. URL encoding (percent-encoding) replaces the others with % and a hex code: a space becomes %20, & becomes %26 and ü becomes %C3%BC.
Component or whole URL: which should I choose?
Choose "Component" for a single value you put inside a URL, like a search term or a parameter value; it encodes & = ? / too. Choose "Whole URL" for a full address you only want to make safe; it keeps : / ? & = so the URL still works.
Why does + turn into a space when decoding?
In form submissions and query strings, + stands for a space. Untick "Treat + as space" if your text contains real plus signs.
Is my data uploaded?
No. Encoding and decoding run in your browser.