🌐 URL Encoder / Decoder

Encode or decode URL-safe strings.

📋 How to Use

1. Paste a URL, query string, or any text with special characters.
2. Choose Encode to make it URL-safe, or Decode to reverse a percent-encoded string.
3. Copy the output for use in query parameters, links or API calls.

✅ Features

Handles full URLs as well as individual query parameters.
Correctly escapes reserved characters like spaces, &, and #.
Useful for debugging broken links or building query strings by hand.

Why URLs need encoding

URLs can only safely contain a limited set of characters. Spaces, symbols like &, ?, # and non-English letters have to be converted into a "percent-encoded" form (a space becomes %20, for example) or links and query strings can break.

What this tool does

  • Encode text so it can be safely placed inside a URL or query parameter.
  • Decode long, messy links full of %20 and %3D to see what they really contain.

Common uses

Developers use it when building API requests and redirect links. Marketers use it to read UTM tracking links and to create share links with pre-filled text, for example a WhatsApp or email link that contains a message. It is also useful for checking suspicious links — decoding them shows the real destination before you click.

Tip: encode each parameter value on its own, not the whole URL, otherwise the "://" and "?" parts that must stay readable will be encoded too.

Frequently Asked Questions

Why do spaces in a URL turn into %20 or +?
Spaces aren't valid in a raw URL, so they get percent-encoded as %20 (or sometimes + in query strings specifically) so the URL remains a single valid, unbroken string.
Do I need to encode an entire URL or just parts of it?
Usually just the parts with special characters — like a query parameter value — not the whole URL, since encoding structural characters like : and / would break the URL itself.