URL Encoder / Decoder
Encode a URL or decode a percent-encoded URL string. Choose between full URL encoding (encodeURI) or component encoding (encodeURIComponent).
Related Tools
More free utilities you might find useful
Frequently Asked Questions
Quick answers to common questions
What is URL encoding?+
URL encoding (percent encoding) replaces characters that are not allowed in URLs with a % followed by two hexadecimal digits. For example, a space becomes %20, and & becomes %26.
When do I need to URL encode?+
Encode when passing special characters in query strings (?, &, =, spaces, accents, Unicode). Also encode when building API requests with user-supplied data to prevent injection or broken URLs.
What is the difference between encodeURI and encodeURIComponent?+
encodeURI encodes a complete URL — it does not encode characters like /, ?, &, # that have meaning in URLs. encodeURIComponent encodes a URL component (e.g. a query value) and encodes those characters too.
