URL encoder & decoder.

Percent-encode text so it is safe inside a URL, decode encoded links back into readable text, and inspect a URL’s host, path and query parameters.

Runs in your browser. Nothing you enter is sent to KRA Digital or anyone else.

More developer tools · All 55 free tools

How to use it

  1. Paste the text or URL you want to convert.
  2. Choose Component for a single query value or path segment, or Whole URL to keep the URL’s structure.
  3. Press Encode or Decode and copy the output.
  4. If the input is a full URL, check the parts table to see each query parameter decoded.

Questions

What is the difference between the two modes?

Component mode (encodeURIComponent) encodes reserved characters such as / ? & = so a value can safely sit inside a query string. Whole URL mode (encodeURI) leaves those characters alone so the URL still works.

Why is a space sometimes %20 and sometimes +?

In URLs a space is %20. HTML form submissions (application/x-www-form-urlencoded) use + instead. Choose Form data mode for that format.

Why does decoding fail?

A % sign must be followed by two hexadecimal digits. A lone % or a broken sequence such as %E9 without its partner bytes cannot be decoded.

Let’s build something great.

Tell us what you want to build, who it is for and what it needs to do. We’ll help you define a practical next step.

Start a project