URL Encoder / Decoder

Encode, decode, parse, and build URLs and query strings instantly.

Runs locallyNo sign-upKeyboard first
InputSingle param value
OutputEncoded
https%3A%2F%2Fdevprix.io%2Fsearch%3Fq%3Dcaf%C3%A9%20cr%C3%A8me%26lang%3Dfr
Encoded48 B → 74 BProcessed locally

What is URL Encoding?

URL encoding (percent-encoding) replaces unsafe ASCII characters with a % followed by two hexadecimal digits. For example, a space becomes %20 and an ampersand becomes %26. This ensures special characters in URLs, query parameters, and form data are transmitted correctly without being misinterpreted as URL delimiters.

Common use cases

  • Encoding special characters in URL query parameters
  • Decoding percent-encoded strings from web server logs
  • Building API request URLs with dynamic parameters
  • Encoding form data for HTTP POST requests
  • Fixing broken links with special characters

How to use

  1. 1Choose Encode, Decode, Parse or Build, and pick an encoding such as encodeURIComponent or Spaces as +.
  2. 2Paste your text or URL on the left; the result updates as you type (tick Line by line to convert a list).
  3. 3Press ⌘↵ to convert and copy the result, or use Swap to reverse the direction.

Frequently asked questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL, preserving characters like :, /, ?, and # that have meaning in URLs. encodeURIComponent encodes everything except letters, digits, and - _ . ~ making it suitable for individual parameter values.

Why is a space encoded as %20 or +?

In URLs, spaces are encoded as %20 (percent-encoding). In form data (application/x-www-form-urlencoded), spaces are encoded as +. Both represent a space but in different contexts.