▶ Subscribe on YouTube
Home / Tools / Developer Tools

URL Encoder / Decoder

Encode or decode URL components and query strings.

Raw URL / Text
URL Encoded
Output appears here

What does this tool do?

URLs can only contain a specific set of ASCII characters. Spaces, ampersands, equals signs, and other special characters must be replaced with a percent-encoded equivalent — for example, a space becomes %20, and & becomes %26. Your browser does this automatically when you type a URL, but when you are building URLs in code, working with API parameters, or debugging a redirect URL that looks garbled, you need to do it manually.

How to use it

  1. Paste the URL or text you want to encode or decode.
  2. Click Encode to make it URL-safe (replaces special characters with %XX codes).
  3. Click Decode to convert %XX codes back to readable characters.
  4. Copy the result.

Pro tips

  • Encode only the value part of a query parameter — not the whole URL — otherwise the = and & separators will be encoded too.
  • %20 is a space — the most common encoding you will encounter in URLs.
Example

Encode the query value: hello world & more=yes

Encoded: hello%20world%20%26%20more%3Dyes

Safe to use in a URL like: https://example.com/search?q=hello%20world%20%26%20more%3Dyes

When would you use this?

  • Building a query string that contains user-entered text with spaces or special characters
  • Debugging a redirect URL that shows %20 and %3D everywhere
  • Preparing API parameters that include email addresses, search terms, or paths
  • Reading encoded URLs copy-pasted from browser address bars