URL Encode / Decode
Percent-encode unsafe characters in URLs and decode them back.
How to Use
Select Encode or Decode
Use 'Encode' to make a string URL-safe, or 'Decode' to turn percent-encoded text back into its original form.
Input URL/Text
Paste the URL or text fragment into the input area. The conversion is processed immediately.
Copy the Output
Once the processing is done, click the copy button to save the result for use in your links or code.
Frequently Asked Questions
What is URL encoding?
URL encoding, also known as percent-encoding, is a mechanism for encoding information in a Uniform Resource Identifier (URI) to ensure it's transmitted correctly over the internet.
Why do I need to encode URLs?
URLs can only contain a limited set of ASCII characters. Unsafe characters like spaces, symbols, and non-ASCII characters must be encoded using '%' followed by two hexadecimal digits.
Is there a difference between encodeURI and encodeURIComponent?
Yes. `encodeURIComponent` (which we use here) encodes almost all non-alphanumeric characters, including symbols like '/', '?', and '&'. This makes it perfect for encoding data within query parameters.