Skip to content

URL Encoder / Decoder

Percent-encode or decode URLs and query string components.

Output

About the URL Encoder / Decoder

URLs may only contain a limited set of characters, so spaces, ampersands and non-ASCII text must be percent-encoded. This tool converts in both directions.

Component mode escapes reserved characters such as & and = for use inside a query value; full-URI mode leaves the URL structure intact.

How to use the URL Encoder / Decoder

  1. Paste the URL or parameter value.
  2. Pick encode or decode, and component or full-URI mode.
  3. Copy the safe result.

Examples

InputResult
hello world & morehello%20world%20%26%20more
caf%C3%A9café

Frequently asked questions

Why do spaces become %20 and not +?

%20 is correct percent encoding. The plus sign is only valid for spaces inside application/x-www-form-urlencoded form bodies.

Is my data sent to a server?

No. This tool runs entirely in your browser using JavaScript. Nothing you enter is uploaded, logged or stored by AHRATOOLS.