URL Encode and Decode

Percent-encode text for URLs and query strings, or decode %20-style codes back to text. Handles UTF-8 and form-style + spaces.

Runs in your browserNo sign-upWorks offline
Ctrl+Enter to run
Input121 characters
Output
✓ ReadySample content shown

What the URL Encode and Decode does

URL Encode and Decode makes text safe to put in a web address, and turns encoded addresses back into readable text. Spaces, accents, ampersands and other special characters become percent codes such as %20, so links and query strings do not break. Decoding reverses it and reports any broken codes.

How to use it

  1. Choose Encode or Decode.
  2. For encoding, pick Encode everything for a single value, such as a search term, or Keep URL structure for a full link.
  3. Tick Spaces as + when building form-style query strings, or Treat + as a space when decoding them.
  4. Copy the result from the Output box.

Example

A search link needs the term “free tools & more”. Encoding it as a value gives free%20tools%20%26%20more, so the full link is https://example.com/search?q=free%20tools%20%26%20more. Without encoding, the & would start a new parameter and the search would only see “free tools ”.

Which encode option should I use?

“Encode everything” escapes every character that has a special meaning in a URL, including /, ?, & and =. Use it for one piece of a URL, such as a parameter value or a path segment.

“Keep URL structure” leaves those characters alone and only escapes spaces and characters outside plain ASCII, so a whole address stays usable. Use it when you have a complete link with spaces or Hindi text in it.

Questions people ask

Why does decoding show an error?

A percent sign must be followed by two hex digits that form valid UTF-8, such as %E2%82%B9 for ₹. The error points to the first broken code.

What is the difference between %20 and +?

Both can mean a space in a query string. %20 works everywhere in a URL; + only means a space in form-style query strings.

Does it support Hindi and emoji?

Yes. Text is encoded as UTF-8, the standard for web addresses.

Is anything sent to a server?

No. Everything runs in your browser.

Related tools