My Tools Garage

URL Encode / Decode

Percent-encode and decode URLs and query params.

in-browser
Output

How to use

  1. 1 Paste the text or URL.
  2. 2 Pick Encode or Decode.
  3. 3 Choose component or whole-URL mode.
  4. 4 Copy the result.

About URL Encode / Decode

URL encoding (percent-encoding) escapes characters that have special meaning in a URL — spaces, ampersands, equals signs, slashes and non-ASCII characters — so they can be transmitted safely in a query string or path.

This tool encodes and decodes in two modes: component mode (encodeURIComponent) for individual query values, and whole-URL mode (encodeURI) which preserves the structural characters of a complete address.

It is the quickest way to build a query string by hand, debug a redirect URL, or decode a percent-mangled link someone pasted into a chat.

Malformed percent sequences are reported clearly instead of throwing.

Runs entirely in your browser.

FAQ

Component vs whole-URL — which do I want?

Use component mode for a single query value (it escapes & = / etc). Use whole-URL mode to encode a full URL while keeping its structure.

Why did decoding fail?

The input contained a malformed percent sequence such as a lone "%" not followed by two hex digits.