Developer tools TOOL

URL encode & decode

Safely encode or decode text for URLs.

01

Enter your text

On-device processing
Input · Up to 2 MB
02

Output options

No account. No uploads.

URL encode & decode · How to use

Safely encode or decode text for URLs.

Example

hello world → hello%20world

Things to know

Encodes text for a URL. Check the scope before applying it to a complete URL.

Your files and results are never sent to a server. Everything is processed in this browser.

How to percent-encode a value for a URL

Use this when a search term or file name with special characters has to go into a query parameter, or when a shared link is so full of % signs that you cannot tell what it says. Each character is split into UTF-8 bytes, and every byte becomes % followed by two hex digits.

When to use this tool

  • Add a search term as a query parameter
  • Read the original text of a percent-encoded link
  • Pass a return address as another URL's parameter
  • Put spaces and symbols into UTM parameter values

Step-by-step instructions

  1. Enter the value to encode or the URL string to decode.
  2. Under Operation, choose Encode or Decode.
  3. Choose Convert.
  4. Copy the result into your address bar or code.

Frequently asked questions

Why does a full URL turn into https%3A%2F%2F?

The encoder protects a single value (encodeURIComponent), so separators such as :, /, ?, &, and = are encoded too. Encode only the parameter value, then append it to the original address.

Are spaces encoded as + or %20?

Encoding turns a space into %20. Decoding leaves + unchanged rather than turning it into a space, so for form-style values where spaces were sent as +, replace + with %20 before decoding.

Why does decoding fail with an error?

Every % must be followed by two hex digits, and the resulting bytes must form valid UTF-8. A lone % sign, as in 100%, or an address encoded in a legacy character set such as Latin-1 (%E9 for é) cannot be decoded.

Save only the tools you need.