URL Encoder / Decoder
Encode a full URL or a component, encode only the query part, or decode — with every changed character listed. UTF-8 characters are handled correctly. Everything happens in your browser; nothing is uploaded or stored.
Encode or decode
Enter a URL or some text.
Result
Enter a URL and press Encode / Decode.
Characters changed
How this tool works
Encode full URL. Encodes only the characters that are not allowed in a URL — spaces become %20, while : / ? # & = and the rest of the URL structure stay as they are.
Encode component. Encodes everything except letters, digits and - _ . ! ~ * ' ( ). Use it for a single value, such as a search term, that will sit inside a URL.
Encode only the query part. The part after the first ? is encoded key by key and value by value, so the ? & and = that hold the query together are left alone.
Decode. Turns %XX sequences back into characters. A malformed sequence — a % not followed by two hexadecimal digits, or bytes that are not valid UTF-8 — is flagged with its position, never silently dropped.
Privacy. Calculation happens entirely in your browser. Nothing is uploaded, stored or shared.
Limits. Only standard percent-encoding is supported.