Skip to content
Devtoolry

URL Encode / Decode

URL encode or decode text online: percent-encode query string values and full URLs, or turn %20-style escapes back into readable text.

Runs in your browser · Nothing uploadedFree · No sign-up

Something not working, or missing a feature? Send feedback

About the URL Encode / Decode

URLs may only contain certain characters; everything else must be percent-encoded. This tool encodes or decodes whole URLs or individual query values and handles UTF-8 correctly. URL encode mode works like JavaScript's encodeURIComponent (or encodeURI for a full URL), so a space becomes %20, and URL decode mode turns an encoded URL back into readable text: paste something like caf%C3%A9%20menu and get café menu.

Everything runs in your browser, so your input is never uploaded to a server.

How to use the URL Encode / Decode

  1. Choose Encode or Decode.
  2. Pick whether you are encoding a full URL or a single component (such as a query value).
  3. Optionally write spaces as +, then copy the result.

Examples

Encode a query parameter value

Input

red shoes & bags/50% off

Result

red%20shoes%20%26%20bags%2F50%25%20off

Encoded as a component, so &, / and % are escaped and the value cannot break the query string. Spaces become %20.

Decode a tracking link

Input

https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dcaf%C3%A9%26page%3D2

Result

https://example.com/search?q=café&page=2

In Decode mode, %C3%A9 is read as UTF-8 and becomes é.

Common mistakes

  • Encoding twice. Encoding an already encoded value turns %20 into %2520. If a URL shows %25, it was double-encoded; decode once.
  • Encoding a whole URL as a component. Component mode escapes : and /, which breaks a full URL. Use it for one parameter value, and full-URL mode for a complete address.
  • A + in a decoded value. In form-encoded query strings + means a space, but elsewhere it is a literal plus. Encode a real plus as %2B so it survives both.

Works well with the URL Encode / Decode

Frequently asked questions

Component or full URL?

Encode a single query value as a component so characters like & and = are escaped. Encoding a full URL keeps its structure characters intact.

Should spaces be %20 or +?

In query strings from HTML forms spaces are +; elsewhere %20 is the standard. Choose to match what the receiving server expects.

What is the difference from encodeURIComponent?

Component mode gives the same result as JavaScript’s encodeURIComponent, and full-URL mode matches encodeURI.

Which characters never need encoding?

Letters, digits and - _ . ~ are always safe. Everything else is safe only in some parts of a URL, so encode it when in doubt.

Guides and tutorials