Skip to main content
Developer Tool

URL Encoder / Decoder Online

Percent-encode a query value or a full URL so it survives in a link, or decode an unreadable %XX address back to plain text.

Your text
Examples
Result

The result will appear here

Learn more

URL encoding: what to know

When a URL needs encoding

A search term, an email address or a redirect URL passed as a parameter must be encoded, or its &, = and ? will break the link. Decoding is the other way round: read a tracking link, a redirect target or an error log full of %2F and %C3%A9.

Component or whole URL

Component mode encodes every reserved character, including & = / ?: use it for one parameter value. Whole-URL mode keeps the structure (://, ?, #, &, =) and encodes the rest: use it for a full address with spaces or accents. Accents and other non-ASCII characters are encoded as UTF-8 bytes, which is what browsers and servers expect.

Reserved vs unreserved characters

Reserved characters (:, /, ?, #, [, ], @, !, $, &, ', (, ), *, +, ,, ;, =) have special meaning in URLs. They should only be encoded when used outside their reserved purpose — for instance, a / in a query parameter value must be encoded as %2F.

Unreserved characters (letters, digits, -, _, ., ~) never need encoding. Encoding them is valid but unnecessary and makes URLs longer.

Common pitfalls

Double encoding is the most common mistake: encoding an already-encoded URL turns %20 into %2520. Always check if your input is already encoded before encoding it again.

The + sign is another source of confusion. In query strings (application/x-www-form-urlencoded), + means space. But in the path component of a URL, + is literal. JavaScript's decodeURIComponent does NOT decode + as a space; here, the "+ = space" switch of Decode does it (on by default): turn it off when the + belongs to a path.

How it works

URL Encoder/Decoder in 3 steps

  1. Paste your URL or text

    Enter the URL or text you want to encode or decode in the input panel.

  2. Choose your encoding

    Choose "Encode" for component encoding, "Full URL Encode" for a complete URL, or "Decode" to decode a percent-encoded string. The result updates as you type.

  3. Copy the result

    The encoded or decoded result appears in the output panel. Click "Copy" to copy it, or "Swap" to use the output as the new input.

Practical guides

Get the most out of URL encoding

How it works

Percent-encode text or URLs (spaces, accents, & = ? …) so they can travel in a link, or decode an unreadable %XX string back to text.

Choose Encode for a parameter value, Full URL Encode to keep the structure of a complete URL, or Decode; Swap sends the result back to the input.

Quick & easy

Privacy & security

Your files and data never leave your device. All processing is done client-side in the browser.

Links often carry session ids or personal parameters: they are encoded and decoded on your device.

Runs in your browser
Frequently asked questions

URL Encoder/Decoder — FAQ

Everything you need to know about our url encoder/decoder