URL Encode / Decode — Encode URLs Online

URL encode / decode. Component and full path.

Encode
Decode
encodeURI
encodeURIComponent
Encoded
https%3A%2F%2Fexample.com%2Fsearch%3Fq%3D%D0%BF%D1%80%D0%B8%D0%B2%D0%B5%D1%82%20%D0%BC%D0%B8%D1%80%26page%3D1

A URL converter encodes and decodes addresses and their parts (percent-encoding). URLs only allow ASCII characters and a limited set of special characters, so everything else gets written as %XX: a space becomes %20, and non-Latin text becomes a sequence of 2–4 bytes.

This matters whenever a link contains non-Latin text, spaces, or special characters (&, ?, =, #) that need to be passed or embedded safely: query parameters, links in emails, values in API calls. Decoding does the reverse — turning %-sequences back into readable text, which helps you understand what's packed into a long link.

The tool supports two modes: component encoding (encodeURIComponent, for individual parameters) and full URL encoding. Everything runs right in your browser, and your data is never sent anywhere. For binary data, there's also Base64 encoding.

Frequently asked questions

encodeURI leaves URL structural characters (: / ? & =) untouched — for encoding a whole link. encodeURIComponent encodes those too — for safely inserting a value into a query parameter (?q=...).
For an entire URL, use encodeURI. For a parameter value, use encodeURIComponent — otherwise an "&" in the value would break the structure.
The input string contains a malformed %XX sequence (like %Z or %2 with no second digit). The browser's decodeURIComponent fails on these.