Links break when they contain spaces or special characters. This free URL encoder and decoder fixes that in seconds: paste any URL or text, click Encode to turn it into safe percent-encoding, or click Decode to turn an encoded link back into readable text. Both results are shown side by side, ready to copy. Everything runs in your browser and nothing is saved or sent anywhere.
Your text is encoded in your browser and never leaves your device. Nothing is saved or sent anywhere.
How to use this URL encoder and decoder
Paste your URL or text into the box. Click Encode to convert spaces, question marks, ampersands and other special characters into safe percent codes — for example a space becomes %20. Click Decode to turn percent codes back into normal characters. Both the encoded and decoded versions are shown, so you can compare them, and the Copy encoded result button copies the encoded version for pasting into a link or message.
What is URL encoding?
URL encoding, also called percent-encoding, replaces characters that are not allowed in a web address with a % sign followed by two hex digits. A space becomes %20, a question mark becomes %3F and an ampersand becomes %26. Browsers and servers understand these codes, so an encoded link always arrives exactly as intended — which is why search links, share links and tracking links use encoding.
Frequently asked questions
When should I encode a URL?
Encode a URL whenever it contains spaces or characters like ?, =, or # inside a value — for example a search query or a file name with spaces. Encoding keeps the link working when it is shared in an email, message or social post.
What is the difference between encode and decode?
Encode turns readable text into percent codes that are safe inside a link. Decode does the reverse: it turns percent codes back into readable text, which is handy when you receive a long encoded link and want to see where it really goes.
Is my text safe here?
Yes. The encoding and decoding run entirely in your browser. Your text is never uploaded, stored or sent to any server.
What other tools can I use?
Try our URL Redirect Checker to see what a link redirects to, the Broken Link Checker to find dead links on a page, the SERP Preview Tool to preview a Google result, and the Base64 Encoder & Decoder to encode text another way. See all of them on our tools page, use our free calculators, or return to the homepage.
Disclaimer: This tool encodes and decodes text in your browser using standard percent-encoding. Always test an encoded link by opening it before sharing it publicly.