Skip to content
kitbaba

Most used

URL encode and decode

Percent-encode text for URLs, or decode %20-style text back.

Processed on your device · 0 bytes uploaded

Direction
What to convert

For one query value or path segment. Every character with a meaning in URLs, like / ? & = #, is escaped.

How to use

  1. Choose Encode or Decode.
  2. Choose whether you are converting a single value (like one query parameter) or a full URL.
  3. Type or paste into the first box. The result updates as you type.
  4. When decoding form data or query strings, tick Treat + as a space.
  5. Press Copy to copy the result.

Questions

What's the difference between a value and a full URL?

A value is one piece, such as a search term, so characters like / ? & = are escaped and can't break the URL. A full URL keeps those characters because they hold the address together, and only escapes spaces, Unicode and other unsafe characters. They match JavaScript's encodeURIComponent and encodeURI.

Why does + sometimes mean a space?

HTML forms encode spaces as +. In other parts of a URL, + is just a plus sign. Tick the option only when the text came from a form or a query string.

What does "malformed % sequence" mean?

Every % must be followed by two hexadecimal digits, like %20. A lone % or something like %G1 can't be decoded. If you meant a literal percent sign, it should be written as %25.

Is my text sent anywhere?

No. Encoding and decoding run in your browser, and nothing you paste is uploaded.

Something wrong or missing? Tell us (opens in a new tab)