BrowserLeaksUSBrowserLeaksUS

URL Encode / Decode

Encode or decode URL components - fully client-side

URL Encoder

What this tool does

URL-encodes text (percent-encoding) so it can be safely placed in a URL, query string, or form body - and decodes the reverse. Fully client-side.

Who it's for: Web developers building URLs with dynamic parameters, QA engineers constructing test URLs, and anyone debugging mangled redirects.

When to use

  • •Encode a search query for a GET parameter.
  • •Decode a redirect URL from a tracking link to see where it points.
  • •Prepare a long query string with special characters for curl testing.
  • •Debug a form submission where the server sees wrong values.

How it works

  1. 1Paste text, pick encode or decode.
  2. 2Every non-safe character becomes %XX (hex).
  3. 3Space becomes %20 (or + in form-encoded mode).
  4. 4All processing is local; no data transmission.

Tips

  • •Encode ONLY the value, not the entire URL - otherwise /, ?, & get mangled.
  • •Use encodeURIComponent in JavaScript, not encodeURI - they differ on reserved chars.
  • •Spaces in URL paths → %20; in form bodies → + (historical quirk).

Using this result

How to read a URL encode and decode

01

Which characters changed

URL encoding replaces bytes that are not allowed, or that would change the meaning of a URL, with a percent and two hex digits. A space often becomes %20, or a plus in query strings that follow the older form. A question mark, ampersand, hash, and slash are the characters that break a URL when you leave them raw inside a value. The output box is the string after that replacement. Decode reverses percent sequences back into characters. It does not fetch the URL and it does not check that the host exists.

Encode a full URL only when you are putting that URL inside another URL, such as a query parameter named next or url. Encoding a link you intend to open will encode the :// and the slashes, and the browser will not navigate to it. Encode the value, not the structure. Decode when a log line or an ad click shows %3A%2F%2F and you want to read the target. Nested encoding shows up as %25, because the percent sign itself was encoded. Decode once and look again. If you still see percent signs, decode a second time.

02

UTF-8 and the plus sign

Non-English characters are encoded as UTF-8 bytes, so one character can become several percent sequences. If a decoded string looks like é, it was decoded as the wrong charset, or it was double-decoded. Leave the percent form and decode once. The plus sign is the ambiguous character. In query strings it often means space. In a path it is a literal plus. This tool tells you which mode you selected. If the decoded text gained spaces where plus signs stood, you used the query mode on a path.

Pair this with Base64 when the query value is itself a Base64 blob. Decode the URL layer first, then Base64-decode the value. The other order produces nonsense. Nothing on this page is a safety check. An encoded javascript: or data: URL is still that URL after decoding. Read the decoded text before you open it.