Encode/decode URL-formatted strings

Encode text to URL-encoded format (also known as "percent-encoded"), or decode from it.

About Encode/decode URL-formatted strings

URLs may only contain a limited set of characters, so anything else, such as spaces, non-Latin text or reserved symbols, is written as percent-encoding (a % followed by two hex digits). This tool encodes text that way and decodes it again, using the same rules as JavaScript's encodeURIComponent.

When you would use it

How to use it

  1. Type or paste text in the encode field to get the percent-encoded form.
  2. Paste an encoded string in the decode field to get the original text.
  3. Copy the result with the copy button.

Things worth knowing

Frequently asked questions

Should I encode the whole URL or just the parameter values?
Only the values (and key names, if needed). Encoding the whole URL also escapes the :// and the / separators and produces a string that is no longer a usable address.
Why is a plus sign not decoded back to a space?
Percent-decoding does not treat + specially. If the text came from a form submission (application/x-www-form-urlencoded), replace + with a space before decoding.

All the tools