URL Encode / Decode

Encode strings for safe use in URLs and decode percent-encoded URL strings back to readable text.

Frequently asked questions

What is URL encoding?
URL encoding (percent encoding) converts special characters into a % followed by two hex digits. For example, a space becomes %20 and & becomes %26. This ensures URLs are valid and unambiguous.
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL, preserving characters like /, ?, & and #. encodeURIComponent encodes a single URL component (like a query value), converting those characters too. This tool uses encodeURIComponent by default.