URL Encoder/Decoder
Free online tool to encode or decode URLs
encodeURIComponent: Encodes all characters including special characters. Suitable for query parameter values.
encodeURI: Preserves URL structure characters (: / ? # etc.) and encodes only the rest. Suitable for entire URLs.
What is URL Encoding?
URL encoding (percent-encoding) is a method of safely converting special characters that cannot be used in URLs. Characters such as spaces, non-ASCII characters, and special symbols cannot be directly included in URLs, so they are converted to %XX codes for safe transmission. For example, a space is encoded as %20, and the Korean character "가" is encoded as %EA%B0%80.
How to Use
- Select the encoding method (encodeURIComponent or encodeURI).
- Paste the text or URL to encode or decode in the input field.
- Click the encode or decode button and the result will be displayed below.
- Use the copy button to copy the result to clipboard, or the swap button to exchange input and output.
Frequently Asked Questions
encodeURI is used to encode an entire URL and does not encode URL structure characters (: / ? # [ ] @ ! $ & ' ( ) * + , ; =). encodeURIComponent is used to encode URL query parameter values and encodes all characters including URL structure characters. Generally, it is safer to use encodeURIComponent when passing parameter values.
Only certain ASCII characters can be used in URLs. Non-ASCII characters, spaces, and special characters may not be recognized correctly in URLs or may cause unintended behavior. URL encoding safely converts these characters so that data can be accurately transmitted between web browsers and servers.
Yes, using the decode function of this tool, you can restore an encoded URL to its original text. Characters encoded in %XX format will be converted back to their original characters. Paste the encoded text in the input field and click the decode button.

Comments 0items
No comments yet.