URL Encoder & Decoder

Encode and decode URLs or URI components online. Live conversion as you type, with plus-to-space handling — everything runs locally.

Direction
Mode

"Component" escapes every reserved character such as = & ? — best for parameter values. "Full URI" keeps URL structure characters, best for whole addresses.

How to use

  1. Pick a direction at the top: "Encode" turns Chinese, spaces and special characters into %XX sequences; "Decode" converts %XX back into readable text.
  2. Pick a mode: "Component" follows encodeURIComponent / decodeURIComponent and is meant for single parameter values; "Full URI" follows encodeURI / decodeURI and keeps structure characters like :// ? & =.
  3. Type or paste into the input box — conversion is live, no button press needed.
  4. When decoding, + is restored as a space by default (the query-string convention); untick the option if your + signs are literal plus characters.
  5. Invalid % escape sequences are kept as-is with a warning instead of failing the whole conversion; the result can be copied with one click.

FAQ

What is the difference between "Component" and "Full URI"?
Component mode also escapes reserved characters like ? & = / : — use it to encode a single parameter value. Full URI mode only escapes unsafe characters such as spaces and non-ASCII text while keeping the URL structure — use it for a complete address. Picking the wrong mode often breaks & separators or loses parameter boundaries.
Why did some + signs become spaces?
In HTML forms and query strings, + conventionally means a space. This tool restores them by default; if your + characters are literal plus signs (for example in Base64), simply untick "Restore + as space when decoding".
What happens to invalid % sequences?
While decoding, a % that is not followed by two hex digits (for example 100% or %ZZ) is kept as-is, the rest of the text decodes normally, and a yellow notice reports how many sequences were preserved — the whole conversion never fails.
Is my content uploaded?
No. Encoding and decoding run entirely as local browser scripts, so whatever you paste — including links with tokens or private parameters — never leaves your device.

Related Tools