URL Encoder / Decoder
Encode or decode URLs and text using percent-encoding. Everything runs in your browser, so your input is never uploaded.
Encode URI Component vs. Encode URI
Example
What Is a URL Encoder / Decoder?
A URL Encoder / Decoder converts text into a form that is safe to place inside a web address, and converts it back again. The online URL encoder turns characters such as spaces, symbols and non-English letters into percent codes, and the online URL decoder turns those codes back into readable text. This is called percent encoding.
Why Is URL Encoding Important?
Web addresses can only contain a limited set of characters. A space, an ampersand or a Hindi letter placed in a link without encoding can break the link or change its meaning. Encoding a URL makes sure query strings, parameters and fragments are read the way you intended.
How Does URL Encoding Work?
Each unsafe character is converted to its UTF-8 bytes, and every byte is written as a percent sign followed by two hexadecimal digits. A space becomes %20, “é” becomes %C3%A9, and the Hindi word “हिंदी” becomes %E0%A4%B9%E0%A4%BF%E0%A4%82%E0%A4%A6%E0%A5%80. Letters, digits and the characters - _ . ! ~ * ' ( ) are left as they are.
Difference Between encodeURI and encodeURIComponent
encodeURIComponent() encodes everything except letters, digits and - _ . ! ~ * ' ( ), so it also encodes ; , / ? : @ & = + $ #. Use it for a single value, such as a search term inside a query string. encodeURI() keeps those structural characters, so a complete URL such as https://example.com/a b?x=1 still works after encoding. Using encodeURI() on a single value will not encode & or =, which can break query strings.
When Should You Decode a URL?
Decode a URL when you want to read a link copied from a browser or log file, check what a query parameter contains, or debug a redirect or tracking link. Use the matching decoder: decodeURIComponent() for a value, and decodeURI() for a full URL. decodeURI() deliberately leaves codes such as %2F and %3F encoded, because decoding them would change the URL’s structure.
Is URL Encoding Safe?
Encoding is safe and reversible, but it is not encryption. Anyone can decode an encoded URL, so never rely on it to hide passwords, tokens or personal data. This URL decode tool also runs entirely in your browser, so nothing you type is sent to a server.
How to Use Wordlity URL Encoder / Decoder
- Choose URL Encoder or URL Decoder.
- Choose URI Component for values and text, or Full URI for a complete link.
- Paste your text or URL into the input box.
- Click Encode or Decode, or turn on live mode to convert while you type.
- Copy the output, download it as a TXT file, or swap it back into the input.
