Skip to content
Developer

URL Encoder

Three modes — Encode (percent-encode any string), Decode (reverse) or Parse (break a URL into protocol, host, path, query and hash with all parameters as a table).

Scope

Encoding, decoding and parsing happen in your browser. Nothing is uploaded.

How to use this url encoder

  1. Pick Encode, Decode or Parse URL.
  2. For encode/decode: choose Component (recommended) or Whole URI scope.
  3. Paste your URL or string and click the action.
  4. For parse: see the protocol, host, port, path, query parameters and hash.

Frequently asked questions

What is URL encoding?

URL encoding (or percent-encoding) replaces unsafe characters with percent (%) followed by a hexadecimal value, so the URL can be transmitted safely.

What does Parse URL do?

It splits a URL into its components: protocol, hostname, port, path, query string, hash, and all individual query parameters as a table.

What is the difference between Component and Whole URI?

Component encoding (encodeURIComponent) escapes characters like /, ?, & and #. Whole URI encoding (encodeURI) leaves these alone — right when encoding a complete URL but not a single value.

Is anything uploaded?

No. Encoding, decoding and parsing happen in your browser.