URL Encoder / Decoder
Encode and decode URLs, query strings, and parameters
Encode a complete URL while preserving protocol, slashes, question marks, and ampersands.
Free URL Encoder and Decoder
Use this browser-based URL encoder and decoder to convert complete web addresses, query parameters, path segments, and percent-encoded text. It supports two different encoding modes because a full URL and one value inside a URL do not follow exactly the same rules. All conversion happens locally in your browser, so the text you enter is not uploaded by this tool.
How to Use the Tool
- Choose whether you want to encode or decode a full URL or a single URL component.
- Paste the address, query value, path segment, or encoded text into the input box.
- The result updates as you type. Use Convert to run it again, Swap to reverse the workflow, or Copy to save the output.
Encode URL preserves structural characters such as :, /, ?, &, and =. Encode Component also escapes those reserved characters, which makes it suitable for a query parameter value or a single path segment.
Frequently Asked Questions
What is percent encoding?
Percent encoding replaces reserved or unsafe characters with a percent sign followed by two hexadecimal digits. For example, a space is commonly represented as
%20.Should I encode a complete URL or a component?
Use the full URL mode for an address such as
https://example.com/search?q=hello world. Use component mode for only the value of q, a path segment, or text that will be inserted into a URL.Why can decoding fail?
A malformed escape sequence causes decoding to fail. Common examples are a percent sign with no two-digit hexadecimal value after it or a copied URL that was truncated.
Does the tool send my URL to a server?
No. The browser's built-in JavaScript encoding functions perform the conversion on your device.