Skip to main content

URL encode and decode

Percent-encode or decode URLs and query values in your browser. Nothing is uploaded.

Percent-encode text so it is safe inside a URL, or decode a percent-encoded string back to readable text. Runs in your browser; nothing is uploaded.

How to use

  1. Paste text or an encoded string into Input.
  2. Click Encode or Decode. The result appears in Output.
  3. Tick Whole URL when you are encoding a complete address and want to keep its structure.

Component vs whole URL

  • Default (component mode) encodes everything that is not a letter, digit or one of - _ . ! ~ * ' ( ). Use it for a single query value or path segment, for example a search term containing &, =, spaces or non-English characters. This matches JavaScript’s encodeURIComponent.
  • Whole URL keeps the characters that give a URL its structure, such as : / ? & = #, and only encodes the rest (like encodeURI). Use it for a full link that contains spaces or accented letters.

Decoding

Decoding turns sequences such as %20 back into characters and also treats + as a space, as HTML forms do. If the input contains a broken sequence (for example a lone % or an incomplete UTF-8 byte), the tool shows “Malformed percent-encoding.” instead of guessing.

Base64 encode and decode · JWT decoder · All tools

How we check

The behaviour described on this page was checked against the tool’s source code on 2026-11-19 (Asia/Colombo). Spotted a mistake? Contact us.

More free tools