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

  1. Choose whether you want to encode or decode a full URL or a single URL component.
  2. Paste the address, query value, path segment, or encoded text into the input box.
  3. 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.

encodeURI vs encodeURIComponent: Which One Breaks Query Values?

Using encodeURI() on a query parameter value leaves &, =, and ? unescaped, silently splitting your parameter in half. Always use encodeURIComponent() on individual query values and keysβ€”or inspect structured URLs directly in our URL Query String Parser & Editor.

Frequently Asked Questions

Why do spaces appear as %20 in paths but + in form queries?
RFC 3986 percent-encoding encodes spaces as %20, while legacy application/x-www-form-urlencoded query strings often serialize spaces as +.
What happens if a URL gets double-encoded (%2520)?
Running encodeURIComponent twice turns %20 into %2520; decode once cleanly to inspect whether your upstream code double-encoded the link.
Are private OAuth callback URLs transmitted anywhere?
No. Decoding and encoding run 100% locally inside your browser.