URL Encode

Encode / decode URL components.

A free URL encoder / decoder with both component-level (encodeURIComponent) and full-URL (encodeURI) modes, an option to encode spaces as +, and a breakdown of a full URL into its protocol, host, port, path, hash and query parameters. Everything runs locally — nothing is uploaded.

How to use

  1. Choose Encode or Decode.
  2. Toggle component-level (which also encodes reserved characters like ? & =) or full-URL encoding as needed.
  3. Paste text or a URL; the result updates live on the right.
  4. If the input is a full URL, its structure and parameters are shown below.

FAQ

What is the difference between encodeURIComponent and encodeURI?
Component-level uses encodeURIComponent and escapes reserved characters like ? & = / : #, which is right for a single query-parameter value; full uses encodeURI and keeps those characters, which is right for encoding a complete, valid URL.
Why encode spaces as +?
In application/x-www-form-urlencoded (HTML form query strings) a space is conventionally a +; elsewhere (e.g. in a path) it is %20. Pick what matches your context.
Is my data uploaded?
No. Encoding, decoding and URL parsing all happen locally in your browser.

Related tools