Skip to content

URL encoder and decoder

Encode the special characters in a URL, or decode an unreadable address full of %20.

Plain text (unencoded string)
The URL you entered contains an invalid encoding sequence (e.g. an incomplete %).
Encoded text (URL-safe)

What is URL encoding (percent-encoding)?

In a URL (a website address), some characters have a very specific technical meaning. For example, the question mark ? separates the address from its parameters, and the & separates multiple parameters from each other.

L'URL encoding (or percent-encoding) is a mechanism that hides these special characters when you need to use them as "data" in your link, without disrupting how the browser works. The tool replaces forbidden characters with a % symbol followed by their UTF-8 hexadecimal code.

A few very common encodings:

  • The space ( ) becomes %20
  • The slash (/) becomes %2F
  • The ampersand (&) becomes %26
  • The equals sign (=) becomes %3D
  • The question mark (?) becomes %3F

encodeURI vs encodeURIComponent

Our tool uses the JavaScript function encodeURIComponent(). It is the safest method for developers, because it encodes almost all special characters, ensuring your data can be passed in the query strings of a GET request (API) without breaking the URL syntax.

More dev tools:

How it works

How to use the URL encoder and decoder

Encode the special characters in a URL or decode an unreadable address full of %20.

  1. Paste your content

    Paste the URL or the text.

  2. Encode or decode

    Choose the operation.

  3. Copy the result

    Copy or download the result in one click.

FreeNo subscription, no hidden limits.
No sign-upOpen the page and use the tool. That’s it.
InstantResults in seconds, on mobile too.
PrivateEverything runs in your browser.

About the URL encoder and decoder

Spaces, accented letters and symbols must be encoded in a URL (percent-encoding). The tool handles query parameters as well as full addresses.

url encoder url decoder url encode online url decode online percent encoding encodeuricomponent urlencode
FAQ

Frequently asked questions about the URL encoder and decoder

Why encode a URL?

To pass spaces, accented characters and reserved characters such as & or ? without errors.

What does %20 mean?

It is an encoded space.

What is the difference between encodeURI and encodeURIComponent?

The first keeps the structure of the URL. The second also encodes “/”, “?” and “&” so a value can be used as a parameter.

Are accented characters supported?

Yes, in UTF-8.

Esc
↑ ↓ navigateEnter open