URL Encoder / Decoder

Escape URLs and query strings for safe transport, or turn escaped URLs back into plain readable text.

Enter your text:

Direction

Encoding Mode

Result:

How to encode or decode a URL

  1. Paste your URL or query string into the input box.
  2. Select Encode or Decode, then pick the matching encoding mode.
  3. Click Convert to get your escaped or unescaped output.
  4. Copy the result and use it in links, APIs or forms.

FAQs

What is the difference between the two encode modes?

encodeURIComponent escapes almost every character and is meant for single query values, while encodeURI keeps characters like slashes and colons intact for full URLs.

Why do spaces become %20?

URLs can only contain a limited set of characters. Encoding converts characters like spaces into percent-encoded forms such as %20 so they travel safely.

Do I need to encode my URLs manually?

No, most programming languages handle this for you, but this tool is handy for debugging, building query strings by hand, or testing edge cases.

Is the URL data sent anywhere?

No. Encoding and decoding happen entirely in your browser, so nothing you paste is uploaded or logged.

Related Tools

Why encode a URL?

URLs can only contain a limited character set, so special characters must be percent-encoded to travel safely. Encoding keeps query parameters intact when building links, forms or API calls.

Tips and Limits

Use encodeURIComponent for single query values and encodeURI for whole URLs — they escape different character sets. Everything runs locally, so your data never leaves the browser.