URL Encoder / Decoder

Encode or decode URL strings in both directions. Choose Component encoding for query parameter values or Full URL encoding for whole URLs.

Input

How it works

About URL Encoder / Decoder

URL encoding, also called percent-encoding, replaces characters that are unsafe in a URL with a percent sign followed by their two-digit hexadecimal byte value — a space becomes %20, and a non-ASCII character becomes a UTF-8 byte sequence such as %E4%B8%AD. URLs may only safely contain a small ASCII subset, so everything outside it must be escaped before the URL is sent over the wire.

Component mode escapes reserved characters like & and = so they are treated as data rather than separators — use it for individual query parameter values. Full URL mode keeps those separators intact so an already-structured URL stays readable — use it when encoding a whole URL, including its query string. Encode each parameter value before you build the URL, never encode a full URL with Component mode, and be careful not to decode twice: re-decoding an already-decoded value can corrupt legitimate %xx sequences.