Example input
name=Ada Lovelace&city=Hong Kong
DataHub
Tools
URL Encoder Decoder
Local-first
Encode or decode URL components, query strings, and special characters locally in your browser.
Encode or decode URL components, query strings, and special characters locally in your browser.
name=Ada Lovelace&city=Hong Kongname%3DAda%20Lovelace%26city%3DHong%20KongEncode parameter values separately when building a URL. Re-encoding percent signs can produce broken double-encoded values.
ECMAScript defines encodeURI, encodeURIComponent, and decodeURIComponent. The WHATWG URL Standard defines URL parsing and percent-encoding behavior used by web platforms.
Sources checked July 24, 2026. Standards can change; review the source pages before formal integration.
Use it for one query value, parameter value, or path segment, including a full URL that will become an outer parameter value.
Use it only for an already complete URL when separators such as :, /, ?, &, and = must keep their URL meaning.
It uses encodeURI, which preserves reserved separators because they may structure the complete URL.
Malformed percent escapes or bytes that are not valid UTF-8 can make decodeURIComponent throw an error.
Encoding an existing percent sign again changes %20 to %2520 and can break the receiving system.