How to use
Choose Encode to make a text component safe for inclusion in a URL, or Decode to interpret percent-encoded UTF-8 sequences. Enter only the component you want to transform, such as a query value or path segment. For example, “Jack & Jill” becomes “Jack%20%26%20Jill” when encoded as a component. This tool uses encodeURIComponent and decodeURIComponent, which encode reserved delimiters that could otherwise change how a URL is parsed. It does not parse or validate an entire web address; use a URL parser for complete URLs.
What the result means
Percent-encoding represents bytes with a percent sign followed by two hexadecimal digits. It is not encryption and does not make private information secret. Encoding the wrong part of a URL can change its meaning, especially when reserved characters such as slash, ampersand, question mark or equals sign are involved. Decode only when you know the input is a component and avoid decoding twice. Invalid percent sequences or invalid UTF-8 are reported as errors. All processing happens in the browser.
Further reading: IETF — RFC 3986: URI Generic Syntax · MDN — encodeURIComponent() · MDN — decodeURIComponent().
Related calculators