Text Tools
Developer Tools
Paste any text or URL and it is encoded or decoded instantly. Switch between Encode and Decode modes with one click. Choose between encodeURIComponent (best for query parameters) and encodeURI (best for full URLs). All processing is done in your browser.
URL encoding (percent-encoding) replaces unsafe characters with a percent sign followed by two hexadecimal digits. For example, a space becomes %20, and an ampersand becomes %26. This ensures the URL is valid and correctly parsed by browsers and servers.
encodeURIComponent encodes everything except letters, digits, and - _ . ! ~ * ' ( ). Use it for individual query parameter values. encodeURI encodes a complete URL and leaves characters like /, ?, #, and & untouched so the URL structure is preserved.