Skip to content

URL Encoder & Decoder

Percent-encode and decode URLs, query strings and components.

Updated · Examples checked by automated tests

LOCAL WORKSPACENO UPLOAD REQUIRED

Encoded

The converted value appears here.

About URL Encoder & Decoder

URLs may only contain a limited set of ASCII characters. Everything else - spaces, ampersands inside a value, non-Latin scripts - must be percent-encoded as its UTF-8 bytes so that servers and proxies parse the address the way you intended.

This tool exposes both encoding levels, so you can escape a single query parameter without destroying the URL around it, and also includes a query-string breakdown that shows each parameter decoded.

How URL Encoder & Decoder works in your browser

Component mode uses encodeURIComponent, which escapes reserved characters such as &, ?, / and = — the right choice for a single query value. Full URL mode leaves the structure of the address intact. Characters are encoded as their UTF-8 bytes.

Decoding uses decodeURIComponent and also accepts + as a space, since HTML form submissions encode spaces that way. A query-string breakdown shows each parameter decoded on its own line.

When to use it

  • Escaping a search term or redirect URL before putting it in a query string.
  • Reading a long tracking URL by decoding its parameters.
  • Debugging a request where a value containing & was split in two.

Worked examples

Encode a value for a query string

Settings: Encode, Component

Input

price=10&20 €

Expected output

price%3D10%2620%20%E2%82%AC

Component mode escapes = and &, which would otherwise start a new parameter, and encodes € as its three UTF-8 bytes.

Decode a form-encoded value

Settings: Decode, Component

Input

q=caf%C3%A9+au+lait

Expected output

q=café au lait

Form submissions encode spaces as +, so the decoder turns + back into spaces before resolving the percent escapes.

Limits and checks before you use the result

  • Whole URL mode leaves reserved characters such as ?, & and / alone. Use Component mode for a single parameter value.
  • Because + is decoded as a space, a literal plus sign must be sent as %2B.
  • A malformed escape such as %E2%82 on its own cannot be decoded and is reported as an error.

Frequently asked questions

What is the difference between the two modes?

Component mode escapes reserved characters such as ampersand, question mark, slash and equals, which is what you want for a single query value. Full URL mode leaves the URL structure intact.

Why is a space sometimes a plus sign?

Form submissions encode a space as a plus, while general percent-encoding uses %20. The decoder accepts both.

Does it handle non-ASCII characters?

Yes. Characters are encoded as UTF-8 bytes, which is what every modern browser and server expects.

Related tools