Skip to content

Data tool

URL Encoder and Decoder

URL encode text so it is safe in a link, or URL decode an encoded address back into readable text.

Runs entirely in your browser. Nothing you paste is uploaded.

What do you want to do?

URL Encoder / Decoder by YegappanFree tool. Open the full page for the guide.

How to use the URL Encoder / Decoder

  1. Choose Encode or Decode.
  2. Paste your text or URL. When encoding, pick whether it is a single value or a whole URL.
  3. Copy the result. For full URLs, the breakdown table lists the host, path and each query value.

URL encoding: a single value or a whole URL

A URL encoder replaces characters that are not allowed in a web address with percent codes, such as %20 for a space. A URL decoder turns those codes back into readable text. This tool does URL encode and URL decode in one place.

URLs can only contain a limited set of characters. Everything else, including spaces, &, = and non-English letters, has to be written as percent-encoded bytes like %20.

Use A single value when the text will sit inside a query parameter or path segment: it encodes reserved characters such as /, ? and & so they cannot be mistaken for URL structure. Use A whole URL to clean up a complete link without breaking the parts that make it a link.

Decoding is forgiving. A stray % that is not a valid sequence is left as written and reported, instead of failing the whole string.

Common questions

How do I decode a URL online?

Paste the encoded URL and choose Decode. The readable address appears, with its host, path and query values listed separately.

What is the difference between %20 and + for spaces?

Both mean a space, but + is only valid in form-style query strings. %20 works everywhere in a URL, so it is the safer default.

Why did some characters not change?

Letters, digits and - _ . ~ are always safe in URLs, so they are never encoded.

Can I decode a URL that was encoded twice?

Yes. Decode it, then select Use result as input and decode again.

Is anything sent to a server?

No. Encoding and decoding run entirely in your browser.

Guides for the URL Encoder / Decoder

Related tools