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
- Paste text or an encoded string into Input.
- Click Encode or Decode. The result appears in Output.
- 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’sencodeURIComponent. - Whole URL keeps the characters that give a URL its structure, such as
: / ? & = #, and only encodes the rest (likeencodeURI). 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.
Related
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.