URL Encode / Decode Tool
Encode or decode URL components and full URL strings locally in your browser with Unicode-safe handling.
Enter your values
Change any assumption and calculate again to compare results.
URL encoding in plain language
URLs reserve characters such as spaces, ampersands, question marks and percent signs for special purposes. Percent-encoding represents characters with safe byte sequences so a value can travel inside a URL without being mistaken for URL syntax.
Use component mode for query values, path segments or individual pieces of data. It applies encodeURIComponent, which escapes more reserved characters. Use full-URL mode when you already have a complete URL and want to preserve structural characters such as : / ? & and = where appropriate.
Decode carefully
Decoding reverses percent-encoded sequences. Malformed percent sequences can cause an error, so the calculator validates the input and displays a clear message rather than returning partial or undefined text.
The tool runs entirely in the browser and does not send the entered URL or text to OfficeCalculator.Net.
Common use cases
URL encoding is useful when building query strings, redirect parameters, API requests, campaign links and filenames embedded in web addresses.
For Base64, binary or data-URL work, use the related Base64 tool instead; Base64 and URL encoding solve different problems.
Frequently Asked Questions
What is %20 in a URL?
%20 is the percent-encoded representation commonly used for a space.
Should I encode a whole URL with encodeURIComponent?
Usually no. encodeURIComponent is intended for components; full URLs are better handled with encodeURI when structural URL characters need to remain readable.
Does this tool upload my URL?
No. Encoding and decoding happen locally in your browser.