Developer & data utilities
URL Encoder / Decoder
Encode special characters in URLs and decode percent-encoded strings.
Run URL Encoder / Decoder online
In-browserDocument processing runs on your device. External resources may still load.
Enable JavaScript to use the interactive tool. Read the instructions, limitations and FAQs below before starting.
URL Encoder/Decoder converts special characters to and from percent-encoded format for use in web URLs. Characters like spaces, &, ?, #, and non-ASCII letters must be encoded to avoid breaking URL parsing.
URL encoding (percent-encoding) converts each byte of a character to a % followed by two hexadecimal digits. Spaces become %20 (or + in form data), & becomes %26, = becomes %3D. Decoding reverses this process.
This tool is essential for web developers constructing query strings, testing APIs with special character parameters, and debugging broken links from email clients or content management systems that mangle URL characters.
How to use this utility
- Use the controls below—paste text, pick files, or adjust options as described on the tool.
- Click the main action button. Processing runs in your browser on this device.
- Download or copy the output. Check the processing note for any external services used by this operation.
Common use cases
- Encoding query parameters with special characters for REST API requests
- Decoding percent-encoded URLs from server logs or error messages
- Fixing broken links with spaces or special characters
- Building URL query strings programmatically for search and filter pages
- Testing API endpoints with UTF-8 characters in request parameters
Tips for best results
- 1Use encodeURIComponent() in JavaScript for query parameter values (not the full URL)
- 2encodeURI() encodes the full URL but preserves special chars like / and ? — use for complete URLs
- 3Spaces in URLs should be %20 in REST APIs; form submissions use + for compatibility
- 4Double-encoding (%25 instead of %) is a common bug — decode first before re-encoding
- 5Always validate decoded URLs before using them to prevent open redirect attacks
Frequently asked questions
- Is Konnect2Tools free?
- Yes. These in-browser tools are completely free to use with no account required for core functionality.
- Do my files leave my device?
- Browser document operations run locally, except where the operation uses an external service, such as AI summarisation. Read the processing note before using sensitive inputs.
- Is the URL Encoder / Decoder tool safe to use?
- Local operations process document content on your device. External-service operations may send inputs as described in the processing note. Keep originals and inspect the output.
- What characters need to be URL encoded?
- Reserved characters with special meaning in URLs (:, /, ?, #, [, ], @, !, $, &, ', (, ), *, +, ,, ;, =) must be encoded when used as data. Unsafe characters (space, <, >, {, }, |, \, ^, `) must always be encoded. Letters, digits, and - _ . ~ are always safe.
- What is the difference between encodeURI and encodeURIComponent?
- encodeURI() encodes a complete URL — it does NOT encode characters that are valid in URLs like / : ? & = #. Use it for whole URLs. encodeURIComponent() encodes EVERYTHING except letters, digits, and -_.~ — use it for individual query parameter values.
- Why does %20 sometimes appear as + in URLs?
- HTML form submissions use application/x-www-form-urlencoded format where spaces are encoded as + for historical reasons. REST APIs and modern URLs use %20. When decoding, both should be treated as spaces. The encodeURIComponent() function in JavaScript uses %20.
- Can international characters (Hindi, Tamil) be URL encoded?
- Yes. Non-ASCII characters are first converted to UTF-8 bytes, then each byte is percent-encoded. 'भारत' becomes %E0%A4%AD%E0%A4%BE%E0%A4%B0%E0%A4%A4. Modern browsers display the decoded version in the address bar for readability, but the actual transmitted URL uses percent-encoding.
Related tools
Continue with another utility in developer & data utilities.