Skip to content
PBPasteBench

URL Encoder and Decoder

Percent-encode text for query strings and paths, or decode a URL that arrived escaped.

Output appears here

Copies a link that reopens this tool with your input.

Example: Text to URL

"Hello World!" → "Hello%20World%21"

Use Cases

  • • Query parameters
  • • API requests
  • • Email addresses

Common questions

When do I need to URL-encode something?+

Any time a value goes into a query string or path segment and might contain a space, &, ?, #, /, or a non-ASCII character. Unencoded, those characters end the value early and silently truncate your data.

What is the difference between %20 and +?+

Both can mean a space, but in different places. %20 is correct everywhere; + only means a space inside application/x-www-form-urlencoded form bodies. In a path segment, + is a literal plus.

More tools